cedarcode / cose-ruby

Ruby implementation of RFC 8152 CBOR Object Signing and Encryption (COSE)
https://rubygems.org/gems/cose
MIT License
15 stars 10 forks source link

Support conversion of Key object to OpenSSL-ish object #20

Closed grzuy closed 5 years ago

grzuy commented 5 years ago

I assume most of users deserializing COSE Key objects, would need as a follow up step to operate with that key, meaning, signing, verifying a signature, encrypting or decrypting a message.

Given that, it would be very useful for the Key object to return an instance of a ready-to-operate ruby-openssl OpenSSL::PKey::PKey object.

grzuy commented 5 years ago

If we support this here, then e.g. this would not be needed in webauthn-ruby.

grzuy commented 5 years ago

By OpenSSL-ish object I mean an instance of OpenSSL::PKey::PKey