Enum biscuit::jwa::ContentEncryptionAlgorithm [] [src]

pub enum ContentEncryptionAlgorithm {
    A128CBC_HS256,
    A192CBC_HS384,
    A256CBC_HS512,
    A128GCM,
    A192GCM,
    A256GCM,
}

Algorithms meant for content encryption. See RFC7518#5

Variants

AES_128_CBC_HMAC_SHA_256 authenticated encryption algorithm enc

AES_192_CBC_HMAC_SHA_384 authenticated encryption algorithm enc

AES_256_CBC_HMAC_SHA_512 authenticated encryption algorithm enc

AES GCM using 128-bit key

AES GCM using 192-bit key This is not supported by ring.

AES GCM using 256-bit key

Methods

impl ContentEncryptionAlgorithm
[src]

Convenience function to generate a new random key with the required length

Encrypt some payload with the provided algorith

Decrypt some payload with the provided algorith,

Trait Implementations

impl Debug for ContentEncryptionAlgorithm
[src]

Formats the value using the given formatter.

impl Eq for ContentEncryptionAlgorithm
[src]

impl PartialEq for ContentEncryptionAlgorithm
[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 ContentEncryptionAlgorithm
[src]

impl Clone for ContentEncryptionAlgorithm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for ContentEncryptionAlgorithm
[src]

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