Enum gapi_grpc::google::cloud::binaryauthorization::v1beta1::pkix_public_key::SignatureAlgorithm[][src]

#[repr(i32)]pub enum SignatureAlgorithm {
    Unspecified,
    RsaPss2048Sha256,
    RsaPss3072Sha256,
    RsaPss4096Sha256,
    RsaPss4096Sha512,
    RsaSignPkcs12048Sha256,
    RsaSignPkcs13072Sha256,
    RsaSignPkcs14096Sha256,
    RsaSignPkcs14096Sha512,
    EcdsaP256Sha256,
    EcdsaP384Sha384,
    EcdsaP521Sha512,
}

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

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.

EcdsaP384Sha384

ECDSA on the NIST P-384 curve with a SHA384 digest.

EcdsaP521Sha512

ECDSA on the NIST P-521 curve with a SHA512 digest.

Implementations

impl SignatureAlgorithm[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of SignatureAlgorithm.

pub fn from_i32(value: i32) -> Option<SignatureAlgorithm>[src]

Converts an i32 to a SignatureAlgorithm, or None if value is not a valid variant.

Trait Implementations

impl Clone for SignatureAlgorithm[src]

impl Copy for SignatureAlgorithm[src]

impl Debug for SignatureAlgorithm[src]

impl Default for SignatureAlgorithm[src]

impl Eq for SignatureAlgorithm[src]

impl From<SignatureAlgorithm> for i32[src]

impl Hash for SignatureAlgorithm[src]

impl Ord for SignatureAlgorithm[src]

impl PartialEq<SignatureAlgorithm> for SignatureAlgorithm[src]

impl PartialOrd<SignatureAlgorithm> for SignatureAlgorithm[src]

impl StructuralEq for SignatureAlgorithm[src]

impl StructuralPartialEq for SignatureAlgorithm[src]

Auto Trait Implementations

impl RefUnwindSafe for SignatureAlgorithm

impl Send for SignatureAlgorithm

impl Sync for SignatureAlgorithm

impl Unpin for SignatureAlgorithm

impl UnwindSafe for SignatureAlgorithm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]