We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0b5ca4 commit 54acb75Copy full SHA for 54acb75
lib/xml_security.rb
@@ -96,7 +96,7 @@ def validate_signature(base64_cert, soft = true)
96
canon_algorithm = canon_algorithm REXML::XPath.first(ref, '//ds:CanonicalizationMethod', 'ds' => DSIG)
97
canon_hashed_element = hashed_element.canonicalize(canon_algorithm, inclusive_namespaces)
98
99
- digest_algorithm = algorithm(REXML::XPath.first(ref, "//ds:DigestMethod"))
+ digest_algorithm = algorithm(REXML::XPath.first(ref, "//ds:DigestMethod", 'ds' => DSIG))
100
101
hash = digest_algorithm.digest(canon_hashed_element)
102
digest_value = Base64.decode64(REXML::XPath.first(ref, "//ds:DigestValue", {"ds"=>DSIG}).text)
0 commit comments