mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01:00
30 lines
836 B
C
30 lines
836 B
C
#ifndef HEADER_Crypto_Camellia
|
|
#define HEADER_Crypto_Camellia
|
|
|
|
#include "Common/Tcdefs.h"
|
|
#include "config.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#define CAMELLIA_KS 34 * 8
|
|
|
|
/* userKey is always 32-bytes long */
|
|
/* size of ks is 34*8 bytes */
|
|
void camellia_set_key(const unsigned __int8 userKey[], unsigned __int8 *ks);
|
|
void camellia_encrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks);
|
|
void camellia_decrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks);
|
|
|
|
#if CRYPTOPP_BOOL_X64
|
|
void camellia_encrypt_blocks(unsigned __int8 *ks, const byte* in_blk, byte* out_blk, uint32 blockCount);
|
|
void camellia_decrypt_blocks(unsigned __int8 *ks, const byte* in_blk, byte* out_blk, uint32 blockCount);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // HEADER_Crypto_Camellia
|