wpa_supplicant / hostapd
2.5
|
AES key unwrap (RFC3394) More...
Functions | |
int | aes_unwrap (const u8 *kek, size_t kek_len, int n, const u8 *cipher, u8 *plain) |
Unwrap key with AES Key Wrap Algorithm (RFC3394) More... | |
AES key unwrap (RFC3394)
int aes_unwrap | ( | const u8 * | kek, |
size_t | kek_len, | ||
int | n, | ||
const u8 * | cipher, | ||
u8 * | plain | ||
) |
Unwrap key with AES Key Wrap Algorithm (RFC3394)
kek | Key encryption key (KEK) |
kek_len | Length of KEK in octets |
n | Length of the plaintext key in 64-bit units; e.g., 2 = 128-bit = 16 bytes |
cipher | Wrapped key to be unwrapped, (n + 1) * 64 bits |
plain | Plaintext key, n * 64 bits |