OSTC Companion
3.0
Companion sofftware for H&W dive computers
|
#include <rijndael.h>
Public Types | |
typedef Byte | Key [KEYLENGTH(keybits)] |
typedef Block | IV |
Public Types inherited from Rijndael::ECB< keybits > | |
typedef Byte | Key [KEYLENGTH(keybits)] |
Public Member Functions | |
CFB (const Key key, const IV iv) | |
Initialize encryption/decription state. More... | |
void | encrypt (const Block plaintext, Block ciphertext) |
Encrypt a block of 16 bytes, with IV (CFB mode) More... | |
void | decrypt (const Block ciphertext, Block plaintext) |
Decrypt a block of 16 bytes, with IV (CFB mode) More... | |
Public Member Functions inherited from Rijndael::ECB< keybits > | |
ECB () | |
void | setupEncrypt (const Key key) |
Initialize encryption state. More... | |
void | encrypt (const Block plaintext, Block ciphertext) |
Encrypt a block of 16 bytes. More... | |
void | setupDecrypt (const Key key) |
Initialize decryption state. More... | |
void | decrypt (const Block ciphertext, Block plaintext) |
Decrypt a block of 16 bytes. More... | |
Word32 | get_random () |
Crypto base PRNG. More... | |
typedef Block Rijndael::CFB< keybits >::IV |
typedef Byte Rijndael::CFB< keybits >::Key[KEYLENGTH(keybits)] |
Rijndael::CFB< keybits >::CFB | ( | const Key | key, |
const IV | iv | ||
) |
Initialize encryption/decription state.
[in] | key | AES key, where length is: keybits number of bytes 128 16 192 24 256 32 |
[in] | iv | initialization vector. Some randomness needed to enforce the sequence is non replayable. |
void Rijndael::CFB< keybits >::decrypt | ( | const Block | ciphertext, |
Block | plaintext | ||
) |
Decrypt a block of 16 bytes, with IV (CFB mode)
[in] | ciphertext | The 16 bytes block of data to decrypt. |
[out] | plaintext | Space to store the 16 bytes result block. |
void Rijndael::CFB< keybits >::encrypt | ( | const Block | plaintext, |
Block | ciphertext | ||
) |
Encrypt a block of 16 bytes, with IV (CFB mode)
[in] | plaintext | The 16 bytes block to encrypt. |
[out] | ciphertext | Space to store the 16 bytes of encrypted data. |