Skip to content

Missing sign_raw on RSA (at least) #332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
headius opened this issue May 3, 2025 · 1 comment
Open

Missing sign_raw on RSA (at least) #332

headius opened this issue May 3, 2025 · 1 comment

Comments

@headius
Copy link
Member

headius commented May 3, 2025

Running the tests for HexaPDF nearly everything passes, except the signature tests, which pretty much all fail like this:

  7) Error:
HexaPDF::DigitalSignature::Signing::SignedDataCreator::signer info#test_0004_contains a reference to the used digest algorithm:
NoMethodError: undefined method 'sign_raw' for an instance of OpenSSL::PKey::RSA
    lib/hexapdf/digital_signature/signing/signed_data_creator.rb:178:in 'digest_and_sign_data'
    lib/hexapdf/digital_signature/signing/signed_data_creator.rb:113:in 'create'
    test/hexapdf/digital_signature/signing/test_signed_data_creator.rb:88:in 'block in <main>'
    org/jruby/RubyBasicObject.java:2701:in 'instance_eval'
    org/jruby/RubyBasicObject.java:2729:in 'instance_eval'

There's a few other failures for signing tests but until this is fixed there's a good change it's causing some knock-on effects.

We don't appear to have any sign_raw methods in the entire library, so either it's something big we missed or it's not possible to implement on top of JSSE/BC.

@headius
Copy link
Member Author

headius commented May 3, 2025

cc @gettalong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant