DSA.TrySignDataCore Metodo

Definizione

Tenta di creare la firma DSA per i dati specificati nel formato indicato e inserirla nel buffer fornito.

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 da hash e firmare.

destination
Span<Byte>

Buffer per ricevere la firma.

hashAlgorithm
HashAlgorithmName

Algoritmo hash da usare per creare il valore hash.

signatureFormat
DSASignatureFormat

Formato di codifica da utilizzare per la firma.

bytesWritten
Int32

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

Valori restituiti

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

Eccezioni

Errore durante l'operazione di firma.

Si applica a