(uint32_t *Message, uint64_t Mbit_Length, uint32_t *Hash, short sMode);
Inputs
- uint32_t *Message – Pointer to array of 32-bit longs to be hashed. Size of array must be a multiple of a hashing block (512 bits or sixteen 32-bit longs).
- uint64_t Mbit_length -- 64-bit value containing the precise number of bits to be hashed within the Message array.
Note: If Mbit_Length %(mod) 512 >= 448 bits, then an additional hashing block is needed. You must allocate the additional 512 bits.
- uint32_t *Hash – Pointer to array of eight 32-bit longs. The final hash value is stored here.
- short sMode – Determines if the algorithm run is SHA-224 or SHA-256.
- Mode is equal to "False", SHA-224 is used. Final Hash == Hash[0-6].
- Mode is equal to "True", SHA-256 is used. Final Hash == Hash[0-7].