#[non_exhaustive]pub enum SignatureAlgorithm {
Show 16 variants
Unspecified,
RsaPss2048Sha256,
RsaPss3072Sha256,
RsaPss4096Sha256,
RsaPss4096Sha512,
RsaSignPkcs12048Sha256,
RsaSignPkcs13072Sha256,
RsaSignPkcs14096Sha256,
RsaSignPkcs14096Sha512,
EcdsaP256Sha256,
EcSignP256Sha256,
EcdsaP384Sha384,
EcSignP384Sha384,
EcdsaP521Sha512,
EcSignP521Sha512,
UnknownValue(UnknownValue),
}
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.
§Working with unknown values
This enum is defined as #[non_exhaustive]
because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Not specified.
RsaPss2048Sha256
RSASSA-PSS 2048 bit key with a SHA256 digest.
RsaPss3072Sha256
RSASSA-PSS 3072 bit key with a SHA256 digest.
RsaPss4096Sha256
RSASSA-PSS 4096 bit key with a SHA256 digest.
RsaPss4096Sha512
RSASSA-PSS 4096 bit key with a SHA512 digest.
RsaSignPkcs12048Sha256
RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
RsaSignPkcs13072Sha256
RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
RsaSignPkcs14096Sha256
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
RsaSignPkcs14096Sha512
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
EcdsaP256Sha256
ECDSA on the NIST P-256 curve with a SHA256 digest.
EcSignP256Sha256
ECDSA on the NIST P-256 curve with a SHA256 digest.
EcdsaP384Sha384
ECDSA on the NIST P-384 curve with a SHA384 digest.
EcSignP384Sha384
ECDSA on the NIST P-384 curve with a SHA384 digest.
EcdsaP521Sha512
ECDSA on the NIST P-521 curve with a SHA512 digest.
EcSignP521Sha512
ECDSA on the NIST P-521 curve with a SHA512 digest.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using SignatureAlgorithm::value or SignatureAlgorithm::name.
Implementations§
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 more