![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
#include "pch.h"#include "config.h"#include "secblock.h"#include "sha.h"#include "misc.h"#include "cpu.h"Go to the source code of this file.
Macros | |
| #define | blk0(i) (W[i] = data[i]) |
| #define | blk1(i) (W[i&15] = rotlFixed(W[(i+13)&15]^W[(i+8)&15]^W[(i+2)&15]^W[i&15],1)) |
| #define | f1(x, y, z) (z^(x&(y^z))) |
| #define | f2(x, y, z) (x^y^z) |
| #define | f3(x, y, z) ((x&y)|(z&(x|y))) |
| #define | f4(x, y, z) (x^y^z) |
| #define | R0(v, w, x, y, z, i) z+=f1(w,x,y)+blk0(i)+0x5A827999+rotlFixed(v,5);w=rotlFixed(w,30); |
| #define | R1(v, w, x, y, z, i) z+=f1(w,x,y)+blk1(i)+0x5A827999+rotlFixed(v,5);w=rotlFixed(w,30); |
| #define | R2(v, w, x, y, z, i) z+=f2(w,x,y)+blk1(i)+0x6ED9EBA1+rotlFixed(v,5);w=rotlFixed(w,30); |
| #define | R3(v, w, x, y, z, i) z+=f3(w,x,y)+blk1(i)+0x8F1BBCDC+rotlFixed(v,5);w=rotlFixed(w,30); |
| #define | R4(v, w, x, y, z, i) z+=f4(w,x,y)+blk1(i)+0xCA62C1D6+rotlFixed(v,5);w=rotlFixed(w,30); |
| #define | blk2(i) (W[i&15]+=s1(W[(i-2)&15])+W[(i-7)&15]+s0(W[(i-15)&15])) |
| #define | Ch(x, y, z) (z^(x&(y^z))) |
| #define | Maj(x, y, z) (y^((x^y)&(y^z))) |
| #define | a(i) T[(0-i)&7] |
| #define | b(i) T[(1-i)&7] |
| #define | c(i) T[(2-i)&7] |
| #define | d(i) T[(3-i)&7] |
| #define | e(i) T[(4-i)&7] |
| #define | f(i) T[(5-i)&7] |
| #define | g(i) T[(6-i)&7] |
| #define | h(i) T[(7-i)&7] |
| #define | R(i) |
| #define | S0(x) (rotrFixed(x,2)^rotrFixed(x,13)^rotrFixed(x,22)) |
| #define | S1(x) (rotrFixed(x,6)^rotrFixed(x,11)^rotrFixed(x,25)) |
| #define | s0(x) (rotrFixed(x,7)^rotrFixed(x,18)^(x>>3)) |
| #define | s1(x) (rotrFixed(x,17)^rotrFixed(x,19)^(x>>10)) |
| #define | S0(x) (rotrFixed(x,28)^rotrFixed(x,34)^rotrFixed(x,39)) |
| #define | S1(x) (rotrFixed(x,14)^rotrFixed(x,18)^rotrFixed(x,41)) |
| #define | s0(x) (rotrFixed(x,1)^rotrFixed(x,8)^(x>>7)) |
| #define | s1(x) (rotrFixed(x,19)^rotrFixed(x,61)^(x>>6)) |
| #define | R(i) |
Typedefs | |
| typedef void(* | pfnSHATransform) (word32 *state, const word32 *data) |
| typedef void(CRYPTOPP_FASTCALL * | pfnSHAHashBlocks) (word32 *state, const word32 *data, size_t length) |
Functions | |
| pfnSHATransform | InitializeSHA1Transform () |
| void | SHA256_CXX_Transform (word32 *state, const word32 *data) |
| pfnSHATransform | InitializeSHA256Transform () |
| CRYPTOPP_ALIGN_DATA (16) static const word64 SHA512_K[80] CRYPTOPP_SECTION_ALIGN16 | |
Variables | |
| const word32 | SHA256_K [64] |
| #define blk1 | ( | i | ) | (W[i&15] = rotlFixed(W[(i+13)&15]^W[(i+8)&15]^W[(i+2)&15]^W[i&15],1)) |
| #define R | ( | i | ) |
| #define R | ( | i | ) |
| typedef void(CRYPTOPP_FASTCALL * pfnSHAHashBlocks) (word32 *state, const word32 *data, size_t length) |
| CRYPTOPP_ALIGN_DATA | ( | 16 | ) | const |
| pfnSHATransform InitializeSHA1Transform | ( | ) |
| pfnSHATransform InitializeSHA256Transform | ( | ) |
| const word32 SHA256_K[64] |
1.8.11