aes-eax.c File Reference

AES-128 EAX. More...

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

Go to the source code of this file.

Functions

int aes_128_eax_encrypt (const u8 *key, const u8 *nonce, size_t nonce_len, const u8 *hdr, size_t hdr_len, u8 *data, size_t data_len, u8 *tag)
 AES-128 EAX mode encryption.
int aes_128_eax_decrypt (const u8 *key, const u8 *nonce, size_t nonce_len, const u8 *hdr, size_t hdr_len, u8 *data, size_t data_len, const u8 *tag)
 AES-128 EAX mode decryption.

Detailed Description

AES-128 EAX.

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-eax.c.


Function Documentation

int aes_128_eax_decrypt ( const u8 *  key,
const u8 *  nonce,
size_t  nonce_len,
const u8 *  hdr,
size_t  hdr_len,
u8 *  data,
size_t  data_len,
const u8 *  tag 
)

AES-128 EAX mode decryption.

Parameters:
key Key for decryption (16 bytes)
nonce Nonce for counter mode
nonce_len Nonce length in bytes
hdr Header data to be authenticity protected
hdr_len Length of the header data bytes
data Data to encrypt in-place
data_len Length of data in bytes
tag 16-byte tag value
Returns:
0 on success, -1 on failure, -2 if tag does not match

Definition at line 101 of file aes-eax.c.

Here is the call graph for this function:

int aes_128_eax_encrypt ( const u8 *  key,
const u8 *  nonce,
size_t  nonce_len,
const u8 *  hdr,
size_t  hdr_len,
u8 *  data,
size_t  data_len,
u8 *  tag 
)

AES-128 EAX mode encryption.

Parameters:
key Key for encryption (16 bytes)
nonce Nonce for counter mode
nonce_len Nonce length in bytes
hdr Header data to be authenticity protected
hdr_len Length of the header data bytes
data Data to encrypt in-place
data_len Length of data in bytes
tag 16-byte tag value
Returns:
0 on success, -1 on failure

Definition at line 36 of file aes-eax.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:42 2009 for hostapd by  doxygen 1.6.1