$search
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
Go to the source code of this file.
Functions | |
int | aes_wrap (const u8 *kek, int n, const u8 *plain, u8 *cipher) |
aes_wrap - Wrap keys with AES Key Wrap Algorithm (128-bit KEK) (RFC3394) : 16-octet Key encryption key (KEK)
: Length of the plaintext key in 64-bit units; e.g., 2 = 128-bit = 16 bytes : Plaintext key to be wrapped, n * 64 bits : Wrapped key, (n + 1) * 64 bits Returns: 0 on success, -1 on failure
Definition at line 31 of file aes-wrap.c.