A context within which all cryptographic operations are performed.
passphrase_cb |
[R] |
An array which contains a Proc and an Object. The former is the passphrase
callback and the latter is hook value passed to it.
|
progress_cb |
[R] |
An array which contains a Proc and an Object. The former is the progress
callback used when progress information is available and the latter is hook
value passed to it.
|
Set the protocol used within this context.
Return the protocol used within this context.
Tell whether the output should be ASCII armored.
Return true if the output is ASCII armored.
Tell whether canonical text mode should be used.
Return true if canonical text mode is enabled.
Change the default behaviour of the key listing functions.
Returns the current key listing mode.
Set the passphrase callback with given hook value.
Set the progress callback with given hook value.
Initiates a key listing operation for given pattern. If pattern is nil, all
available keys are returned. If secret_only is true, the list is restricted
to secret keys only.
Returns the next key in the list created by a previous keylist_start operation.
End a pending key list operation.
Convenient method to iterate over keylist.
Generates a new key pair. If store is true, this method puts the key pair
into the standard key ring.
Extracts the public keys of the recipients.
Add the keys in the data buffer to the key ring.
Delete the key from the key ring. If allow_secret is false, only public
keys are deleted, otherwise secret keys are deleted as well.
Decrypt the ciphertext and return the plaintext.
Verify that the signature in the data object is a valid signature.
Removes the list of signers from this object.
Add the key to the list of signers.
Create a signature for the text in the data object.
Encrypt the plaintext in the data object for the recipients and return the
ciphertext.