DSA.TrySignDataCore Metoda

Definicja

Próbuje utworzyć podpis DSA dla określonych danych w wskazanym formacie i umieścić go w podanym buforze.

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

Parametry

data
ReadOnlySpan<Byte>

Dane do utworzenia skrótu i podpisania.

destination
Span<Byte>

Bufor do odbierania podpisu.

hashAlgorithm
HashAlgorithmName

Algorytm skrótu używany do tworzenia wartości skrótu.

signatureFormat
DSASignatureFormat

Format kodowania do użycia dla podpisu.

bytesWritten
Int32

Gdy ta metoda zwraca wartość, zawiera wartość, która wskazuje liczbę bajtów zapisanych w destinationobiekcie . Ten parametr jest traktowany jako niezainicjowany.

Zwraca

Boolean

truejeśli destination jest wystarczająco duży, aby otrzymać podpis; w przeciwnym razie . false

Wyjątki

Wystąpił błąd podczas operacji podpisywania.

Dotyczy