Next Previous Table Of Contents

The SHA Abstract Base Class

#include <chnhash/sha.hpp>

Overview

The SHA abstract base class is intended to provide a class containing the features common to the FIPS 180
[FIPSa] and FIPS 180-1 [FIPSb] specifications of the Secure Hash Algorith. As the SHA class is a subclass of the ChainHash class, the variables and methods presented there are not redescribed here. Click here to see the definitions of the terms used on this page.

Public Constants

H0, H1, H2, H3, H4
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 common to both instances of the SHA.

Public Methods

Constructor

SHA();
Used in creating a SHA instance. Initializes the chain variables to the common values specified in FIPS 180
[FIPSa] and FIPS 180-1 [FIPSb].

Destructor

virtual ~SHA();
Nothing special is done by this part of the desctructor.
Next Previous Table Of Contents