RSACng.TrySignHash メソッド

定義

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

public:
 override bool TrySignHash(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding, [Runtime::InteropServices::Out] int % bytesWritten);
public override bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding, out int bytesWritten);
override this.TrySignHash : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding * int -> bool
Public Overrides Function TrySignHash (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding, ByRef bytesWritten As Integer) As Boolean

パラメーター

hash
ReadOnlySpan<Byte>

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

destination
Span<Byte>

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

hashAlgorithm
HashAlgorithmName

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

padding
RSASignaturePadding

パディング。

bytesWritten
Int32

このメソッドから制御が戻るときに、 destinationに書き込まれた合計バイト数が格納されます。 このパラメーターは、初期化されていないものとして扱われます。

返品

が RSA 署名を受信するのに十分な長さである場合は a0/&。それ以外の場合は

適用対象