lib/cose/algorithm.rb in cose-1.1.0 vs lib/cose/algorithm.rb in cose-1.2.0
- old
+ new
@@ -24,12 +24,13 @@
def self.by_name(name)
@registered_by_name[name]
end
- register(ECDSA.new(-7, "ES256", hash_function: "SHA256"))
- register(ECDSA.new(-35, "ES384", hash_function: "SHA384"))
- register(ECDSA.new(-36, "ES512", hash_function: "SHA512"))
+ register(ECDSA.new(-7, "ES256", hash_function: "SHA256", curve_name: "P-256"))
+ register(ECDSA.new(-35, "ES384", hash_function: "SHA384", curve_name: "P-384"))
+ register(ECDSA.new(-36, "ES512", hash_function: "SHA512", curve_name: "P-521"))
+ register(ECDSA.new(-47, "ES256K", hash_function: "SHA256", curve_name: "secp256k1"))
register(RSAPSS.new(-37, "PS256", hash_function: "SHA256", salt_length: 32))
register(RSAPSS.new(-38, "PS384", hash_function: "SHA384", salt_length: 48))
register(RSAPSS.new(-39, "PS512", hash_function: "SHA512", salt_length: 64))
register(HMAC.new(4, "HMAC 256/64", hash_function: "SHA256", tag_length: 64))
register(HMAC.new(5, "HMAC 256/256", hash_function: "SHA256", tag_length: 256))