52 #elif (MP_WBITS == 32)
#define BEECRYPTAPI
Definition api.h:52
uint64_t mpw
Definition api.h:87
int sha512Digest(sha512Param *sp, byte *digest)
This function finishes the current hash computation and copies the digest value into digest.
const hashFunction sha512
Holds the full API description of the SHA-512 algorithm.
int sha512Reset(sha512Param *sp)
This function resets the parameter block so that it's ready for a new hash.
void sha512Process(sha512Param *sp)
This function performs the core of the SHA-512 hash algorithm; it processes a block of 128 bytes.
int sha512Update(sha512Param *sp, const byte *data, size_t size)
This function should be used to pass successive blocks of data to be hashed.
Definition beecrypt.h:305
Holds all the parameters necessary for the SHA-512 algorithm.
Definition sha512.h:39
mpw length[2]
Multi-precision integer counter for the bits that have been processed so far.
Definition sha512.h:51
uint64_t offset
Offset into data; points to the place where new data will be copied before it is processed.
Definition sha512.h:61
uint64_t data[80]
Definition sha512.h:45
uint64_t h[8]
Definition sha512.h:42