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