Contains the code implementing the SHA-512 hashfunction. More...
#include "sha512.hpp"Go to the source code of this file.
Macros | |
| #define | ROTR(n, x) ( ((x)>>(n)) | ((x)<<(64-(n))) ) |
| #define | SHR(n, x) ((x)>>(n)) |
| #define | CH(x, y, z) ( ((x)&(y)) ^ ((~x)&(z)) ) |
| #define | MAJ(x, y, z) ( ((x)&(y)) ^ ((x)&(z)) ^ ((y)&(z)) ) |
| #define | BIGSIGMA0(x) ( ROTR(28,(x)) ^ ROTR(34,(x)) ^ ROTR(39,(x)) ) |
| #define | BIGSIGMA1(x) ( ROTR(14,(x)) ^ ROTR(18,(x)) ^ ROTR(41,(x)) ) |
| #define | SMALLSIGMA0(x) ( ROTR(1,(x)) ^ ROTR(8,(x)) ^ SHR(7,(x)) ) |
| #define | SMALLSIGMA1(x) ( ROTR(19,(x)) ^ ROTR(61,(x)) ^ SHR(6,(x)) ) |
Variables | |
| uint64_t | init512 [8] |
| uint64_t | K512 [80] |
Contains the code implementing the SHA-512 hashfunction.
Definition in file sha512.cpp.
Definition at line 24 of file sha512.cpp.
Definition at line 25 of file sha512.cpp.
| #define CH | ( | x, | |
| y, | |||
| z | |||
| ) | ( ((x)&(y)) ^ ((~x)&(z)) ) |
Definition at line 22 of file sha512.cpp.
| #define MAJ | ( | x, | |
| y, | |||
| z | |||
| ) | ( ((x)&(y)) ^ ((x)&(z)) ^ ((y)&(z)) ) |
Definition at line 23 of file sha512.cpp.
| #define ROTR | ( | n, | |
| x | |||
| ) | ( ((x)>>(n)) | ((x)<<(64-(n))) ) |
Definition at line 20 of file sha512.cpp.
| #define SHR | ( | n, | |
| x | |||
| ) | ((x)>>(n)) |
Definition at line 21 of file sha512.cpp.
Definition at line 26 of file sha512.cpp.
Definition at line 27 of file sha512.cpp.
| uint64_t init512[8] |
Definition at line 33 of file sha512.cpp.
| uint64_t K512[80] |
Definition at line 42 of file sha512.cpp.