SignStream Method
Signs a stream.
Syntax
public fun signStream(sourceStream: InputStream?, destStream: OutputStream?, detached: Boolean)
Remarks
Use this method to sign a stream and save the protected message to another stream.
Specify the signing key in Key property before commencing the signing. Note that the signing key must come with its private key.
Set Detached parameter to false to produce enveloped/enveloping, and not detached signature. Many encryption algorithms/modes do not support non-detached signatures.