nn::crypto::CalculateSha256 Function
void CalculateSha256(
void * pOut,
const void * pData,
size_t size
);
| Name | Description | |
|---|---|---|
| out | pOut | Pointer to the location in which to store the SHA-256 value (4-byte alignment) |
| in | pData | Pointer to the input data. |
| in | size | Length of the input data. |
Utility function that encompasses a sequence of operations used for SHA-256 calculation.
pOut is a 4-byte aligned pointer. It requires Sha256Context::HASH_SIZE (=32) bytes of space as the destination for storing the indicated hash.
This function can only calculate the hash for a single clump of data. It thus cannot be used to calculate hashes for data that is read by means of multiple updates, such as streaming data.
CONFIDENTIAL