Enum biscuit::jwa::KeyManagementAlgorithm [] [src]

pub enum KeyManagementAlgorithm {
    RSA1_5,
    RSA_OAEP,
    RSA_OAEP_256,
    A128KW,
    A192KW,
    A256KW,
    DirectSymmetricKey,
    ECDH_ES,
    ECDH_ES_A128KW,
    ECDH_ES_A192KW,
    ECDH_ES_A256KW,
    A128GCMKW,
    A192GCMKW,
    A256GCMKW,
    PBES2_HS256_A128KW,
    PBES2_HS384_A192KW,
    PBES2_HS512_A256KW,
}

Algorithms for key management as defined in RFC7518#4

Variants

RSAES-PKCS1-v1_5

RSAES OAEP using default parameters

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

AES Key Wrap using 128-bit key. Unsupported

AES Key Wrap using 192-bit key. Unsupported. This is not supported by ring.

AES Key Wrap using 256-bit key. Unsupported

Direct use of a shared symmetric key

ECDH-ES using Concat KDF

ECDH-ES using Concat KDF and "A128KW" wrapping

ECDH-ES using Concat KDF and "A192KW" wrapping

ECDH-ES using Concat KDF and "A256KW" wrapping

Key wrapping with AES GCM using 128-bit key alg

Key wrapping with AES GCM using 192-bit key alg. This is not supported by ring.

Key wrapping with AES GCM using 256-bit key alg

PBES2 with HMAC SHA-256 and "A128KW" wrapping

PBES2 with HMAC SHA-384 and "A192KW" wrapping

PBES2 with HMAC SHA-512 and "A256KW" wrapping

Methods

impl KeyManagementAlgorithm
[src]

Returns the type of operations that the algorithm is intended to support

Retrieve the Content Encryption Key (CEK) based on the algorithm for encryption

Encrypt or wrap a key with the provided algorithm

Decrypt or unwrap a CEK with the provided algorithm

Trait Implementations

impl Debug for KeyManagementAlgorithm
[src]

Formats the value using the given formatter.

impl Eq for KeyManagementAlgorithm
[src]

impl PartialEq for KeyManagementAlgorithm
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Copy for KeyManagementAlgorithm
[src]

impl Clone for KeyManagementAlgorithm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for KeyManagementAlgorithm
[src]

Returns the "default value" for a type. Read more