Files | |
file | aes.c |
AES cipher, code. | |
file | aes.h |
AES block cipher, header. | |
file | blockmode.c |
Block cipher operation modes, code. | |
file | blockmode.h |
Blockcipher operation modes, header. | |
file | blockpad.c |
Blockcipher padding, code. | |
file | blockpad.h |
Blockcipher padding, header. | |
file | blowfish.c |
Blowfish block cipher, code. | |
file | blowfish.h |
Blowfish block cipher, header. | |
file | blowfishopt.h |
Blowfish block cipher assembler-optimized routines, header. | |
Data Structures | |
struct | blockCipher |
struct | blockCipherContext |
struct | blockMode |
Block ciphers | |
typedef void | blockCipherParam |
typedef int(* | blockModeEncrypt )(blockCipherParam *param, int count, uint32 *dst, const uint32 *src) |
typedef int(* | blockModeDecrypt )(blockCipherParam *param, int count, uint32 *dst, const uint32 *src) |
typedef int(* | blockCipherSetup )(blockCipherParam *param, const uint32 *key, int keybits, cipherOperation cipherOperation) |
typedef int(* | blockCipherSetIV )(blockCipherParam *param, const uint32 *data) |
typedef int(* | blockCipherEncrypt )(blockCipherParam *param, uint32 *dst, const uint32 *src) |
typedef int(* | blockCipherDecrypt )(blockCipherParam *param, uint32 *dst, const uint32 *src) |
enum | cipherOperation { ENCRYPT, DECRYPT } |
enum | cipherMode { ECB, CBC } |
int | blockCipherCount (void) |
const blockCipher * | blockCipherGet (int index) |
const blockCipher * | blockCipherFind (const char *name) |
const blockCipher * | blockCipherDefault (void) |
int | blockCipherContextInit (blockCipherContext *ctxt, const blockCipher *ciph) |
int | blockCipherContextSetup (blockCipherContext *ctxt, const uint32 *key, int keybits, cipherOperation op) |
int | blockCipherContextSetIV (blockCipherContext *ctxt, const uint32 *iv) |
int | blockCipherContextFree (blockCipherContext *ctxt) |
|
Decrypt one block of data (with bit size chosen by the blockcipher).
Definition at line 760 of file beecrypt.h. |
|
Encrypt one block of data (with bit size chosen by the blockcipher).
Definition at line 748 of file beecrypt.h. |
|
Definition at line 664 of file beecrypt.h. Referenced by blockCipherContextFree, blockCipherContextInit, blockCipherContextSetIV, blockCipherContextSetup, blockDecrypt, and blockEncrypt. |
|
Initialize IV for blockcipher.
Definition at line 736 of file beecrypt.h. |
|
Setup the blockcipher parameters with the given secret key for either encryption or decryption.
Definition at line 727 of file beecrypt.h. |
|
Definition at line 703 of file beecrypt.h. |
|
Definition at line 693 of file beecrypt.h. Referenced by blockDecrypt, and blockEncrypt. |
|
Block cipher modes. Definition at line 679 of file beecrypt.h. Referenced by blockDecrypt, and blockEncrypt. |
|
Block cipher operations. Definition at line 669 of file beecrypt.h. Referenced by aesSetup, blockCipherContextSetup, blowfishSetup, and dhaes_pContextSetup. |
|
Destroy a blockCipher instance. Definition at line 839 of file beecrypt.c. Referenced by dhaes_pContextFree. |
|
Initialize a blockCipher instance. Definition at line 785 of file beecrypt.c. References BEECRYPTAPI, blockCipherCount, blockCipherFind, and blockCipherGet. Referenced by dhaes_pContextInit. |
|
Definition at line 823 of file beecrypt.c. |
|
Definition at line 806 of file beecrypt.c. Referenced by dhaes_pContextSetup. |
|
Return the number of blockciphers available.
Definition at line 739 of file beecrypt.c. |
|
Retrieve the default blockcipher. If the BEECRYPT_CIPHER environment variable is set, use that blockcipher. Otherwise, use "blowfish".
Definition at line 744 of file beecrypt.c. |
|
Retrieve a blockcipher by name.
Definition at line 769 of file beecrypt.c. Referenced by blockCipherContextInit, and blockCipherDefault. |
|
Retrieve a blockcipher by index.
Definition at line 756 of file beecrypt.c. Referenced by blockCipherContextInit. |