"Fossies" - the Fresh Open Source Software Archive

Member "src/Crypto/CamelliaSmall.h" (10 Oct 2018, 552 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 "CamelliaSmall.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef SMALL_CAMELLIA_H
    2 #define SMALL_CAMELLIA_H
    3 
    4 #include "Common/Tcdefs.h"
    5 
    6 #ifdef __cplusplus
    7 extern "C" {
    8 #endif
    9 
   10 #define CAMELLIA_KS     34 * 8 * 2
   11 
   12 /* userKey is always 32-bytes long */
   13 /* size of ks is 34 */
   14 void camellia_set_key(const unsigned __int8 userKey[], unsigned __int8 *ks);
   15 void camellia_encrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks);
   16 void camellia_decrypt(const unsigned __int8 *inBlock,  unsigned __int8 *outBlock, unsigned __int8 *ks);
   17 
   18 #ifdef __cplusplus
   19 }
   20 #endif
   21 
   22 
   23 #endif /* camellia.h */