wpa_supplicant / hostapd
2.5
|
AES Key Wrap Algorithm (RFC3394) More...
Functions | |
int | aes_wrap (const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) |
Wrap keys with AES Key Wrap Algorithm (RFC3394) More... | |
AES Key Wrap Algorithm (RFC3394)
int aes_wrap | ( | const u8 * | kek, |
size_t | kek_len, | ||
int | n, | ||
const u8 * | plain, | ||
u8 * | cipher | ||
) |
Wrap keys 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 |
plain | Plaintext key to be wrapped, n * 64 bits |
cipher | Wrapped key, (n + 1) * 64 bits |