[][src]Enum openidconnect::core::CoreJweKeyManagementAlgorithm

pub enum CoreJweKeyManagementAlgorithm {
    RsaPkcs1V15,
    RsaOaep,
    RsaOaepSha256,
    AesKeyWrap128,
    AesKeyWrap192,
    AesKeyWrap256,
    Direct,
    EcdhEs,
    EcdhEsAesKeyWrap128,
    EcdhEsAesKeyWrap192,
    EcdhEsAesKeyWrap256,
    Aes128Gcm,
    Aes192Gcm,
    Aes256Gcm,
    PbEs2HmacSha256AesKeyWrap128,
    PbEs2HmacSha384AesKeyWrap192,
    PbEs2HmacSha512AesKeyWrap256,
}

OpenID Connect Core JWE key management algorithms.

These algorithms represent the alg header parameter values for JSON Web Encryption. They are used to encrypt the Content Encryption Key (CEK) to produce the JWE Encrypted Key, or to use key agreement to agree upon the CEK. The values are described in Section 4.1 of RFC 7518.

Variants

RsaPkcs1V15

RSAES-PKCS1-V1_5.

RsaOaep

RSAES OAEP using default parameters.

RsaOaepSha256

RSAES OAEP using SHA-256 and MGF1 with SHA-256.

AesKeyWrap128

AES-128 Key Wrap.

AesKeyWrap192

AES-192 Key Wrap.

AesKeyWrap256

AES-256 Key Wrap.

Direct

Direct use of a shared symmetric key as the Content Encryption Key (CEK).

EcdhEs

Elliptic Curve Diffie-Hellman Ephemeral Static key agreement using Concat KDF.

EcdhEsAesKeyWrap128

ECDH-ES using Concat KDF and CEK wrapped with AES-128 Key Wrap.

EcdhEsAesKeyWrap192

ECDH-ES using Concat KDF and CEK wrapped with AES-192 Key Wrap.

EcdhEsAesKeyWrap256

ECDH-ES using Concat KDF and CEK wrapped with AES-256 Key Wrap.

Aes128Gcm

Key wrapping with AES GCM using 128 bit key.

Aes192Gcm

Key wrapping with AES GCM using 192 bit key.

Aes256Gcm

Key wrapping with AES GCM using 256 bit key.

PbEs2HmacSha256AesKeyWrap128

PBES2 with HMAC SHA-256 wrapped with AES-128 Key Wrap.

PbEs2HmacSha384AesKeyWrap192

PBES2 with HMAC SHA-384 wrapped with AES-192 Key Wrap.

PbEs2HmacSha512AesKeyWrap256

PBES2 with HMAC SHA-512 wrapped with AES-256 Key Wrap.

Trait Implementations

impl JweKeyManagementAlgorithm for CoreJweKeyManagementAlgorithm[src]

impl Clone for CoreJweKeyManagementAlgorithm[src]

impl Eq for CoreJweKeyManagementAlgorithm[src]

impl PartialEq<CoreJweKeyManagementAlgorithm> for CoreJweKeyManagementAlgorithm[src]

impl Debug for CoreJweKeyManagementAlgorithm[src]

impl Hash for CoreJweKeyManagementAlgorithm[src]

impl Serialize for CoreJweKeyManagementAlgorithm[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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