pub type Aes256GcmSiv = AesGcmSiv<Aes256>;
Expand description
AES-GCM-SIV with a 256-bit key.
Aliased Type§
struct Aes256GcmSiv { /* private fields */ }
Trait Implementations
Source§impl<Aes> AeadCore for AesGcmSiv<Aes>
impl<Aes> AeadCore for AesGcmSiv<Aes>
Source§impl<Aes> AeadInPlace for AesGcmSiv<Aes>
impl<Aes> AeadInPlace for AesGcmSiv<Aes>
Source§fn encrypt_in_place_detached(
&self,
nonce: &Nonce,
associated_data: &[u8],
buffer: &mut [u8],
) -> Result<Tag, Error>
fn encrypt_in_place_detached( &self, nonce: &Nonce, associated_data: &[u8], buffer: &mut [u8], ) -> Result<Tag, Error>
Encrypt the data in-place, returning the authentication tag
Source§fn decrypt_in_place_detached(
&self,
nonce: &Nonce,
associated_data: &[u8],
buffer: &mut [u8],
tag: &Tag,
) -> Result<(), Error>
fn decrypt_in_place_detached( &self, nonce: &Nonce, associated_data: &[u8], buffer: &mut [u8], tag: &Tag, ) -> Result<(), Error>
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)
Source§impl<Aes> From<Aes> for AesGcmSiv<Aes>where
Aes: BlockCipher<BlockSize = U16> + BlockEncrypt,
impl<Aes> From<Aes> for AesGcmSiv<Aes>where
Aes: BlockCipher<BlockSize = U16> + BlockEncrypt,
Source§impl<Aes> KeyInit for AesGcmSiv<Aes>
impl<Aes> KeyInit for AesGcmSiv<Aes>
§fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
Create new value from variable size key.