Encrypts (and optionally signs) the cleartext input stream and writes the resulting ciphertext to the output stream.
this | |
sign |
sign as well as encrypt |
userid |
the key id (or email address) to use when signing (assuming |
flags |
a set of EncryptFlags |
recipients |
an array of recipient key ids and/or email addresses |
istream |
cleartext input stream |
ostream |
ciphertext output stream |
0 on success or %-1 on fail. |