OSTC Companion  3.0
Companion sofftware for H&W dive computers
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
Rijndael::AES Struct Reference

Public Domain AES encryption/decryption rewritten. More...

#include <rijndael.h>

Inheritance diagram for Rijndael::AES:
Inheritance graph
[legend]

Static Public Member Functions

static void setupEncrypt (Word32 *rk, const Byte *key, int keybits)
 
static void setupDecrypt (Word32 *rk, const Byte *key, int keybits)
 
static void encrypt (Word32 *rk, int nrounds, const Block plaintext, Block ciphertext)
 
static void decrypt (Word32 *rk, int nrounds, const Block ciphertext, Block plaintext)
 
static Word32 get_random (Word32 *rk, int keybits)
 

Detailed Description

Public Domain AES encryption/decryption rewritten.

The Rijndael encryption algorithm has been designed to replace the aging DES algorithm. Like DES, it is a block cipher. It uses 128-bit, 192-bit or 256-bit keys. This implementation encrypts 128-bit blocks. (DES used 56-bit keys and 64-bit blocks.)

The code in this package is a modified version of an implementation placed in the public domain by the following persons:

See details in http://www.efgh.com/software/rijndael.htm

Member Function Documentation

void Rijndael::AES::decrypt ( Word32 rk,
int  nrounds,
const Block  ciphertext,
Block  plaintext 
)
static
void Rijndael::AES::encrypt ( Word32 rk,
int  nrounds,
const Block  plaintext,
Block  ciphertext 
)
static
Word32 Rijndael::AES::get_random ( Word32 rk,
int  keybits 
)
static
void Rijndael::AES::setupDecrypt ( Word32 rk,
const Byte key,
int  keybits 
)
static

Expand the cipher key into the decryption key schedule.

Returns
the number of rounds for the given cipher key size.
void Rijndael::AES::setupEncrypt ( Word32 rk,
const Byte key,
int  keybits 
)
static

Expand the cipher key into the encryption key schedule.


The documentation for this struct was generated from the following files: