Struct crypto_api_chachapoly::ChachaPolyIetf[][src]

pub struct ChachaPolyIetf;
Expand description

An implementation of the ChachaPoly-IETF AEAD-construction

Implementations

Creates a Cipher instance with ChachaPolyIetf as underlying cipher

Creates a AeadCipher instance with ChachaPolyIetf as underlying AEAD cipher

Trait Implementations

AEAD-seals plaintext_len bytes in-place in buf together with ad using key and nonce and returns the ciphertext length Read more

AEAD-seals plaintext into buf together with ad using key and nonce and returns the ciphertext length Read more

AEAD-opens ciphertext_len bytes in-place in buf together with ad using key and nonce and returns the plaintext length Read more

AEAD-opens ciphertext into buf together with ad using key and nonce and returns the plaintext length Read more

Returns information about the cipher

Predicts the maximum encrypted length for plaintext_len bytes

Encrypts plaintext_len bytes in-place in buf using key and nonce and returns the ciphertext length Read more

Encrypts plaintext into buf using key and nonce and returns the ciphertext length

Decrypts ciphertext_len bytes in-place in buf using key and nonce and returns the plaintext length Read more

Decrypts ciphertext into buf using key and nonce and returns the plaintext length

Generates a new key into buf using rng and returns the length of the secret key

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

Performs the conversion.

Performs the conversion.

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.