Re: intermediate state defined in SHA256_CTX

2013-02-11 Thread Dr. Stephen Henson
On Mon, Feb 11, 2013, Naveen Nathan wrote: > > When I specify intermediate values I only set the h[8], Nl, Nh values. > The num is set to 0, and md_len to SHA256_DIGEST_LENGTH. It is unclear > to me what the Nl and Nh values represent. Without them, I was unable > to compute the correct digests f

intermediate state defined in SHA256_CTX

2013-02-11 Thread Naveen Nathan
Hi, In crypto/sha/sha.h the SHA256_CTX struct is defined as: typedef struct SHA256state_st { SHA_LONG h[8]; SHA_LONG Nl,Nh; SHA_LONG data[SHA_LBLOCK]; unsigned int num,md_len; } SHA256_CTX; I am trying to start a SHA256 computation defined by the intermediate stat