DSA.TrySignData Método

Definición

Intenta crear la firma DSA para los datos especificados en el búfer proporcionado.

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

Parámetros

data
ReadOnlySpan<Byte>

Datos que se van a aplicar hash y firmar.

destination
Span<Byte>

Intervalo de bytes para recibir la firma.

hashAlgorithm
HashAlgorithmName

Nombre del algoritmo hash que se va a usar.

bytesWritten
Int32

Cuando este método devuelve , contiene un valor que indica el número de bytes escritos en destination.

Devoluciones

true es si destination es lo suficientemente grande como para recibir el resultado; de lo contrario, falsees .

Se aplica a