Enum aes_kw::Error [−][src]
pub enum Error {
InvalidDataSize,
InvalidKekSize {
size: usize,
},
InvalidOutputSize {
expected: usize,
},
IntegrityCheckFailed,
}
Expand description
Errors emitted from the wrap and unwrap operations.
Variants
InvalidDataSize
Input data length invalid.
InvalidKekSize
Fields
size: usize
KEK size provided in bytes (expected 8, 12, or 24).
Invalid KEK size.
InvalidOutputSize
Fields
expected: usize
Expected size in bytes.
Output buffer size invalid.
IntegrityCheckFailed
Integrity check did not pass.