Enum google_api_proto::google::cloud::binaryauthorization::v1beta1::pkix_public_key::SignatureAlgorithm
source · #[repr(i32)]pub enum SignatureAlgorithm {
Unspecified = 0,
RsaPss2048Sha256 = 1,
RsaPss3072Sha256 = 2,
RsaPss4096Sha256 = 3,
RsaPss4096Sha512 = 4,
RsaSignPkcs12048Sha256 = 5,
RsaSignPkcs13072Sha256 = 6,
RsaSignPkcs14096Sha256 = 7,
RsaSignPkcs14096Sha512 = 8,
EcdsaP256Sha256 = 9,
EcdsaP384Sha384 = 10,
EcdsaP521Sha512 = 11,
}
Expand description
Represents a signature algorithm and other information necessary to verify signatures with a given public key. This is based primarily on the public key types supported by Tink’s PemKeyType, which is in turn based on KMS’s supported signing algorithms. See https://cloud.google.com/kms/docs/algorithms. In the future, BinAuthz might support additional public key types independently of Tink and/or KMS.
Variants§
Unspecified = 0
Not specified.
RsaPss2048Sha256 = 1
RSASSA-PSS 2048 bit key with a SHA256 digest.
RsaPss3072Sha256 = 2
RSASSA-PSS 3072 bit key with a SHA256 digest.
RsaPss4096Sha256 = 3
RSASSA-PSS 4096 bit key with a SHA256 digest.
RsaPss4096Sha512 = 4
RSASSA-PSS 4096 bit key with a SHA512 digest.
RsaSignPkcs12048Sha256 = 5
RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
RsaSignPkcs13072Sha256 = 6
RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
RsaSignPkcs14096Sha256 = 7
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
RsaSignPkcs14096Sha512 = 8
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
EcdsaP256Sha256 = 9
ECDSA on the NIST P-256 curve with a SHA256 digest.
EcdsaP384Sha384 = 10
ECDSA on the NIST P-384 curve with a SHA384 digest.
EcdsaP521Sha512 = 11
ECDSA on the NIST P-521 curve with a SHA512 digest.
Implementations§
source§impl SignatureAlgorithm
impl SignatureAlgorithm
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 SignatureAlgorithm
impl Clone for SignatureAlgorithm
source§fn clone(&self) -> SignatureAlgorithm
fn clone(&self) -> SignatureAlgorithm
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SignatureAlgorithm
impl Debug for SignatureAlgorithm
source§impl Default for SignatureAlgorithm
impl Default for SignatureAlgorithm
source§fn default() -> SignatureAlgorithm
fn default() -> SignatureAlgorithm
source§impl From<SignatureAlgorithm> for i32
impl From<SignatureAlgorithm> for i32
source§fn from(value: SignatureAlgorithm) -> i32
fn from(value: SignatureAlgorithm) -> i32
source§impl Hash for SignatureAlgorithm
impl Hash for SignatureAlgorithm
source§impl Ord for SignatureAlgorithm
impl Ord for SignatureAlgorithm
source§fn cmp(&self, other: &SignatureAlgorithm) -> Ordering
fn cmp(&self, other: &SignatureAlgorithm) -> 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 SignatureAlgorithm
impl PartialEq for SignatureAlgorithm
source§fn eq(&self, other: &SignatureAlgorithm) -> bool
fn eq(&self, other: &SignatureAlgorithm) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SignatureAlgorithm
impl PartialOrd for SignatureAlgorithm
source§fn partial_cmp(&self, other: &SignatureAlgorithm) -> Option<Ordering>
fn partial_cmp(&self, other: &SignatureAlgorithm) -> 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 SignatureAlgorithm
impl TryFrom<i32> for SignatureAlgorithm
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<SignatureAlgorithm, UnknownEnumValue>
fn try_from(value: i32) -> Result<SignatureAlgorithm, UnknownEnumValue>
impl Copy for SignatureAlgorithm
impl Eq for SignatureAlgorithm
impl StructuralPartialEq for SignatureAlgorithm
Auto Trait Implementations§
impl Freeze for SignatureAlgorithm
impl RefUnwindSafe for SignatureAlgorithm
impl Send for SignatureAlgorithm
impl Sync for SignatureAlgorithm
impl Unpin for SignatureAlgorithm
impl UnwindSafe for SignatureAlgorithm
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