SignStream Method
Signs a stream.
Syntax
public void SignStream(System.IO.Stream sourceStream, System.IO.Stream destStream, bool detached);
Public Sub SignStream(ByVal SourceStream As System.IO.Stream, ByVal DestStream As System.IO.Stream, ByVal Detached As 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.