DSA.TrySignData Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32) |
Intenta crear la firma DSA para los datos especificados en el búfer proporcionado. |
| TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32) |
Intenta crear la firma DSA para los datos especificados en el formato indicado y colocarla en el búfer proporcionado. |
TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
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.
- 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
TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
Intenta crear la firma DSA para los datos especificados en el formato indicado y colocarla en el búfer proporcionado.
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
Parámetros
- data
- ReadOnlySpan<Byte>
Datos que se van a aplicar hash y firmar.
- hashAlgorithm
- HashAlgorithmName
Algoritmo hash que se va a usar para crear el valor hash.
- signatureFormat
- DSASignatureFormat
Formato de codificación que se va a usar para la firma.
- bytesWritten
- Int32
Cuando este método devuelve , contiene un valor que indica el número de bytes escritos en destination. Este parámetro se trata como sin inicializar.
Devoluciones
true si destination es lo suficientemente grande como para recibir la firma; de lo contrario, falsees .
Excepciones
signatureFormat no es un formato conocido.
hashAlgorithm tiene un null objeto o vacío Name.
Error en la operación de firma.