Struct aes_kw::Kek [−][src]
pub struct Kek<Aes> where
Aes: NewBlockCipher + BlockCipher<BlockSize = U16> + BlockEncrypt + BlockDecrypt, { /* fields omitted */ }
Expand description
A Key-Encrypting-Key (KEK) that can be used to wrap and unwrap other keys.
Implementations
Constructs a new Kek based on the appropriate raw key material.
AES Key Wrap, as defined in RFC 3394.
The out
buffer will be overwritten, and must be exactly IV_LEN
bytes (i.e. 8 bytes) longer than the length of data
.
This is supported on crate feature alloc
only.
This is supported on crate feature
alloc
only.Computes Self::wrap
, allocating a Vec
for the return value.
AES Key Unwrap, as defined in RFC 3394.
The out
buffer will be overwritten, and must be exactly IV_LEN
bytes (i.e. 8 bytes) shorter than the length of data
.
This is supported on crate feature alloc
only.
This is supported on crate feature
alloc
only.Computes Self::unwrap
, allocating a Vec
for the return value.
Trait Implementations
impl<Aes: Copy> Copy for Kek<Aes> where
Aes: NewBlockCipher + BlockCipher<BlockSize = U16> + BlockEncrypt + BlockDecrypt,
impl<Aes> StructuralPartialEq for Kek<Aes> where
Aes: NewBlockCipher + BlockCipher<BlockSize = U16> + BlockEncrypt + BlockDecrypt,
Auto Trait Implementations
impl<Aes> RefUnwindSafe for Kek<Aes> where
Aes: RefUnwindSafe,
impl<Aes> UnwindSafe for Kek<Aes> where
Aes: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more