|
Electroneum
|
Macros | |
| #define | SHR(x, c) ((x) >> (c)) |
| #define | ROTR(x, c) (((x) >> (c)) | ((x) << (64 - (c)))) |
| #define | Ch(x, y, z) ((x & y) ^ (~x & z)) |
| #define | Maj(x, y, z) ((x & y) ^ (x & z) ^ (y & z)) |
| #define | Sigma0(x) (ROTR(x,28) ^ ROTR(x,34) ^ ROTR(x,39)) |
| #define | Sigma1(x) (ROTR(x,14) ^ ROTR(x,18) ^ ROTR(x,41)) |
| #define | sigma0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x,7)) |
| #define | sigma1(x) (ROTR(x,19) ^ ROTR(x,61) ^ SHR(x,6)) |
| #define | M(w0, w14, w9, w1) w0 = sigma1(w14) + w9 + sigma0(w1) + w0; |
| #define | EXPAND |
| #define | F(w, k) |
Typedefs | |
| typedef unsigned long long | uint64 |
Functions | |
| static uint64 | load_bigendian (const unsigned char *x) |
| static void | store_bigendian (unsigned char *x, uint64 u) |
| int | crypto_hashblocks (unsigned char *statebytes, const unsigned char *in, unsigned long long inlen) |
| #define Ch | ( | x, | |
| y, | |||
| z | |||
| ) | ((x & y) ^ (~x & z)) |
| #define EXPAND |
| #define F | ( | w, | |
| k | |||
| ) |
| #define Maj | ( | x, | |
| y, | |||
| z | |||
| ) | ((x & y) ^ (x & z) ^ (y & z)) |
| #define ROTR | ( | x, | |
| c | |||
| ) | (((x) >> (c)) | ((x) << (64 - (c)))) |
| #define SHR | ( | x, | |
| c | |||
| ) | ((x) >> (c)) |
| typedef unsigned long long uint64 |
| int crypto_hashblocks | ( | unsigned char * | statebytes, |
| const unsigned char * | in, | ||
| unsigned long long | inlen | ||
| ) |
|
static |
|
static |