ECDsa.TrySignHashCore Méthode

Définition

Tente de créer la signature ECDSA pour la valeur de hachage spécifiée dans le format indiqué dans la mémoire tampon fournie.

protected:
 virtual bool TrySignHashCore(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination, System::Security::Cryptography::DSASignatureFormat signatureFormat, [Runtime::InteropServices::Out] int % bytesWritten);
protected virtual bool TrySignHashCore (ReadOnlySpan<byte> hash, Span<byte> destination, System.Security.Cryptography.DSASignatureFormat signatureFormat, out int bytesWritten);
abstract member TrySignHashCore : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.DSASignatureFormat * int -> bool
override this.TrySignHashCore : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.DSASignatureFormat * int -> bool
Protected Overridable Function TrySignHashCore (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte), signatureFormat As DSASignatureFormat, ByRef bytesWritten As Integer) As Boolean

Paramètres

hash
ReadOnlySpan<Byte>

Valeur de hachage à signer.

destination
Span<Byte>

Mémoire tampon utilisée pour recevoir la signature.

signatureFormat
DSASignatureFormat

Format d’encodage à utiliser pour la signature.

bytesWritten
Int32

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

Retours

true si destination est suffisamment grand pour recevoir la signature ; sinon, false.

Exceptions

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

S’applique à