DSA.TrySignData Metodo

Definizione

Overload

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

Tenta di creare la firma DSA per i dati specificati nel buffer fornito.

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

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

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

Origine:
DSA.cs
Origine:
DSA.cs
Origine:
DSA.cs
Origine:
DSA.cs
Origine:
DSA.cs

Tenta di creare la firma DSA per i dati specificati nel buffer fornito.

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

Parametri

data
ReadOnlySpan<Byte>

Dati da hash e firmare.

destination
Span<Byte>

Intervallo di byte per ricevere la firma.

hashAlgorithm
HashAlgorithmName

Nome dell'algoritmo hash da usare.

bytesWritten
Int32

Quando termina, questo metodo contiene un valore che indica il numero di byte scritti in destination.

Valori restituiti

true se destination è sufficientemente grande da ricevere il risultato; in caso contrario, false.

Si applica a

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

Origine:
DSA.cs
Origine:
DSA.cs
Origine:
DSA.cs
Origine:
DSA.cs
Origine:
DSA.cs

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

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

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

signatureFormat non è un formato noto.

hashAlgorithm ha un null oggetto o vuoto Name.

Errore durante l'operazione di firma.

Si applica a