jruby / jruby-openssl

JRuby's OpenSSL gem
http://www.jruby.org
Other
45 stars 80 forks source link

OpenSSL::PKey::EC verification discrepancy between Ruby and JRuby #241

Closed laitalaj closed 7 months ago

laitalaj commented 2 years ago

In Ruby, EC signatures are verified with dsa_verify_asn1. However, in this JRuby implementation, such method is missing - instead, EC signature verification is done via the verify method inherited from PKey.

This discrepancy causes problems at least with the ruby-jwt gem's EC functionality, which tries to use dsa_verify_asn1.