RSACng.TrySignHash メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定されたバッファーに署名を書き込み、現在のキーを使用してハッシュに署名しようとします。
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>
署名するデータのハッシュ値。
- hashAlgorithm
- HashAlgorithmName
データのハッシュ値を作成するために使用されるハッシュ アルゴリズム。
- padding
- RSASignaturePadding
パディング。
- bytesWritten
- Int32
このメソッドから制御が戻るときに、 destinationに書き込まれた合計バイト数が格納されます。 このパラメーターは、初期化されていないものとして扱われます。