00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00027 #ifndef _BLOCKMODE_H
00028 #define _BLOCKMODE_H
00029
00030 #include "beecrypt.h"
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00046 BEECRYPTAPI
00047 int blockEncryptECB(const blockCipher* bc, blockCipherParam* bp, uint32_t* dst, const uint32_t* src, unsigned int nblocks);
00048
00059 BEECRYPTAPI
00060 int blockDecryptECB(const blockCipher* bc, blockCipherParam* bp, uint32_t* dst, const uint32_t* src, unsigned int nblocks);
00061
00072 BEECRYPTAPI
00073 int blockEncryptCBC(const blockCipher* bc, blockCipherParam* bp, uint32_t* dst, const uint32_t* src, unsigned int nblocks);
00074
00085 BEECRYPTAPI
00086 int blockDecryptCBC(const blockCipher* bc, blockCipherParam* bp, uint32_t* dst, const uint32_t* src, unsigned int nblocks);
00087
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091
00092 #endif