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

blockmode.h File Reference

Blockcipher operation modes. More...

#include "beecrypt.h"

Go to the source code of this file.

Functions

int blockEncryptECB (const blockCipher *bc, blockCipherParam *bp, uint32_t *dst, const uint32_t *src, unsigned int nblocks)
 This function encrypts a number of data blocks in Electronic Code Book mode.

int blockDecryptECB (const blockCipher *bc, blockCipherParam *bp, uint32_t *dst, const uint32_t *src, unsigned int nblocks)
 This function decrypts a number of data blocks in Electronic Code Book mode.

int blockEncryptCBC (const blockCipher *bc, blockCipherParam *bp, uint32_t *dst, const uint32_t *src, unsigned int nblocks)
 This function encrypts a number of data blocks in Cipher Block Chaining mode.

int blockDecryptCBC (const blockCipher *bc, blockCipherParam *bp, uint32_t *dst, const uint32_t *src, unsigned int nblocks)
 This function decrypts a number of data blocks in Cipher Block Chaining mode.


Detailed Description

Blockcipher operation modes.

Todo:
Additional modes, such as CFB and OFB.
Author:
Bob Deblier <bob.deblier@pandora.be>

Definition in file blockmode.h.


Function Documentation

int blockDecryptCBC const blockCipher   bc,
blockCipherParam   bp,
uint32_t *    dst,
const uint32_t *    src,
unsigned int    nblocks
 

This function decrypts a number of data blocks in Cipher Block Chaining mode.

Parameters:
bc  The blockcipher.
bp  The cipher's parameter block.
dst  The cleartext data; should be aligned on a 32-bit boundary.
src  The ciphertext data; should be aligned on a 32-bit boundary.
nblocks  The number of blocks to be decrypted.
Return values:
0  on success.

int blockDecryptECB const blockCipher   bc,
blockCipherParam   bp,
uint32_t *    dst,
const uint32_t *    src,
unsigned int    nblocks
 

This function decrypts a number of data blocks in Electronic Code Book mode.

Parameters:
bc  The blockcipher.
bp  The cipher's parameter block.
dst  The cleartext data; should be aligned on a 32-bit boundary.
src  The ciphertext data; should be aligned on a 32-bit boundary.
nblocks  The number of blocks to be decrypted.
Return values:
0  on success.

int blockEncryptCBC const blockCipher   bc,
blockCipherParam   bp,
uint32_t *    dst,
const uint32_t *    src,
unsigned int    nblocks
 

This function encrypts a number of data blocks in Cipher Block Chaining mode.

Parameters:
bc  The blockcipher.
bp  The cipher's parameter block.
dst  The ciphertext data; should be aligned on a 32-bit boundary.
src  The cleartext data; should be aligned on a 32-bit boundary.
nblocks  The number of blocks to be encrypted.
Return values:
0  on success.

int blockEncryptECB const blockCipher   bc,
blockCipherParam   bp,
uint32_t *    dst,
const uint32_t *    src,
unsigned int    nblocks
 

This function encrypts a number of data blocks in Electronic Code Book mode.

Parameters:
bc  The blockcipher.
bp  The cipher's parameter block.
dst  The ciphertext data; should be aligned on a 32-bit boundary.
src  The cleartext data; should be aligned on a 32-bit boundary.
nblocks  The number of blocks to be encrypted.
Return values:
0  on success.


Generated on Tue Jun 24 13:50:15 2003 for BeeCrypt by doxygen1.2.18