Sha256: c4cac0a8167b095ad55e7440421fbd981441eebde5081ba1eca54e534406522a
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
# frozen_string_literal: true require "cose/algorithm/base" require "cose/error" module COSE module Algorithm class SignatureAlgorithm < Base def verify(key, signature, verification_data) valid_signature?(key, signature, verification_data) || raise(COSE::Error, "Signature verification failed") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cose-0.10.0 | lib/cose/algorithm/signature_algorithm.rb |
cose-0.9.0 | lib/cose/algorithm/signature_algorithm.rb |