Go to the source code of this file.
Functions | |
int | aes_unwrap (const u8 *kek, int n, const u8 *cipher, u8 *plain) |
int aes_unwrap | ( | const u8 * | kek, |
int | n, | ||
const u8 * | cipher, | ||
u8 * | plain | ||
) |
aes_unwrap - Unwrap key with AES Key Wrap Algorithm (128-bit KEK) (RFC3394) : Key encryption key (KEK)
: Length of the plaintext key in 64-bit units; e.g., 2 = 128-bit = 16 bytes : Wrapped key to be unwrapped, (n + 1) * 64 bits : Plaintext key, n * 64 bits Returns: 0 on success, -1 on failure (e.g., integrity verification failed)
Definition at line 31 of file aes-unwrap.c.