1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
#ifndef WHIRLPOOL_H #define WHIRLPOOL_H 1 #include "Common/Tcdefs.h" #include "config.h" typedef struct WHIRLPOOL_CTX { uint64 countLo; uint64 countHi; CRYPTOPP_ALIGN_DATA(16) uint64 data[8]; CRYPTOPP_ALIGN_DATA(16) uint64 state[8]; } WHIRLPOOL_CTX; // ------------- #if defined(__cplusplus) extern "C" { #endif void WHIRLPOOL_add(const unsigned char * source, unsigned __int32 sourceBytes, WHIRLPOOL_CTX * const ctx); void WHIRLPOOL_finalize(WHIRLPOOL_CTX* const ctx, unsigned char * result); void WHIRLPOOL_init(WHIRLPOOL_CTX* const ctx); #if defined(__cplusplus) } #endif #endif /* WHIRLPOOL_H */ on, security"/>