แก้ไข

แชร์ผ่าน


X509SignatureGenerator.SignData(Byte[], HashAlgorithmName) Method

Definition

When overridden in a derived class, produces a signature for the specified data using the specified hash algorithm and encodes the results appropriately for X.509 signature values.

public:
 abstract cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public abstract byte[] SignData (byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : byte[] * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public MustOverride Function SignData (data As Byte(), hashAlgorithm As HashAlgorithmName) As Byte()

Parameters

data
Byte[]

The input data for which to produce the signature.

hashAlgorithm
HashAlgorithmName

The hash algorithm to use to produce the signature.

Returns

Byte[]

The X.509 signature for the specified data.

Applies to