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

Definitie

Ondertekent gegevens die zijn gehasht met behulp van het opgegeven hash-algoritme en de opvullingsmodus.

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

Parameters

hash
Byte[]

De hash die moet worden ondertekend.

hashAlgorithm
HashAlgorithmName

De naam van het hash-algoritme.

padding
RSASignaturePadding

De opvullingsmodus.

Retouren

Byte[]

De ondertekende gegevens.

Uitzonderingen

hash is null.

– of –

padding is null.

De waarde van de Name eigenschap hashAlgorithm is null of Empty.

padding is niet gelijk aan Pkcs1 of Pss.

Van toepassing op