Perl Monk, Perl Meditation | |
PerlMonks |
Re^5: Stumped by Crypt::OpenPGP::Signature->key_idby Anonymous Monk |
on Nov 22, 2011 at 13:08 UTC ( [id://939451]=note: print w/replies, xml ) | Need Help?? |
Now I remember why I linked Crypt OpenPGP Brain twister, its a Short, Self Contained, Correct Example, in otherwords, more effective :) If you modify Crypt-OpenPGP-1.06\t\12-sign.t at the first verify call, you can see that this is to be expected
I don't know if keyid is supposed to be 8 or 10 or 16, but the round trip with pack seems to work , so key_id is correct, and the hex representation is correct AFAIK printf would actually try to convert it, which might overflow as in
Maybe this is the private key, and you're looking for the public key? Maybe it depends on algorithm? :)
In Section
Seekers of Perl Wisdom
|
|