SHA256 cryptographic hash (in the SHA-2 family) function has a 256 bit digest size.
The SHA256 of either a file (both binary and text) or a buffer can be calculated.
- See Also
- FIPS PUB 180-3
- Parameters
-
pInData | [ in ] Pointer to the data to calculate SHA256 over. |
base64Encode | [ in ] Flag indicating whether SHA256 should be encoded in base64 (otherwise it is binary string) |
pOutData | [ in ] Pointer to where to copy the SHA256 value. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidArg | One of the parameters is NULL. |
P6R::eNotFound | File data source does not exist. |
P6R::eIoError | Write to file data sink failed. |
P6R::eTooSmall | The buffer data sink is too small to contain the generated value. |
P6R::eTooBig/td> | Internal error |
P6R::eFailAndException | The digest calculation failed. Exception record provides detailed error info. |