Method: GPGME::Ctx#verify
- Defined in:
- lib/gpgme.rb
#verify(sig, signed_text = nil, plain = Data.new) ⇒ Object
Verify that the signature in the data object is a valid signature.
1141 1142 1143 1144 1145 1146 |
# File 'lib/gpgme.rb', line 1141 def verify(sig, signed_text = nil, plain = Data.new) err = GPGME::gpgme_op_verify(self, sig, signed_text, plain) exc = GPGME::error_to_exception(err) raise exc if exc plain end |