Enum google_api_proto::google::cloud::security::privateca::v1::certificate_authority::SignHashAlgorithm
source · #[repr(i32)]pub enum SignHashAlgorithm {
Unspecified = 0,
RsaPss2048Sha256 = 1,
RsaPss3072Sha256 = 2,
RsaPss4096Sha256 = 3,
RsaPkcs12048Sha256 = 6,
RsaPkcs13072Sha256 = 7,
RsaPkcs14096Sha256 = 8,
EcP256Sha256 = 4,
EcP384Sha384 = 5,
}
Expand description
The algorithm of a Cloud KMS CryptoKeyVersion of a
[CryptoKey][google.cloud.kms.v1.CryptoKey] with the
[CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] value
ASYMMETRIC_SIGN
. These values correspond to the
[CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
values. For RSA signing algorithms, the PSS algorithms should be preferred,
use PKCS1 algorithms if required for compatibility. For further
recommendations, see
https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations.
Variants§
Unspecified = 0
Not specified.
RsaPss2048Sha256 = 1
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
RsaPss3072Sha256 = 2
maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
RsaPss4096Sha256 = 3
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
RsaPkcs12048Sha256 = 6
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
RsaPkcs13072Sha256 = 7
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
RsaPkcs14096Sha256 = 8
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
EcP256Sha256 = 4
maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
EcP384Sha384 = 5
maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
Implementations§
source§impl SignHashAlgorithm
impl SignHashAlgorithm
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for SignHashAlgorithm
impl Clone for SignHashAlgorithm
source§fn clone(&self) -> SignHashAlgorithm
fn clone(&self) -> SignHashAlgorithm
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SignHashAlgorithm
impl Debug for SignHashAlgorithm
source§impl Default for SignHashAlgorithm
impl Default for SignHashAlgorithm
source§fn default() -> SignHashAlgorithm
fn default() -> SignHashAlgorithm
source§impl From<SignHashAlgorithm> for i32
impl From<SignHashAlgorithm> for i32
source§fn from(value: SignHashAlgorithm) -> i32
fn from(value: SignHashAlgorithm) -> i32
source§impl Hash for SignHashAlgorithm
impl Hash for SignHashAlgorithm
source§impl Ord for SignHashAlgorithm
impl Ord for SignHashAlgorithm
source§fn cmp(&self, other: &SignHashAlgorithm) -> Ordering
fn cmp(&self, other: &SignHashAlgorithm) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SignHashAlgorithm
impl PartialEq for SignHashAlgorithm
source§fn eq(&self, other: &SignHashAlgorithm) -> bool
fn eq(&self, other: &SignHashAlgorithm) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SignHashAlgorithm
impl PartialOrd for SignHashAlgorithm
source§fn partial_cmp(&self, other: &SignHashAlgorithm) -> Option<Ordering>
fn partial_cmp(&self, other: &SignHashAlgorithm) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for SignHashAlgorithm
impl TryFrom<i32> for SignHashAlgorithm
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<SignHashAlgorithm, UnknownEnumValue>
fn try_from(value: i32) -> Result<SignHashAlgorithm, UnknownEnumValue>
impl Copy for SignHashAlgorithm
impl Eq for SignHashAlgorithm
impl StructuralPartialEq for SignHashAlgorithm
Auto Trait Implementations§
impl Freeze for SignHashAlgorithm
impl RefUnwindSafe for SignHashAlgorithm
impl Send for SignHashAlgorithm
impl Sync for SignHashAlgorithm
impl Unpin for SignHashAlgorithm
impl UnwindSafe for SignHashAlgorithm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request