WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

PGPBase..::..SignData Method (Stream, HashAlgorithmName, RSASignaturePadding)

Computes the hash value of the specified stream using the specified hash algorithm and padding mode, and signs the resulting hash value.

Namespace:  Walter.Cypher.PGP
Assembly:  Walter.Cypher (in Walter.Cypher.dll)

Syntax


public byte[] SignData(
	Stream data,
	HashAlgorithmName hashAlgorithm,
	RSASignaturePadding padding
)

Parameters

data
Type: Stream
The input stream for which to compute the hash.
hashAlgorithm
Type: HashAlgorithmName
The hash algorithm to use to create the hash value.
padding
Type: RSASignaturePadding
The padding mode.

Return Value

The RSA signature for the specified data.