RSACng.SignHash(Byte[], HashAlgorithmName, RSASignaturePadding) 方法

定義

簽署資料,該資料已使用指定的雜湊演算法和填補模式進行雜湊處理。

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()

參數

hash
Byte[]

要簽署的雜湊。

hashAlgorithm
HashAlgorithmName

雜湊演算法名稱。

padding
RSASignaturePadding

填補模式。

傳回

Byte[]

已簽署的資料。

例外狀況

hashnull

-或-

paddingnull

hashAlgorithmName 屬性值為 nullEmpty

padding 不等於 Pkcs1Pss

適用於