ECDsa.TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32) Método

Definición

Intenta calcular la firma digital ECDSA del intervalo de bytes de solo lectura especificado en el destino proporcionado mediante el algoritmo hash especificado y la clave actual.Attempts to compute the ECDSA digital signature for the specified read-only span of bytes into the provided destination by using the specified hashing algorithm and the current key.

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 van a firmar.The data to be signed.

destination
Span<Byte>

Búfer que va a recibir la firma.The buffer to receive the signature.

hashAlgorithm
HashAlgorithmName

Algoritmo hash que se va a aplicar a los datos para la firma.The algorithm to use to hash the data for signing.

bytesWritten
Int32

Cuando este método devuelve un valor, el número total de bytes escritos en destination.When this method returns, the total number of bytes written into destination. Este parámetro se trata como no inicializado.This parameter is treated as uninitialized.

Devoluciones

false si destination no es lo suficientemente largo para recibir la firma.false if destination is not long enough to receive the signature.

Se aplica a