Defines | Functions
aes-internal-dec.c File Reference
#include "includes.h"
#include "common.h"
#include "crypto.h"
#include "aes_i.h"
Include dependency graph for aes-internal-dec.c:

Go to the source code of this file.

Defines

#define ROUND(i, d, s)

Functions

void aes_decrypt (void *ctx, const u8 *crypt, u8 *plain)
void aes_decrypt_deinit (void *ctx)
void * aes_decrypt_init (const u8 *key, size_t len)
static void rijndaelDecrypt (const u32 rk[], const u8 ct[16], u8 pt[16])
void rijndaelKeySetupDec (u32 rk[], const u8 cipherKey[])

Define Documentation

#define ROUND (   i,
  d,
  s 
)
Value:
d##0 = TD0(s##0) ^ TD1(s##3) ^ TD2(s##2) ^ TD3(s##1) ^ rk[4 * i]; \
d##1 = TD0(s##1) ^ TD1(s##0) ^ TD2(s##3) ^ TD3(s##2) ^ rk[4 * i + 1]; \
d##2 = TD0(s##2) ^ TD1(s##1) ^ TD2(s##0) ^ TD3(s##3) ^ rk[4 * i + 2]; \
d##3 = TD0(s##3) ^ TD1(s##2) ^ TD2(s##1) ^ TD3(s##0) ^ rk[4 * i + 3]

Function Documentation

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

aes_decrypt - Decrypt one AES block : Context pointer from aes_encrypt_init() : Encrypted data (16 bytes) : Buffer for the decrypted data (16 bytes)

Definition at line 141 of file aes-internal-dec.c.

void aes_decrypt_deinit ( void *  ctx)

aes_decrypt_deinit - Deinitialize AES decryption : Context pointer from aes_encrypt_init()

Definition at line 147 of file aes-internal-dec.c.

void* aes_decrypt_init ( const u8 *  key,
size_t  len 
)

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

Definition at line 62 of file aes-internal-dec.c.

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

Definition at line 74 of file aes-internal-dec.c.

void rijndaelKeySetupDec ( u32  rk[],
const u8  cipherKey[] 
)

Expand the cipher key into the decryption key schedule.

Returns:
the number of rounds for the given cipher key size.

Definition at line 35 of file aes-internal-dec.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:22