Fabcoin Core  0.16.2
P2P Digital Currency
Macros
hash_impl.h File Reference
#include "hash.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for hash_impl.h:
This graph shows which files directly or indirectly include this file:

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))
 

Macro Definition Documentation

#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,
 
)
Value:
do { \
uint32_t t1 = (h) + Sigma1(e) + Ch((e), (f), (g)) + (k) + (w); \
uint32_t t2 = Sigma0(a) + Maj((a), (b), (c)); \
(d) += t1; \
(h) = t1 + t2; \
} while(0)
#define Maj(x, y, z)
Definition: hash_impl.h:17
#define h(i)
Definition: sha.cpp:736
#define g(i)
Definition: sha.cpp:735
#define c(i)
#define a(i)
#define Sigma0(x)
Definition: hash_impl.h:18
#define t1
#define b(i, j)
#define t2
#define Sigma1(x)
Definition: hash_impl.h:19
#define f(x)
Definition: gost.cpp:57
#define Ch(x, y, z)
Definition: hash_impl.h:16
#define e(i)
Definition: sha.cpp:733
#define d(i)
Definition: sha.cpp:732

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.