Hi Pelle,

> On 6/16/05, Bill Kelly <billk / cts.com> wrote:
> >
> > irb(main):004:0> sig = keypair.sign(Digest::MD5.new, "abcdefg")
> > => "...binary-data..."
> > irb(main):005:0> keypair.verify(Digest::MD5.new, "abcdefg", sig)
> 
> In your verify statement you need to swap the sig and the data

D'oh !!!!  Thanks.  I was looking at http://www.nongnu.org/rubypki/README
for reference, which shows, for PKey::RSA,

  .sign(oDigest::ANY, sData) => sSig
  .verify(oDigest::ANY, sData, sSig) => bResult

...guess that document is out of date :(


Thanks,

Bill