wpa_supplicant / hostapd 2.0
Functions

aes-wrap.c File Reference

AES Key Wrap Algorithm (128-bit KEK) (RFC3394) More...

#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"

Functions

int aes_wrap (const u8 *kek, int n, const u8 *plain, u8 *cipher)
 Wrap keys with AES Key Wrap Algorithm (128-bit KEK) (RFC3394)

Detailed Description

AES Key Wrap Algorithm (128-bit KEK) (RFC3394)

Copyright
Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>

This software may be distributed under the terms of the BSD license. See README for more details.


Function Documentation

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

Wrap keys with AES Key Wrap Algorithm (128-bit KEK) (RFC3394)

Parameters:
kek16-octet Key encryption key (KEK)
nLength of the plaintext key in 64-bit units; e.g., 2 = 128-bit = 16 bytes
plainPlaintext key to be wrapped, n * 64 bits
cipherWrapped key, (n + 1) * 64 bits
Returns:
0 on success, -1 on failure
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines