Flowdock
method

sysverify

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: DSA
sysverify(p1, p2) public

Verifies whether the signature is valid given the message digest input. It does so by validating sig using the public key of this DSA instance.

Parameters

  • digest is a message digest of the original input data to be signed

  • sig is a DSA signature value

Example

dsa = OpenSSL::PKey::DSA.new(2048)
doc = "Sign me"
digest = OpenSSL::Digest::SHA1.digest(doc)
sig = dsa.syssign(digest)
puts dsa.sysverify(digest, sig) # => true
Show source
Register or log in to add new notes.