#include <chnhash/sha.hxx>
u32 H[5];This array contains the chain variables for the SHA.
H[0]=H0
,
H[1]=H1
, ...,
H[4]=H4
.
u32 buf[16];This arrary is used in processing the blocks of the bit string the SHA instance is being evaluated at.
virtual void ProcessBuf()=0;This method is used to update the chain variables of the SHA instance according to the contents of buf and the current values of the chain variables.
const u32 H0=0x67452301; const u32 H1=0xefcdab89; const u32 H2=0x98badcfe; const u32 H3=0x10325476; const u32 H4=0xc3d2e1f0;These are the initial values of the chain variables for both instances of the SHA.
SHA();Used in creating a SHA instance. Initializes the chain variables to values specified in FIPS 180 and FIPS 180-1.
virtual ~SHA();Nothing special is done by this desctructor.