RSA.SignHash(Byte[], HashAlgorithmName, RSASignaturePadding) Methode

Definitie

Wanneer deze wordt overschreven in een afgeleide klasse, berekent u de handtekening voor de opgegeven hashwaarde met behulp van de opgegeven opvulling.

public:
 virtual cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public:
 abstract cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public virtual byte[] SignHash(byte[] hash, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
public abstract byte[] SignHash(byte[] hash, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
abstract member SignHash : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
override this.SignHash : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
abstract member SignHash : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
Public Overridable Function SignHash (hash As Byte(), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Byte()
Public MustOverride Function SignHash (hash As Byte(), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Byte()

Parameters

hash
Byte[]

De hashwaarde van de te ondertekenen gegevens.

hashAlgorithm
HashAlgorithmName

Het hash-algoritme dat wordt gebruikt om de hashwaarde van de gegevens te maken.

padding
RSASignaturePadding

De opvulling.

Retouren

Byte[]

De RSA-handtekening voor de opgegeven hashwaarde.

Uitzonderingen

Een afgeleide klasse moet deze methode overschrijven.

hash of padding is null.

hashAlgorithm.Name is null of Empty.

padding is onbekend of wordt niet ondersteund door deze implementatie.

– of –

Dit exemplaar vertegenwoordigt alleen een openbare sleutel.

– of –

Er is een fout opgetreden bij het maken van de handtekening.

Van toepassing op

Zie ook