DSA.TrySignData メソッド

定義

オーバーロード

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)

指定されたデータの DSA 署名を、指定されたバッファーに作成しようとします。

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

指定したデータの DSA 署名を指定した形式で作成し、指定したバッファーへの配置を試みます。

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)

指定されたデータの DSA 署名を、指定されたバッファーに作成しようとします。

public:
 virtual bool TrySignData(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, [Runtime::InteropServices::Out] int % bytesWritten);
public virtual bool TrySignData (ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten);
abstract member TrySignData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * int -> bool
override this.TrySignData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * int -> bool
Public Overridable Function TrySignData (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName, ByRef bytesWritten As Integer) As Boolean

パラメーター

data
ReadOnlySpan<Byte>

ハッシュおよび署名するデータ。

destination
Span<Byte>

署名を受け取るバイト スパン。

hashAlgorithm
HashAlgorithmName

使用するハッシュ アルゴリズムの名前。

bytesWritten
Int32

このメソッドが戻るときに、destination に書き込まれたバイト数を示す値が含まれます。

戻り値

Boolean

destination が結果を受け入れるだけの十分な大きさの場合は true。それ以外の場合は false

適用対象

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

指定したデータの DSA 署名を指定した形式で作成し、指定したバッファーへの配置を試みます。

public:
 bool TrySignData(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TrySignData (ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat, out int bytesWritten);
member this.TrySignData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat * int -> bool
Public Function TrySignData (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat, ByRef bytesWritten As Integer) As Boolean

パラメーター

data
ReadOnlySpan<Byte>

ハッシュおよび署名するデータ。

destination
Span<Byte>

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

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

signatureFormat
DSASignatureFormat

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

bytesWritten
Int32

このメソッドが戻るときに、destination に書き込まれたバイト数を示す値が含まれます。 このパラメーターは初期化前として処理されます。

戻り値

Boolean

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

例外

signatureFormat は既知の形式ではありません。

hashAlgorithm には null または空の Name があります。

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

適用対象