aes-wrap.c File Reference

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

#include "includes.h"
#include "common.h"
#include "aes.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)
 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 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-wrap.c.


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:
kek 16-octet Key encryption key (KEK)
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
Returns:
0 on success, -1 on failure

Definition at line 32 of file aes-wrap.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:18:50 2009 for hostapd by  doxygen 1.6.1