Struct mgm::Mgm [−][src]
pub struct Mgm<C> where
C: BlockEncrypt,
C::BlockSize: MgmBlockSize, { /* fields omitted */ }
Expand description
Multilinear Galous Mode cipher
Trait Implementations
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 (i.e. ciphertext is modified/unauthentic) Read more
Encrypt the given buffer containing a plaintext message in-place. Read more
Auto Trait Implementations
impl<C> RefUnwindSafe for Mgm<C> where
C: RefUnwindSafe,
impl<C> UnwindSafe for Mgm<C> where
C: UnwindSafe,
Blanket 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 = T
Should always be Self