Method: OpenSSL::PKey::DSA#sysverify
- Defined in:
- lib/openssl/pkey.rb
#sysverify(digest, sig) ⇒ Object
:call-seq:
dsa.sysverify(digest, sig) -> true | false
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.
Deprecated in version 3.0. Consider using PKey::PKey#sign_raw and PKey::PKey#verify_raw instead.
digest
-
A message digest of the original input data to be signed.
sig
-
A DSA signature value.
243 244 245 246 247 |
# File 'lib/openssl/pkey.rb', line 243 def sysverify(digest, sig) verify_raw(nil, sig, digest) rescue OpenSSL::PKey::PKeyError raise OpenSSL::PKey::DSAError, $!. end |