|
I'm trying to calculate a
MD5 hash of a public key and I'm having some problems :-) Basically what I'm doing is CryptoPP::RSA::PublicKey
_pubkey // load the key from
someware ..... CryptoPP::MD5 md5; CryptoPP::HashFilter
md5Filter(md5); _pubkey.DEREncode(md5Filter); md5Filter.MessageEnd(); byte digest[16]; md5.Final(digest); the digest always contains
the same hash no matter what key I use - not exactly as intended.... Is the above code
"correct"? or should I do this in another way? /svante |
