CryptoContext.sign
int sign(bool detach, string userid, gmime.stream.Stream istream, gmime.stream.Stream ostream)Signs the input stream and writes the resulting signature to the output stream.
Parameters
detach | true if ostream should be the detached signature; otherwise, false |
userid | private key to use to sign the stream |
istream | input stream |
ostream | output stream |
Returns
the #GMimeDigestAlgo used on success or %-1 on fail.
Throws
[ErrorWrap]