Trait deoxys::DeoxysBcType
source · [−]pub trait DeoxysBcType: DeoxysBcInternal {
type KeySize: ArrayLength<u8>;
fn precompute_subkeys(
key: &GenericArray<u8, Self::KeySize>
) -> GenericArray<[u8; 16], Self::SubkeysSize>;
fn encrypt_in_place(
block: &mut [u8; 16],
tweak: &[u8; 16],
subkeys: &GenericArray<[u8; 16], Self::SubkeysSize>
) { ... }
fn decrypt_in_place(
block: &mut [u8; 16],
tweak: &[u8; 16],
subkeys: &GenericArray<[u8; 16], Self::SubkeysSize>
) { ... }
}
Expand description
Deoxys-BC trait. This type contains the public API for Deoxys-BC implementations, which varies depending on the size of the key.
Required Associated Types
Required Methods
Provided Methods
Encrypts a block of data in place.