|
libxcks
0.1.0.1
|
Compute sha224 hash and sha256 hash. More...

Go to the source code of this file.
Macros | |
| #define | X(a) |
| Helper function for SHA256's computing. More... | |
| #define | Cho(x, y, z) (z ^ (x & (y ^ z))) /* (4.2) same as SHA-1's F1 */ |
| Helper function for SHA256's computing. More... | |
| #define | Maj(x, y, z) ((x & y) | (z & (x|y))) /* (4.3) same as SHA-1's F3 */ |
| Helper function for SHA256's computing. More... | |
| #define | Sum0(x) (ror ((x), 2) ^ ror ((x), 13) ^ ror ((x), 22)) /* (4.4) */ |
| Helper function for SHA256's computing. More... | |
| #define | Sum1(x) (ror ((x), 6) ^ ror ((x), 11) ^ ror ((x), 25)) /* (4.5) */ |
| Helper function for SHA256's computing. More... | |
| #define | S0(x) (ror ((x), 7) ^ ror ((x), 18) ^ ((x) >> 3)) /* (4.6) */ |
| Helper function for SHA256's computing. More... | |
| #define | S1(x) (ror ((x), 17) ^ ror ((x), 19) ^ ((x) >> 10)) /* (4.7) */ |
| Helper function for SHA256's computing. More... | |
| #define | R(a, b, c, d, e, f, g, h, k, w) |
| Helper function for SHA256's computing. More... | |
Compute sha224 hash and sha256 hash.
Definition in file sha224_256.cpp.
| #define Cho | ( | x, | |
| y, | |||
| z | |||
| ) | (z ^ (x & (y ^ z))) /* (4.2) same as SHA-1's F1 */ |
Helper function for SHA256's computing.
Definition at line 189 of file sha224_256.cpp.
| #define Maj | ( | x, | |
| y, | |||
| z | |||
| ) | ((x & y) | (z & (x|y))) /* (4.3) same as SHA-1's F3 */ |
Helper function for SHA256's computing.
Definition at line 190 of file sha224_256.cpp.
| #define R | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f, | |||
| g, | |||
| h, | |||
| k, | |||
| w | |||
| ) |
Helper function for SHA256's computing.
Definition at line 195 of file sha224_256.cpp.
| #define S0 | ( | x | ) | (ror ((x), 7) ^ ror ((x), 18) ^ ((x) >> 3)) /* (4.6) */ |
Helper function for SHA256's computing.
Definition at line 193 of file sha224_256.cpp.
| #define S1 | ( | x | ) | (ror ((x), 17) ^ ror ((x), 19) ^ ((x) >> 10)) /* (4.7) */ |
Helper function for SHA256's computing.
Definition at line 194 of file sha224_256.cpp.
| #define Sum0 | ( | x | ) | (ror ((x), 2) ^ ror ((x), 13) ^ ror ((x), 22)) /* (4.4) */ |
Helper function for SHA256's computing.
Definition at line 191 of file sha224_256.cpp.
| #define Sum1 | ( | x | ) | (ror ((x), 6) ^ ror ((x), 11) ^ ror ((x), 25)) /* (4.5) */ |
Helper function for SHA256's computing.
Definition at line 192 of file sha224_256.cpp.
| #define X | ( | a | ) |
Helper function for SHA256's computing.