Signs the input stream and writes the resulting signature to the output stream.
true if ostream should be the detached signature; otherwise, false
private key to use to sign the stream
input stream
output stream
the #GMimeDigestAlgo used on success or %-1 on fail.
ErrorWrap
Signs the input stream and writes the resulting signature to the output stream.