Fabcoin Core  0.16.2
P2P Digital Currency
Macros | Typedefs
shacal2.cpp File Reference
#include "pch.h"
#include "shacal2.h"
#include "misc.h"
Include dependency graph for shacal2.cpp:

Go to the source code of this file.

Macros

#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 Ch(x, y, z)   (z^(x&(y^z)))
 
#define Maj(x, y, z)   ((x&y)|(z&(x|y)))
 
#define R(a, b, c, d, e, f, g, h, k)   h+=S1(e)+Ch(e,f,g)+*k++;d+=h;h+=S0(a)+Maj(a,b,c);
 
#define P(a, b, c, d, e, f, g, h, k)   h-=S0(a)+Maj(a,b,c);d-=h;h-=S1(e)+Ch(e,f,g)+*--k;
 

Typedefs

typedef BlockGetAndPut< word32, BigEndianBlock
 

Macro Definition Documentation

#define Ch (   x,
  y,
  z 
)    (z^(x&(y^z)))

Definition at line 21 of file shacal2.cpp.

#define Maj (   x,
  y,
  z 
)    ((x&y)|(z&(x|y)))

Definition at line 22 of file shacal2.cpp.

#define P (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
 
)    h-=S0(a)+Maj(a,b,c);d-=h;h-=S1(e)+Ch(e,f,g)+*--k;

Definition at line 31 of file shacal2.cpp.

#define R (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
 
)    h+=S1(e)+Ch(e,f,g)+*k++;d+=h;h+=S0(a)+Maj(a,b,c);

Definition at line 26 of file shacal2.cpp.

#define S0 (   x)    (rotrFixed(x,2)^rotrFixed(x,13)^rotrFixed(x,22))

Definition at line 16 of file shacal2.cpp.

#define s0 (   x)    (rotrFixed(x,7)^rotrFixed(x,18)^(x>>3))

Definition at line 18 of file shacal2.cpp.

#define S1 (   x)    (rotrFixed(x,6)^rotrFixed(x,11)^rotrFixed(x,25))

Definition at line 17 of file shacal2.cpp.

#define s1 (   x)    (rotrFixed(x,17)^rotrFixed(x,19)^(x>>10))

Definition at line 19 of file shacal2.cpp.

Typedef Documentation

Definition at line 53 of file shacal2.cpp.