pub struct Key<'b, T>where
T: AesFlavour,{ /* private fields */ }
Expand description
Aes cipher key
A Key
can be initialized from an array of appropriate length:
let key = Key::<Aes128>::from(&[0_u8;16]);
let key = Key::<Aes192>::from(&[0_u8;24]);
let key = Key::<Aes256>::from(&[0_u8;32]);
Converts to this type from the input type.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.