lib/cose/key/rsa.rb in cose-1.0.0 vs lib/cose/key/rsa.rb in cose-1.1.0

- old
+ new

@@ -72,22 +72,20 @@ end end end def map - map = super.merge( + super.merge( Base::LABEL_KTY => KTY_RSA, LABEL_N => n, LABEL_E => e, LABEL_D => d, LABEL_P => p, LABEL_Q => q, LABEL_DP => dp, LABEL_DQ => dq, LABEL_QINV => qinv - ) - - map.reject { |_k, v| v.nil? } + ).compact end def to_pkey pkey = OpenSSL::PKey::RSA.new