aes-wrap.c File Reference

#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
Include dependency graph for aes-wrap.c:

Go to the source code of this file.

Functions

int aes_wrap (const u8 *kek, int n, const u8 *plain, u8 *cipher)

Function Documentation

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:01:35 2013