DSA.TrySignData Méthode

Définition

Surcharges

Nom Description
TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)

Tente de créer la signature DSA pour les données spécifiées dans la mémoire tampon fournie.

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

Tente de créer la signature DSA pour les données spécifiées au format indiqué et de la placer dans la mémoire tampon fournie.

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)

Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs

Tente de créer la signature DSA pour les données spécifiées dans la mémoire tampon fournie.

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

Paramètres

data
ReadOnlySpan<Byte>

Données à hacher et signer.

destination
Span<Byte>

Étendue d’octets pour recevoir la signature.

hashAlgorithm
HashAlgorithmName

Nom de l’algorithme de hachage à utiliser.

bytesWritten
Int32

Lorsque cette méthode est retournée, contient une valeur qui indique le nombre d’octets écrits dans destination.

Retours

true s’il destination est assez grand pour recevoir le résultat ; sinon, false.

S’applique à

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs

Tente de créer la signature DSA pour les données spécifiées au format indiqué et de la placer dans la mémoire tampon fournie.

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

Paramètres

data
ReadOnlySpan<Byte>

Données à hacher et signer.

destination
Span<Byte>

Mémoire tampon à recevoir la signature.

hashAlgorithm
HashAlgorithmName

Algorithme de hachage à utiliser pour créer la valeur de hachage.

signatureFormat
DSASignatureFormat

Format d’encodage à utiliser pour la signature.

bytesWritten
Int32

Lorsque cette méthode est retournée, contient une valeur qui indique le nombre d’octets écrits dans destination. Ce paramètre est traité comme non initialisé.

Retours

true s’il destination est assez grand pour recevoir la signature ; sinon, false.

Exceptions

signatureFormat n’est pas un format connu.

hashAlgorithm a un null ou un vide Name.

Une erreur s’est produite dans l’opération de signature.

S’applique à