aes-internal-enc.c File Reference

#include "includes.h"
#include "common.h"
#include "crypto.h"
#include "aes_i.h"
Include dependency graph for aes-internal-enc.c:

Go to the source code of this file.

Defines

#define ROUND(i, d, s)

Functions

void aes_encrypt (void *ctx, const u8 *plain, u8 *crypt)
void aes_encrypt_deinit (void *ctx)
void * aes_encrypt_init (const u8 *key, size_t len)
void rijndaelEncrypt (const u32 rk[], const u8 pt[16], u8 ct[16])

Define Documentation

#define ROUND ( i,
d,
 ) 
Value:
d##0 = TE0(s##0) ^ TE1(s##1) ^ TE2(s##2) ^ TE3(s##3) ^ rk[4 * i]; \
d##1 = TE0(s##1) ^ TE1(s##2) ^ TE2(s##3) ^ TE3(s##0) ^ rk[4 * i + 1]; \
d##2 = TE0(s##2) ^ TE1(s##3) ^ TE2(s##0) ^ TE3(s##1) ^ rk[4 * i + 2]; \
d##3 = TE0(s##3) ^ TE1(s##0) ^ TE2(s##1) ^ TE3(s##2) ^ rk[4 * i + 3]

Function Documentation

void aes_encrypt ( void *  ctx,
const u8 plain,
u8 crypt 
)

aes_encrypt - Encrypt one AES block : Context pointer from aes_encrypt_init() : Plaintext data to be encrypted (16 bytes) : Buffer for the encrypted data (16 bytes)

Definition at line 111 of file aes-internal-enc.c.

void aes_encrypt_deinit ( void *  ctx  ) 

aes_encrypt_deinit - Deinitialize AES encryption : Context pointer from aes_encrypt_init()

Definition at line 117 of file aes-internal-enc.c.

void* aes_encrypt_init ( const u8 key,
size_t  len 
)

aes_encrypt_init - Initialize AES for encryption : Encryption key : Key length in bytes (usually 16, i.e., 128 bits) Returns: Pointer to context data or NULL on failure

Definition at line 98 of file aes-internal-enc.c.

void rijndaelEncrypt ( const u32  rk[],
const u8  pt[16],
u8  ct[16] 
)

Definition at line 30 of file aes-internal-enc.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:01:35 2013