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.


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

  • sig is a DSA signature value


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.