Hi all,

I am looking into the shatest.c file since i want to make use of sha-1
message digest.

In this file openssl-0.9.6d/crypto/sha/shatest.c,

141          for (i=0; i<1000; i++)
   142                  SHA_Update(&c,buf,1000);
   143          SHA_Final(md,&c);

For chunks of data we can call the SHA_Update() with those of chunks of data
separately. 
for eg: if there are two buffers buf1 and buf2, you should call the update
function twice.

But here the SHA_Update is called 1000 times with the same buffer. Is it
right? 
I am newbie and please help me in this regard.

Thanks in Advance,
Srini




*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to