Hi,

I am trying to use the MD5 algorithm of Crypto++ latest library. But
the hash I get does not seem to be correct. The documentation does not
say the we should use the library. This is how my pseudo code look
like.

int main()
{

 CryptoPP::Weak::MD5 Hash;

 while(1)
 {
   //Hear we read from a file, to a buffer called Buff
   ...
   ...
  Hash.Update(Buff.buff,Buff.len);

   if(end_of_file)
   {
     int ds=Hash.DigestSize();
     byte *FinalHash=new byte[ds];
     Hash.Final(FinalHash);
   }
 }

}

am I missing something?

Thanks a lot,
  Lloyd

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to