Struct ring_compat::aead::Aes128Gcm [−][src]
pub struct Aes128Gcm(_);
aead only.Expand description
AES-GCM with a 128-bit key
Trait Implementations
type NonceSize = U12
type NonceSize = U12The length of a nonce.
type TagSize = U16
type TagSize = U16The maximum length of the nonce.
type CiphertextOverhead = U0
type CiphertextOverhead = U0The upper bound amount of additional space required to support a ciphertext vs. a plaintext. Read more
Encrypt the data in-place, returning the authentication tag
Decrypt the message in-place, returning an error in the event the provided authentication tag does not match the given ciphertext. Read more
Decrypt the message in-place, returning an error in the event the provided authentication tag does not match the given ciphertext (i.e. ciphertext is modified/unauthentic) Read more
type KeySize = U16
type KeySize = U16The size of the key array required by this algorithm.
Create a new AEAD instance with the given key.
Auto Trait Implementations
impl RefUnwindSafe for Aes128Gcmimpl UnwindSafe for Aes128GcmBlanket Implementations
Encrypt the given plaintext payload, and return the resulting ciphertext as a vector of bytes. Read more
Encrypt the given plaintext slice, and return the resulting ciphertext as a vector of bytes. Read more
Encrypt the given buffer containing a plaintext message in-place. Read more
Encrypt the data in-place, returning the authentication tag
Decrypt the message in-place, returning an error in the event the provided authentication tag does not match the given ciphertext. Read more
Decrypt the data in-place, returning an error in the event the provided authentication tag does not match the given ciphertext (i.e. ciphertext is modified/unauthentic) Read more
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self