26 typedef unsigned char byte;
35 #define BYTES_TO_DWORD(strptr) \ 36 (((dword) *((strptr)+3) << 24) | \ 37 ((dword) *((strptr)+2) << 16) | \ 38 ((dword) *((strptr)+1) << 8) | \ 43 #define ROL(x, n) (((x) << (n)) | ((x) >> (32-(n)))) 46 #define F(x, y, z) ((x) ^ (y) ^ (z)) 47 #define G(x, y, z) (((x) & (y)) | (~(x) & (z))) 48 #define H(x, y, z) (((x) | ~(y)) ^ (z)) 49 #define I(x, y, z) (((x) & (z)) | ((y) & ~(z))) 50 #define J(x, y, z) ((x) ^ ((y) | ~(z))) 53 #define FF(a, b, c, d, e, x, s) {\ 54 (a) += F((b), (c), (d)) + (x);\ 55 (a) = ROL((a), (s)) + (e);\ 58 #define GG(a, b, c, d, e, x, s) {\ 59 (a) += G((b), (c), (d)) + (x) + 0x5a827999UL;\ 60 (a) = ROL((a), (s)) + (e);\ 63 #define HH(a, b, c, d, e, x, s) {\ 64 (a) += H((b), (c), (d)) + (x) + 0x6ed9eba1UL;\ 65 (a) = ROL((a), (s)) + (e);\ 68 #define II(a, b, c, d, e, x, s) {\ 69 (a) += I((b), (c), (d)) + (x) + 0x8f1bbcdcUL;\ 70 (a) = ROL((a), (s)) + (e);\ 73 #define JJ(a, b, c, d, e, x, s) {\ 74 (a) += J((b), (c), (d)) + (x) + 0xa953fd4eUL;\ 75 (a) = ROL((a), (s)) + (e);\ 78 #define FFF(a, b, c, d, e, x, s) {\ 79 (a) += F((b), (c), (d)) + (x);\ 80 (a) = ROL((a), (s)) + (e);\ 83 #define GGG(a, b, c, d, e, x, s) {\ 84 (a) += G((b), (c), (d)) + (x) + 0x7a6d76e9UL;\ 85 (a) = ROL((a), (s)) + (e);\ 88 #define HHH(a, b, c, d, e, x, s) {\ 89 (a) += H((b), (c), (d)) + (x) + 0x6d703ef3UL;\ 90 (a) = ROL((a), (s)) + (e);\ 93 #define III(a, b, c, d, e, x, s) {\ 94 (a) += I((b), (c), (d)) + (x) + 0x5c4dd124UL;\ 95 (a) = ROL((a), (s)) + (e);\ 98 #define JJJ(a, b, c, d, e, x, s) {\ 99 (a) += J((b), (c), (d)) + (x) + 0x50a28be6UL;\ 100 (a) = ROL((a), (s)) + (e);\ unsigned char byte
Definition: rmd160.h:26
void compress(dword *MDbuf, const dword *X, bool ibConvert=true)
void compressH(dword *MDbuf, const dword *X)
void MDinit(dword *MDbuf)
void MDfinish(dword *MDbuf, const byte *strptr, dword lswlen, dword mswlen)
unsigned int dword
Definition: rmd160.h:27