ECDsa.TrySignHashCore メソッド

定義

指定した形式の指定されたハッシュ値の ECDSA 署名を、指定されたバッファーに作成しようとします。

protected:
 virtual bool TrySignHashCore(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination, System::Security::Cryptography::DSASignatureFormat signatureFormat, [Runtime::InteropServices::Out] int % bytesWritten);
protected virtual bool TrySignHashCore(ReadOnlySpan<byte> hash, Span<byte> destination, System.Security.Cryptography.DSASignatureFormat signatureFormat, out int bytesWritten);
abstract member TrySignHashCore : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.DSASignatureFormat * int -> bool
override this.TrySignHashCore : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.DSASignatureFormat * int -> bool
Protected Overridable Function TrySignHashCore (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte), signatureFormat As DSASignatureFormat, ByRef bytesWritten As Integer) As Boolean

パラメーター

hash
ReadOnlySpan<Byte>

署名するハッシュ値。

destination
Span<Byte>

署名を受け取るバッファー。

signatureFormat
DSASignatureFormat

署名に使用するエンコード形式。

bytesWritten
Int32

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

返品

true destinationが署名を受け取るのに十分な大きさの場合は。それ以外の場合はfalse

例外

署名操作でエラーが発生しました。

適用対象