lib/cose/algorithm/signature_algorithm.rb in cose-1.0.0 vs lib/cose/algorithm/signature_algorithm.rb in cose-1.1.0

- old
+ new

@@ -18,10 +18,10 @@ end private def valid_signature?(key, signature, verification_data) - signature_algorithm = signature_algorithm_class.new(hash_function[3..-1]) + signature_algorithm = signature_algorithm_class.new(hash_function: hash_function) signature_algorithm.verify_key = to_pkey(key) begin signature_algorithm.verify(signature, verification_data) rescue OpenSSL::SignatureAlgorithm::Error