語言

RSAOpenSsl.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

傳回

Byte[]

指定雜湊值的 RSA 簽名。

例外狀況

hash 或 padding 為 null。

hashAlgorithm。Name 是 null 或 Empty。

padding 未知,或此實作不支援。

-或-

此實例僅代表公鑰。

-或-

建立簽名時發生錯誤。

適用於

另請參閱