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 プロパティの値が null または Empty です。

paddingPkcs1 または Pss と一致しません。

適用対象