#[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 moreSource§impl Debug for SignatureAlgorithm
impl Debug for SignatureAlgorithm
Source§impl Default for SignatureAlgorithm
impl Default for SignatureAlgorithm
Source§impl<'de> Deserialize<'de> for SignatureAlgorithm
impl<'de> Deserialize<'de> for SignatureAlgorithm
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for SignatureAlgorithm
impl Display for SignatureAlgorithm
Source§impl From<&str> for SignatureAlgorithm
impl From<&str> for SignatureAlgorithm
Source§impl From<i32> for SignatureAlgorithm
impl From<i32> for SignatureAlgorithm
Source§impl PartialEq for SignatureAlgorithm
impl PartialEq for SignatureAlgorithm
Source§impl Serialize for SignatureAlgorithm
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.