[][src]Enum openid::biscuit::jwa::EncryptionOptions

pub enum EncryptionOptions {
    None,
    AES_GCM {
        nonce: Vec<u8>,
    },
}

Options to be passed in while performing an encryption operation, if required by the algorithm.

Variants

None

No options are required. Most algorithms do not require additional parameters

AES_GCM

Options for AES GCM encryption.

Fields of AES_GCM

nonce: Vec<u8>

Initialization vector, or nonce for the AES GCM encryption. MUST BE 96 bits long.

AES GCM encryption operations should not reuse the nonce, or initialization vector. Users should keep track of previously used nonces and not reuse them. A simple way to keep track is to simply increment the nonce as a 96 bit counter.

Implementations

impl EncryptionOptions[src]

pub fn description(&self) -> &'static str[src]

Description of the type of key

Trait Implementations

impl Clone for EncryptionOptions[src]

impl Debug for EncryptionOptions[src]

impl Default for EncryptionOptions[src]

impl Display for EncryptionOptions[src]

impl Eq for EncryptionOptions[src]

impl PartialEq<EncryptionOptions> for EncryptionOptions[src]

impl StructuralEq for EncryptionOptions[src]

impl StructuralPartialEq for EncryptionOptions[src]

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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.