Struct nettle::aead::ChaChaPoly1305[][src]

pub struct ChaChaPoly1305 { /* fields omitted */ }
Expand description

D.J. Bernsteins ChaCha-Poly1305 AEAD stream cipher.

Implementations

Size of a Poly1305 digest in bytes.

Size of the ChaCha key in bytes.

Size of the ChaChaPoly1305 nonce in bytes.

Creates a new ChaChaPoly1305 instance with secret key and public nonce.

Trait Implementations

Length of the digest in bytes.

Adds associated data ad.

Encrypts one block src to dst.

Decrypts one block src to dst.

Produce the digest.

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.