lib/signer/digester.rb in signer-1.7.0 vs lib/signer/digester.rb in signer-1.8.0

- old
+ new

@@ -26,11 +26,11 @@ gostr3411: { name: 'GOST R 34.11-94', id: 'http://www.w3.org/2001/04/xmldsig-more#gostr3411', digester: lambda { OpenSSL::Digest.new('md_gost94') }, }, - } + }.freeze # Class that holds +OpenSSL::Digest+ instance with some meta information for digesting in XML. class Digester # You may pass either a one of +:sha1+, +:sha256+ or +:gostr3411+ symbols @@ -67,9 +67,7 @@ # XML-friendly name (for specifying in XML +DigestMethod+ node +Algorithm+ attribute) def digest_id @digest_info[:id] end - end - end