aes-ctr.c File Reference

AES-128 CTR. More...

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

Go to the source code of this file.

Functions

int aes_128_ctr_encrypt (const u8 *key, const u8 *nonce, u8 *data, size_t data_len)
 AES-128 CTR mode encryption.

Detailed Description

AES-128 CTR.

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


Function Documentation

int aes_128_ctr_encrypt ( const u8 *  key,
const u8 *  nonce,
u8 *  data,
size_t  data_len 
)

AES-128 CTR mode encryption.

Parameters:
key Key for encryption (16 bytes)
nonce Nonce for counter mode (16 bytes)
data Data to encrypt in-place
data_len Length of data in bytes
Returns:
0 on success, -1 on failure

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