ECDsa.TrySignDataCore Metodo

Definizione

Cerca di creare la firma ECDSA per i dati specificati nel formato indicato nel buffer specificato.

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

Parametri

data
ReadOnlySpan<Byte>

Dati per hash e firma.

destination
Span<Byte>

Buffer per la ricezione della firma.

hashAlgorithm
HashAlgorithmName

Algoritmo hash da usare per creare il valore hash.

signatureFormat
DSASignatureFormat

Formato di codifica da usare per la firma.

bytesWritten
Int32

Quando termina, questo metodo contiene un valore che indica il numero di byte scritti in destination. Questo parametro viene trattato come non inizializzato.

Restituisce

Boolean

true se destination è sufficientemente grande per ricevere la firma; in caso contrario, false.

Eccezioni

Si è verificato un errore nell'operazione di firma.

Si applica a