DSA.TrySignDataCore Método

Definición

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

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

Parámetros

data
ReadOnlySpan<Byte>

Datos para aplicar un algoritmo hash y firmar.

destination
Span<Byte>

Búfer que va a recibir la firma.

hashAlgorithm
HashAlgorithmName

Algoritmo hash que se va a usar para crear el valor hash.

signatureFormat
DSASignatureFormat

El formato de codificación que se va a usar para la firma.

bytesWritten
Int32

El resultado que devuelve este método contiene un valor que indica el número de bytes escritos en destination. Este parámetro se trata como sin inicializar.

Devoluciones

Boolean

true si destination es lo suficientemente grande como para recibir la firma; en caso contrario, false.

Excepciones

Error en la operación de firma.

Se aplica a