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

- old
+ new

@@ -1,8 +1,9 @@ # frozen_string_literal: true require "cose/algorithm/ecdsa" +require "cose/algorithm/eddsa" require "cose/algorithm/hmac" require "cose/algorithm/rsa_pss" module COSE module Algorithm @@ -28,9 +29,10 @@ 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(EdDSA.new(-8, "EdDSA")) 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))