aes-cbc.c File Reference

AES-128 CBC. More...

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

Go to the source code of this file.

Functions

int aes_128_cbc_encrypt (const u8 *key, const u8 *iv, u8 *data, size_t data_len)
 AES-128 CBC encryption.
int aes_128_cbc_decrypt (const u8 *key, const u8 *iv, u8 *data, size_t data_len)
 AES-128 CBC decryption.

Detailed Description

AES-128 CBC.

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


Function Documentation

int aes_128_cbc_decrypt ( const u8 *  key,
const u8 *  iv,
u8 *  data,
size_t  data_len 
)

AES-128 CBC decryption.

Parameters:
key Decryption key
iv Decryption IV for CBC mode (16 bytes)
data Data to decrypt in-place
data_len Length of data in bytes (must be divisible by 16)
Returns:
0 on success, -1 on failure

Definition at line 65 of file aes-cbc.c.

Here is the call graph for this function:

int aes_128_cbc_encrypt ( const u8 *  key,
const u8 *  iv,
u8 *  data,
size_t  data_len 
)

AES-128 CBC encryption.

Parameters:
key Encryption key
iv Encryption IV for CBC mode (16 bytes)
data Data to encrypt in-place
data_len Length of data in bytes (must be divisible by 16)
Returns:
0 on success, -1 on failure

Definition at line 31 of file aes-cbc.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:39 2009 for hostapd by  doxygen 1.6.1