class GPGME::Ctx
def sign(plain, sig = Data.new, mode = GPGME::SIG_MODE_NORMAL)
+plain+ is a data object which contains the text.
Create a signature for the text.
def sign(plain, sig = Data.new, mode = GPGME::SIG_MODE_NORMAL) err = GPGME::gpgme_op_sign(self, plain, sig, mode) exc = GPGME::error_to_exception(err) raise exc if exc sig end