[][src]Enum aliri_jose::jwa::rsa::SigningAlgorithm

#[non_exhaustive]pub enum SigningAlgorithm {
    RS256,
    RS384,
    RS512,
    PS256,
    PS384,
    PS512,
}

RSA public/private key signing algorithms

This list may be expanded in the future.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RS256

RSA using a 2048-bit key, producing a 8192-bit signature, using SHA-256 and PKCS 1.5

RS384

RSA using a 2048-bit key, producing a 8192-bit signature, using SHA-384 and PKCS 1.5

RS512

RSA using a 2048-bit key, producing a 8192-bit signature, using SHA-512 and PKCS 1.5

PS256

RSA using a 2048-bit key, producing a 8192-bit signature, using SHA-256 and PSS

PS384

RSA using a 2048-bit key, producing a 8192-bit signature, using SHA-256 and PSS

PS512

RSA using a 2048-bit key, producing a 8192-bit signature, using SHA-256 and PSS

Implementations

impl SigningAlgorithm[src]

pub const fn signature_size(self) -> usize[src]

The size in bytes of RSA signatures

Trait Implementations

impl Clone for SigningAlgorithm[src]

impl Copy for SigningAlgorithm[src]

impl Debug for SigningAlgorithm[src]

impl<'de> Deserialize<'de> for SigningAlgorithm[src]

impl Display for SigningAlgorithm[src]

impl Eq for SigningAlgorithm[src]

impl From<SigningAlgorithm> for Algorithm[src]

impl Hash for SigningAlgorithm[src]

impl PartialEq<SigningAlgorithm> for SigningAlgorithm[src]

impl Serialize for SigningAlgorithm[src]

impl StructuralEq for SigningAlgorithm[src]

impl StructuralPartialEq for SigningAlgorithm[src]

impl TryFrom<Algorithm> for SigningAlgorithm[src]

type Error = IncompatibleAlgorithm

The type returned in the event of a conversion error.

Auto Trait Implementations

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.