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
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