"Fossies" - the Fresh Open Source Software Archive

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

    1 #ifndef WHIRLPOOL_H
    2 #define WHIRLPOOL_H 1
    3 
    4 #include "Common/Tcdefs.h"
    5 #include "config.h"
    6 
    7 typedef struct WHIRLPOOL_CTX {
    8     uint64 countLo;
    9     uint64 countHi;
   10     CRYPTOPP_ALIGN_DATA(16) uint64 data[8];
   11     CRYPTOPP_ALIGN_DATA(16) uint64 state[8];
   12 } WHIRLPOOL_CTX;
   13 
   14 // -------------
   15 #if defined(__cplusplus)
   16 extern "C" {
   17 #endif
   18 
   19 void WHIRLPOOL_add(const unsigned char * source, unsigned __int32 sourceBytes, WHIRLPOOL_CTX * const ctx);
   20 void WHIRLPOOL_finalize(WHIRLPOOL_CTX* const ctx, unsigned char * result);
   21 void WHIRLPOOL_init(WHIRLPOOL_CTX* const ctx);
   22 
   23 #if defined(__cplusplus)
   24 }
   25 #endif
   26 
   27 #endif /* WHIRLPOOL_H */