logo
pub trait DeoxysMode<B>: DeoxysModeInternal<B> where
    B: DeoxysBcType
{ type NonceSize: ArrayLength<u8>; fn encrypt_in_place(
        nonce: &GenericArray<u8, Self::NonceSize>,
        associated_data: &[u8],
        buffer: &mut [u8],
        subkeys: &GenericArray<[u8; 16], B::SubkeysSize>
    ) -> [u8; 16]; fn decrypt_in_place(
        nonce: &GenericArray<u8, Self::NonceSize>,
        associated_data: &[u8],
        buffer: &mut [u8],
        tag: &Tag,
        subkeys: &GenericArray<[u8; 16], B::SubkeysSize>
    ) -> Result<(), Error>; }
Expand description

Deoxys encryption modes. This type contains the public API for a Deoxys mode, like Deoxys-I and Deoxys-II.

Required Associated Types

The size of the required nonce

Required Methods

Encrypts the data in place with the specified parameters Returns the tag

Decrypts the data in place with the specified parameters Returns an error if the tag verification fails

Implementors