sign


Description:

public virtual int sign (bool detach, string userid, Stream istream, Stream ostream) throws Error

Signs the input stream and writes the resulting signature to the output stream.

Parameters:

this

a CryptoContext

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 DigestAlgo used on success or %-1 on fail.