1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<title>MATHSHA256Context</title> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</head> 10 11<body> 12 13<h1 align="left">MATHSHA256Context<img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1> 14<H2>Syntax</H2> 15 16<dl> 17 <dd> 18<PRE> 19<CODE>#include <nitro/math/dgt.h><BR> 20struct MATHSHA256Context 21{ 22 u32 h[8]; 23 u32 Nl,Nh; 24 u8 data[MATHSHA256_CBLOCK]; 25 int num; 26}; 27</CODE></PRE> 28 </dd> 29</dl> 30<H2>Elements</H2> 31<P>Do not access the elements of this structure directly.</P> 32<H2>Description</H2> 33<P>This is the context structure used in calculating SHA-256. Its size is 108 bytes. Initialize it using the <CODE><A href="MATH_SHA256Init.html">MATH_SHA256Init</A></CODE> function, provide the input data with the <CODE><A href="MATH_SHA256Update.html">MATH_SHA256Update</A></CODE> function, and get the message digest value with the <CODE><A href="MATH_SHA256GetHash.html">MATH_SHA256GetHash</A></CODE> 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. 34</P> 35 36<h2>See Also</h2> 37<P><CODE><A href="MATH_SHA256Init.html">MATH_SHA256Init</A>, <A href="MATH_SHA256Update.html">MATH_SHA256Update</A>, <A href="MATH_SHA256GetHash.html">MATH_SHA256GetHash</A></CODE></P> 38<H2>Revision History</H2> 39<P> 402008/05/23 Initial version. 41</P> 42<hr><p>CONFIDENTIAL</p></body> 43</html> 44