1 #ifndef SEC_HASH_RIPEMD_H
2 #define SEC_HASH_RIPEMD_H
4 #include <cfg/compiler.h>
10 uint32_t h[5]; /* The current hash state */
11 uint64_t length; /* Total number of _bits_ (not bytes) added to the
12 hash. This includes bits that have been buffered
13 but not not fed through the compression function yet. */
18 uint8_t bufpos; /* number of bytes currently in the buffer */
22 void RIPEMD_init(RIPEMD_Context *ctx);
24 #define RIPEMD_stackinit(...) \
25 ({ RIPEMD_Context *ctx = alloca(sizeof(RIPEMD_Context)); RIPEMD_init(ctx , ##__VA_ARGS__); &ctx->hash; })
27 int RIPEMD_testSetup(void);
28 int RIPEMD_testRun(void);
29 int RIPEMD_testTearDown(void);
32 #endif /* SEC_HASH_RIPEMD_H */