"Fossies" - the Fresh Open Source Software Archive

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

    1 #ifndef TC_HEADER_Crypto_Ripemd160
    2 #define TC_HEADER_Crypto_Ripemd160
    3 
    4 #include "Common/Tcdefs.h"
    5 
    6 #if defined(__cplusplus)
    7 extern "C"
    8 {
    9 #endif
   10 
   11 #define RIPEMD160_BLOCK_LENGTH 64
   12 
   13 typedef struct RMD160Context
   14 {
   15     unsigned __int32 state[5];
   16 #ifndef TC_WINDOWS_BOOT
   17     uint64 count;
   18 #else
   19     uint32 count;
   20 #endif
   21     unsigned char buffer[RIPEMD160_BLOCK_LENGTH];
   22 } RMD160_CTX;
   23 
   24 void RMD160Init (RMD160_CTX *ctx);
   25 void RMD160Transform (unsigned __int32 *state, const unsigned __int32 *data);
   26 void RMD160Update (RMD160_CTX *ctx, const unsigned char *input, unsigned __int32 len);
   27 void RMD160Final (unsigned char *digest, RMD160_CTX *ctx);
   28 
   29 #if defined(__cplusplus)
   30 }
   31 #endif
   32 
   33 #endif // TC_HEADER_Crypto_Ripemd160