Struct ring13::aead::SealingKey

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

A key for encrypting and signing (“sealing”) data.

C analog: EVP_AEAD_CTX with direction evp_aead_seal.

Go analog: AEAD

Implementations§

C analogs: EVP_AEAD_CTX_init_with_direction with direction evp_aead_seal, 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.