#include "rmd160.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Defines |
| #define | _DIAGASSERT(cond) assert(cond) |
| #define | BYTES_TO_DWORD(strptr) |
| #define | ROL(x, n) (((x) << (n)) | ((x) >> (32-(n)))) |
| #define | F(x, y, z) ((x) ^ (y) ^ (z)) |
| #define | G(x, y, z) (((x) & (y)) | (~(x) & (z))) |
| #define | H(x, y, z) (((x) | ~(y)) ^ (z)) |
| #define | I(x, y, z) (((x) & (z)) | ((y) & ~(z))) |
| #define | J(x, y, z) ((x) ^ ((y) | ~(z))) |
| #define | FF(a, b, c, d, e, x, s) |
| #define | GG(a, b, c, d, e, x, s) |
| #define | HH(a, b, c, d, e, x, s) |
| #define | II(a, b, c, d, e, x, s) |
| #define | JJ(a, b, c, d, e, x, s) |
| #define | FFF(a, b, c, d, e, x, s) |
| #define | GGG(a, b, c, d, e, x, s) |
| #define | HHH(a, b, c, d, e, x, s) |
| #define | III(a, b, c, d, e, x, s) |
| #define | JJJ(a, b, c, d, e, x, s) |
Functions |
| void | RMD160_Init (RMD160_CTX *context) |
| void | RMD160_Transform (uint32_t state[5], const uint32_t block[16]) |
| void | RMD160_Update (RMD160_CTX *context, const uint8_t *data, size_t nbytes) |
| void | RMD160_Finish (RMD160_CTX *context, uint8_t digest[20]) |
Define Documentation
| #define F |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((x) ^ (y) ^ (z)) |
| #define FF |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define FFF |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define G |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (((x) & (y)) | (~(x) & (z))) |
| #define GG |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define GGG |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define H |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (((x) | ~(y)) ^ (z)) |
| #define HH |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define HHH |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define I |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| (((x) & (z)) | ((y) & ~(z))) |
| #define II |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define III |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define J |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ((x) ^ ((y) | ~(z))) |
| #define JJ |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define JJJ |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
x, |
|
|
|
s |
|
) |
| |
| #define ROL |
( |
|
x, |
|
|
|
n |
|
) |
| (((x) << (n)) | ((x) >> (32-(n)))) |
Function Documentation
Definition at line 146 of file rmd160.c.
References _DIAGASSERT, FF, FFF, GG, GGG, HH, HHH, II, III, JJ, JJJ, and NULL.
Referenced by RMD160_Finish(), and RMD160_Update().