Contains the code implementing the SHA-384 hashfunction. More...
#include "sha384.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 | init384 [8] |
uint64_t | K384 [80] |
Contains the code implementing the SHA-384 hashfunction.
Definition in file sha384.cpp.
Definition at line 23 of file sha384.cpp.
Definition at line 24 of file sha384.cpp.
#define CH | ( | x, | |
y, | |||
z | |||
) | ( ((x)&(y)) ^ ((~x)&(z)) ) |
Definition at line 21 of file sha384.cpp.
#define MAJ | ( | x, | |
y, | |||
z | |||
) | ( ((x)&(y)) ^ ((x)&(z)) ^ ((y)&(z)) ) |
Definition at line 22 of file sha384.cpp.
#define ROTR | ( | n, | |
x | |||
) | ( ((x)>>(n)) | ((x)<<(64-(n))) ) |
Definition at line 19 of file sha384.cpp.
#define SHR | ( | n, | |
x | |||
) | ((x)>>(n)) |
Definition at line 20 of file sha384.cpp.
Definition at line 25 of file sha384.cpp.
Definition at line 26 of file sha384.cpp.
uint64_t init384[8] |
Definition at line 32 of file sha384.cpp.
uint64_t K384[80] |
Definition at line 41 of file sha384.cpp.