lib/cose/key.rb in cose-1.2.1 vs lib/cose/key.rb in cose-1.3.0

- old
+ new

@@ -22,9 +22,11 @@ case pkey when OpenSSL::PKey::EC, OpenSSL::PKey::EC::Point COSE::Key::EC2.from_pkey(pkey) when OpenSSL::PKey::RSA COSE::Key::RSA.from_pkey(pkey) + when OpenSSL::PKey::PKey + COSE::Key::OKP.from_pkey(pkey) else raise "Unsupported #{pkey.class} object" end end