mirror of
https://github.com/albertobsd/keyhunt.git
synced 2025-03-17 13:21:46 +01:00
51 lines
1.0 KiB
C
51 lines
1.0 KiB
C
/* RMD160.H - header file for RMD160.C
|
|
*/
|
|
#ifndef _RMD160_H_
|
|
#define _RMD160_H_
|
|
|
|
#include <stdint.h>
|
|
#include <sys/types.h>
|
|
|
|
#define RMD160_BLOCKBYTES 64
|
|
#define RMD160_BLOCKWORDS 16
|
|
|
|
#define RMD160_HASHBYTES 20
|
|
#define RMD160_HASHWORDS 5
|
|
|
|
/* For compatibility */
|
|
#define RIPEMD160_BLOCKBYTES 64
|
|
#define RIPEMD160_BLOCKWORDS 16
|
|
|
|
#define RIPEMD160_HASHBYTES 20
|
|
#define RIPEMD160_HASHWORDS 5
|
|
|
|
/* RIPEMD160 context. */
|
|
typedef struct RMD160Context {
|
|
uint32_t key[RIPEMD160_BLOCKWORDS];
|
|
uint32_t iv[RIPEMD160_HASHWORDS];
|
|
uint32_t bytesHi, bytesLo;
|
|
} RMD160_CTX;
|
|
|
|
#define RIPEMD160Context RMD160Context
|
|
|
|
#ifdef _WIN64
|
|
#else
|
|
#include <sys/cdefs.h>
|
|
|
|
__BEGIN_DECLS
|
|
#endif
|
|
|
|
void RMD160Init(RMD160_CTX *);
|
|
void RMD160Update(RMD160_CTX *, const unsigned char *, unsigned int);
|
|
void RMD160Final(unsigned char [RMD160_HASHBYTES], RMD160_CTX *);
|
|
char * RMD160End(RMD160_CTX *, char *);
|
|
char * RMD160File(const char *, char *);
|
|
void RMD160Data(const unsigned char *, unsigned int, char *);
|
|
#ifdef _WIN64
|
|
#else
|
|
__END_DECLS
|
|
|
|
#endif
|
|
|
|
#endif /* _RMD160_H_ */
|