"Fossies" - the Fresh Open Source Software Archive

Member "src/Crypto/Camellia.h" (10 Oct 2018, 836 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Camellia.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef HEADER_Crypto_Camellia
    2 #define HEADER_Crypto_Camellia
    3 
    4 #include "Common/Tcdefs.h"
    5 #include "config.h"
    6 
    7 #ifdef __cplusplus
    8 extern "C"
    9 {
   10 #endif
   11 
   12 #define CAMELLIA_KS     34 * 8
   13 
   14 /* userKey is always 32-bytes long */
   15 /* size of ks is 34*8 bytes */
   16 void camellia_set_key(const unsigned __int8 userKey[], unsigned __int8 *ks);
   17 void camellia_encrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks);
   18 void camellia_decrypt(const unsigned __int8 *inBlock,  unsigned __int8 *outBlock, unsigned __int8 *ks);
   19 
   20 #if CRYPTOPP_BOOL_X64
   21 void camellia_encrypt_blocks(unsigned __int8 *ks, const byte* in_blk, byte* out_blk, uint32 blockCount);
   22 void camellia_decrypt_blocks(unsigned __int8 *ks, const byte* in_blk, byte* out_blk, uint32 blockCount);
   23 #endif
   24 
   25 #ifdef __cplusplus
   26 }
   27 #endif
   28 
   29 #endif // HEADER_Crypto_Camellia