Raven Core
3.0.0
P2P Digital Currency
|
Go to the source code of this file.
Macros | |
#define | Ch(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) |
#define | Maj(x, y, z) (((x) & (y)) | ((z) & ((x) | (y)))) |
#define | Sigma0(x) (((x) >> 2 | (x) << 30) ^ ((x) >> 13 | (x) << 19) ^ ((x) >> 22 | (x) << 10)) |
#define | Sigma1(x) (((x) >> 6 | (x) << 26) ^ ((x) >> 11 | (x) << 21) ^ ((x) >> 25 | (x) << 7)) |
#define | sigma0(x) (((x) >> 7 | (x) << 25) ^ ((x) >> 18 | (x) << 14) ^ ((x) >> 3)) |
#define | sigma1(x) (((x) >> 17 | (x) << 15) ^ ((x) >> 19 | (x) << 13) ^ ((x) >> 10)) |
#define | Round(a, b, c, d, e, f, g, h, k, w) |
#define | BE32(p) ((((p) & 0xFF) << 24) | (((p) & 0xFF00) << 8) | (((p) & 0xFF0000) >> 8) | (((p) & 0xFF000000) >> 24)) |
#define BE32 | ( | p | ) | ((((p) & 0xFF) << 24) | (((p) & 0xFF00) << 8) | (((p) & 0xFF0000) >> 8) | (((p) & 0xFF000000) >> 24)) |
Definition at line 33 of file hash_impl.h.
#define Ch | ( | x, | |
y, | |||
z | |||
) | ((z) ^ ((x) & ((y) ^ (z)))) |
Definition at line 16 of file hash_impl.h.
#define Maj | ( | x, | |
y, | |||
z | |||
) | (((x) & (y)) | ((z) & ((x) | (y)))) |
Definition at line 17 of file hash_impl.h.
#define Round | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
k, | |||
w | |||
) |
Definition at line 23 of file hash_impl.h.
#define Sigma0 | ( | x | ) | (((x) >> 2 | (x) << 30) ^ ((x) >> 13 | (x) << 19) ^ ((x) >> 22 | (x) << 10)) |
Definition at line 18 of file hash_impl.h.
#define sigma0 | ( | x | ) | (((x) >> 7 | (x) << 25) ^ ((x) >> 18 | (x) << 14) ^ ((x) >> 3)) |
Definition at line 20 of file hash_impl.h.
#define Sigma1 | ( | x | ) | (((x) >> 6 | (x) << 26) ^ ((x) >> 11 | (x) << 21) ^ ((x) >> 25 | (x) << 7)) |
Definition at line 19 of file hash_impl.h.
#define sigma1 | ( | x | ) | (((x) >> 17 | (x) << 15) ^ ((x) >> 19 | (x) << 13) ^ ((x) >> 10)) |
Definition at line 21 of file hash_impl.h.