RSA.SignHash メソッド

定義

オーバーロード

名前 説明
SignHash(Byte[], HashAlgorithmName, RSASignaturePadding)

派生クラスでオーバーライドされると、指定したパディングを使用して、指定したハッシュ値のシグネチャを計算します。

SignHash(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)

指定したパディングを使用して、指定したハッシュ値の署名を計算します。

SignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding)

現在のキーを使用してハッシュに署名し、指定されたバッファーに署名を書き込みます。

SignHash(Byte[], HashAlgorithmName, RSASignaturePadding)

ソース:
RSA.cs
ソース:
RSA.cs
ソース:
RSA.cs
ソース:
RSA.cs
ソース:
RSA.cs

派生クラスでオーバーライドされると、指定したパディングを使用して、指定したハッシュ値のシグネチャを計算します。

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

パラメーター

hash
Byte[]

署名するデータのハッシュ値。

hashAlgorithm
HashAlgorithmName

データのハッシュ値を作成するために使用されるハッシュ アルゴリズム。

padding
RSASignaturePadding

パディング。

返品

Byte[]

指定したハッシュ値の RSA 署名。

例外

派生クラスは、このメソッドをオーバーライドする必要があります。

hash または paddingnull

hashAlgorithm.Namenull または Empty

padding が不明であるか、この実装でサポートされていません。

-又は-

このインスタンスは公開キーのみを表します。

-又は-

署名の作成中にエラーが発生しました。

こちらもご覧ください

適用対象

SignHash(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)

ソース:
RSA.cs
ソース:
RSA.cs
ソース:
RSA.cs
ソース:
RSA.cs
ソース:
RSA.cs

指定したパディングを使用して、指定したハッシュ値の署名を計算します。

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

パラメーター

hash
ReadOnlySpan<Byte>

署名するデータのハッシュ値。

hashAlgorithm
HashAlgorithmName

hashのハッシュの作成に使用されるハッシュ アルゴリズム。

padding
RSASignaturePadding

埋め込みモード。

返品

Byte[]

指定したハッシュ値の RSA 署名。

例外

padding または hashAlgorithmNamenull

hashAlgorithm's Name は空の文字列です。

padding が不明であるか、この実装でサポートされていません。

-又は-

このインスタンスは公開キーのみを表します。

-又は-

署名の作成中にエラーが発生しました。

適用対象

SignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding)

ソース:
RSA.cs
ソース:
RSA.cs
ソース:
RSA.cs
ソース:
RSA.cs
ソース:
RSA.cs

現在のキーを使用してハッシュに署名し、指定されたバッファーに署名を書き込みます。

public:
 int SignHash(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public int SignHash(ReadOnlySpan<byte> hash, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
member this.SignHash : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> int
Public Function SignHash (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Integer

パラメーター

hash
ReadOnlySpan<Byte>

署名するデータのハッシュ値。

destination
Span<Byte>

RSA 署名を受信するバッファー。

hashAlgorithm
HashAlgorithmName

hashのハッシュの作成に使用されるハッシュ アルゴリズム。

padding
RSASignaturePadding

埋め込みモード。

返品

destinationに書き込まれた合計バイト数。

例外

padding または hashAlgorithmNamenull

hashAlgorithm's Name は空の文字列です。

-又は-

destination内のバッファーが小さすぎて署名を保持できません。

padding が不明であるか、この実装でサポートされていません。

-又は-

このインスタンスは公開キーのみを表します。

-又は-

署名の作成中にエラーが発生しました。

適用対象