SHA256.TryHashData(ReadOnlySpan<Byte>, Span<Byte>, Int32) Méthode

Définition

Tente de calculer le hachage des données à l’aide de l’algorithme SHA256.

public:
 static bool TryHashData(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryHashData (ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryHashData : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryHashData (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Paramètres

source
ReadOnlySpan<Byte>

Données à hacher.

destination
Span<Byte>

Mémoire tampon utilisée pour recevoir la valeur de hachage.

bytesWritten
Int32

Quand cette méthode est retournée, nombre total d’octets écrits dans destination.

Retours

Boolean

false si destination est trop petit pour contenir le hachage calculé, true dans le cas contraire.

S’applique à