#include <nitro/math/dgt.h>
static inline void MATH_SHA256GetHash( MATHSHA256Context *context, void* digest );
context | Pointer to the context structure used for SHA-256 generation. |
digest | Pointer to the memory location that holds the message digest value. |
None.
This function gets the digest value using SHA-256. You must use the MATH_SHA256Init
function to initialize the context
argument and then use the MATH_SHA256Update
function to provide the input data.
The length of the generated message digest value is 256 bits or MATH_SHA256_DIGEST_SIZE
(32) bytes. Use the "digest" argument to pass an area that can store a value of this size. This function rewrites context
internally, so you cannot continue to use the same context with the MATH_SHA256Update
function.
SHA-256 is an algorithm to find the message digest value. For details, refer to the Federal Information Processing Standard, FIPS PUB 180-2.
MATH_SHA256Init, MATH_SHA256Update
2008/05/23 Initial version.
CONFIDENTIAL