OSTC Companion
3.0
Companion sofftware for H&W dive computers
|
Public Domain AES encryption/decryption rewritten. More...
#include <rijndael.h>
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) |
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
|
static |
|
static |
Expand the cipher key into the decryption key schedule.
Expand the cipher key into the encryption key schedule.