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

PGPBase..::..SignData Method (array<Byte>[]()[][], Int32, Int32, HashAlgorithmName, RSASignaturePadding)

Computes the hash value of a portion of the specified byte array 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(
	byte[] data,
	int offset,
	int count,
	HashAlgorithmName hashAlgorithm,
	RSASignaturePadding padding
)

Parameters

data
Type: array<Byte>[]()[][]
The input data for which to compute the hash.
offset
Type: Int32
The offset into the array at which to begin using data.
count
Type: Int32
The number of bytes in the array to use as data.
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.