Main Page   Compound List   File List   Compound Members   File Members  

ripemd160.h

Go to the documentation of this file.
00001 
00012 #ifndef  RIPEMD160_H
00013 #define  RIPEMD160_H
00014 
00017 #include "hashcom.h"
00018 
00019 #ifndef RIPEMD160_SMALL
00020   #define RIPEMD160_SMALL   0 /* Low footprint ripemd-160 */
00021 #endif
00022 
00023 #define RIPEMD160_DIGEST_SIZE    20
00024 
00025 typedef struct {
00026   uns32 state[5];
00027   uns32 count[2];
00028   uns8 buf[64];
00029 } ripemd160_context;
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 #ifdef WIN32
00036  #ifdef CRYPTO_EXPORTS
00037    #define extern   extern __declspec(dllexport)
00038  #else
00039    #define extern   extern __declspec(dllimport)
00040  #endif
00041 #endif
00042 
00043 extern void ripemd160_init(ripemd160_context *CTX);
00044 extern void ripemd160_update(ripemd160_context *CTX, uns8 *input, unsigned int inLen);
00045 extern void ripemd160_final(uns8 *digest, ripemd160_context *CTX);
00046 
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050 
00051 #ifdef WIN32
00052   #undef extern
00053 #endif
00054 
00055 #endif


GPL