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

Definición

Intenta calcular la firma digital ECDSA del intervalo de bytes de solo lectura especificado que representa un hash de datos en el destino proporcionado mediante la clave actual.Attempts to compute the ECDSA digital signature for the specified read-only span of bytes representing a data hash into the provided destination by using the current key.

public:
 virtual bool TrySignHash(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public virtual bool TrySignHash (ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten);
abstract member TrySignHash : ReadOnlySpan<byte> * Span<byte> * int -> bool
override this.TrySignHash : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Overridable Function TrySignHash (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parámetros

hash
ReadOnlySpan<Byte>

Valor hash de los datos que se a firman.The hash value of the data that is being signed.

destination
Span<Byte>

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

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