Actions
Bug #4734
closed[ext/openssl] DSA#sign error
Bug #4734:
[ext/openssl] DSA#sign error
Description
Hi,
imo the following should work just fine:
data = 'Sign me!'
digest = OpenSSL::Digest::SHA256.new
pkey = OpenSSL::PKey::DSA.new(512)
signature = pkey.sign(digest, data)
At least it does for PKey::RSA. But the above produces (OpenSSL 0.9.8k):
in `sign': wrong public key type (OpenSSL::PKey::PKeyError)
I'll look into it - but I'd appreciate if someone could please
verify that this is really a bug and try to reproduce the error?
Regards,
Martin
Actions