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

beecrypt/blockmode.c File Reference

Block cipher operation modes, code. More...

#include "system.h"
#include "blockmode.h"
#include "mp32.h"
#include "debug.h"

Go to the source code of this file.

Functions

int blockEncrypt (const blockCipher *bc, blockCipherParam *bp, cipherMode mode, int blocks, uint32 *dst, const uint32 *src)
int blockDecrypt (const blockCipher *bc, blockCipherParam *bp, cipherMode mode, int blocks, uint32 *dst, const uint32 *src)


Detailed Description

Block cipher operation modes, code.

Definition in file blockmode.c.


Function Documentation

int blockDecrypt const blockCipher   bc,
blockCipherParam   bp,
cipherMode    mode,
int    blocks,
uint32   dst,
const uint32   src
 

Parameters:
bc  blockcipher context
bp  blockcipher parameters
mode  ECB or CBC
blocks  no. blocks to decrypt
Return values:
dst  plaintext block
Parameters:
src  ciphertext block
Returns:
0 on success, -1 on failure

Definition at line 51 of file blockmode.c.

References blockCipherParam, blockModeEncrypt, cipherMode, blockMode::decrypt, blockCipher::mode, and uint32.

int blockEncrypt const blockCipher   bc,
blockCipherParam   bp,
cipherMode    mode,
int    blocks,
uint32   dst,
const uint32   src
 

Parameters:
bc  blockcipher context
bp  blockcipher parameters
mode  ECB or CBC
blocks  no. blocks to encrypt
Return values:
dst  ciphertext block
Parameters:
src  plaintext block
Returns:
0 on success, -1 on failure

Definition at line 33 of file blockmode.c.

References blockCipherParam, blockModeEncrypt, cipherMode, blockMode::encrypt, blockCipher::mode, and uint32.


Generated on Tue Sep 17 16:00:01 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002