Struct ring13::aead::OpeningKey

source ·
pub struct OpeningKey { /* private fields */ }
Expand description

A key for authenticating and decrypting (“opening”) AEAD-protected data.

C analog: EVP_AEAD_CTX with direction evp_aead_open

Go analog: [crypto.cipher.AEAD]

Implementations§

Create a new opening key.

key_bytes must be exactly algorithm.key_len bytes long.

C analogs: EVP_AEAD_CTX_init_with_direction with direction evp_aead_open, EVP_AEAD_CTX_init.

Go analog: crypto.aes.NewCipher

The key’s AEAD algorithm.

C analog: EVP_AEAD_CTX.aead

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.