# MATHSHA256Context

## Syntax

      #include <nitro/math/dgt.h>

      struct MATHSHA256Context
      {
          u32     h[8];
          u32 Nl,Nh;
          u8 data[MATHSHA256_CBLOCK];
          int num;
      };

## Elements

Do not access the elements of this structure directly.

## Description

This is the context structure used in calculating SHA-256. Its size is 108 bytes. Initialize it using the `MATH_SHA256Init` function, provide the input data with the `MATH_SHA256Update` function, and get the message digest value with the `MATH_SHA256GetHash` 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.

## See Also

`MATH_SHA256Init, MATH_SHA256Update, MATH_SHA256GetHash`

## Revision History

2008/05/23 Initial version.

CONFIDENTIAL