AES key unwrap (128-bit KEK, RFC3394). More...
#include "includes.h"#include "common.h"#include "aes.h"
Go to the source code of this file.
Functions | |
| int | aes_unwrap (const u8 *kek, int n, const u8 *cipher, u8 *plain) |
| Unwrap key with AES Key Wrap Algorithm (128-bit KEK) (RFC3394). | |
AES key unwrap (128-bit KEK, RFC3394).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file aes-unwrap.c.
| int aes_unwrap | ( | const u8 * | kek, | |
| int | n, | |||
| const u8 * | cipher, | |||
| u8 * | plain | |||
| ) |
Unwrap key with AES Key Wrap Algorithm (128-bit KEK) (RFC3394).
| kek | Key encryption key (KEK) | |
| 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 |
Definition at line 32 of file aes-unwrap.c.

1.6.1