Hi cft, Thanks a lot. Yes, I have just noticed my mistake. My array was meant to be 384 but I have given 786. When I changed it to 384, it now complains "Message verification failed". But when I looked the hash function, it is by default using SHA1. I changed it to SHA256 then it verified successfully.
I was going through the entire source code trying to understand the CryptoMaterial stuff. Thanks again. Shiva. On Tue, Mar 23, 2010 at 3:23 PM, cft <[email protected]> wrote: > > Hi dragon, > > This line seems to be wrong: > > > const CryptoPP::Integer modulus(&hex_modulus[0], 768, > CryptoPP::Integer::UNSIGNED); > > Replace "786" by "384". > > Your code then compiles and runs and produces "Message verification > failed". > > cft > > > > > -- > 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. > > To unsubscribe from this group, send email to cryptopp-users+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- 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. To unsubscribe from this group, send email to cryptopp-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
