Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

Block ciphers


Files

file  aes.h
 AES block cipher, as specified by NIST FIPS 197.

file  beecrypt.h
 BeeCrypt API, headers.

file  blockmode.h
 Blockcipher operation modes.

file  blockpad.h
 Blockcipher padding algorithms.

file  blowfish.h
 Blowfish block cipher.


Data Structures

struct  blockCipher
 Holds information and pointers to code specific to each cipher. More...

struct  blockCipherContext
 Holds a pointer to a blockcipher as well as its parameters. More...


Typedefs

typedef int(* blockCipherSetup )(blockCipherParam *, const byte *, size_t, cipherOperation)
 Prototype definition for a setup function.

typedef void blockCipherParam
 Placeholder type definition for blockcipher parameters.

typedef int(* blockCipherSetIV )(blockCipherParam *, const byte *)
 Prototype definition for an initialization vector setup function.

typedef int(* blockCipherRawcrypt )(blockCipherParam *, uint32_t *, const uint32_t *)
 Prototype for a raw encryption or decryption function.

typedef int(* blockCipherModcrypt )(blockCipherParam *, uint32_t *, const uint32_t *, unsigned int)
 Prototype for a encryption or decryption function which operates on multiple blocks in a certain mode.


Typedef Documentation

int(* blockCipherModcrypt)(blockCipherParam *bp, uint32_t *dst, const uint32_t *src, unsigned int nblocks)
 

Prototype for a encryption or decryption function which operates on multiple blocks in a certain mode.

Parameters:
bp The blockcipher's parameters.
dst The ciphertext address; must be aligned on 32-bit boundary.
src The cleartext address; must be aligned on 32-bit boundary.
nblocks The number of blocks to process.
Return values:
0 on success.
-1 on failure.

Definition at line 536 of file beecrypt.h.

void blockCipherParam
 

Placeholder type definition for blockcipher parameters.

See also:
aesParam, blowfishParam.

Definition at line 496 of file beecrypt.h.

int(* blockCipherRawcrypt)(blockCipherParam *bp, uint32_t *dst, const uint32_t *src)
 

Prototype for a raw encryption or decryption function.

Parameters:
bp The blockcipher's parameters.
dst The ciphertext address; must be aligned on 32-bit boundary.
src The cleartext address; must be aligned on 32-bit boundary.
Return values:
0 on success.
-1 on failure.

Definition at line 523 of file beecrypt.h.

int(* blockCipherSetIV)(blockCipherPatam *bp, const byte *iv)
 

Prototype definition for an initialization vector setup function.

Parameters:
bp The blockcipher's parameters.
iv The blockciphers' IV value.
Note:
iv length must be equal to the cipher's block size.
Return values:
0 on success.
-1 on failure.

Definition at line 512 of file beecrypt.h.

typedef int(* blockCipherSetup)(blockCipherParam*, const byte*, size_t, cipherOperation)
 

Prototype definition for a setup function.

Definition at line 501 of file beecrypt.h.


Generated on Wed Mar 24 13:56:54 2004 for BeeCrypt by doxygen 1.3.6