RSA.SignHash メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| 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
パディング。
返品
指定したハッシュ値の RSA 署名。
例外
派生クラスは、このメソッドをオーバーライドする必要があります。
hash または padding が null。
padding が不明であるか、この実装でサポートされていません。
-又は-
このインスタンスは公開キーのみを表します。
-又は-
署名の作成中にエラーが発生しました。
こちらもご覧ください
- TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding, Int32)
- SignData(Byte[], HashAlgorithmName, RSASignaturePadding)
適用対象
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
埋め込みモード。
返品
指定したハッシュ値の RSA 署名。
例外
padding または hashAlgorithmの Name が null。
hashAlgorithm's Name は空の文字列です。
padding が不明であるか、この実装でサポートされていません。
-又は-
このインスタンスは公開キーのみを表します。
-又は-
署名の作成中にエラーが発生しました。
この実装では、 TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding, Int32) または SignHash(Byte[], HashAlgorithmName, RSASignaturePadding)の 1 つを実装していません。
適用対象
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>
署名するデータのハッシュ値。
- hashAlgorithm
- HashAlgorithmName
hashのハッシュの作成に使用されるハッシュ アルゴリズム。
- padding
- RSASignaturePadding
埋め込みモード。
返品
destinationに書き込まれた合計バイト数。
例外
padding または hashAlgorithmの Name が null。
padding が不明であるか、この実装でサポートされていません。
-又は-
このインスタンスは公開キーのみを表します。
-又は-
署名の作成中にエラーが発生しました。
この実装では、 TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding, Int32) または SignHash(Byte[], HashAlgorithmName, RSASignaturePadding)の 1 つを実装していません。