HMACSHA256.TryHashData Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente de calculer le HMAC des données à l’aide de l’algorithme SHA256.
public:
static bool TryHashData(ReadOnlySpan<System::Byte> key, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member TryHashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Shared Function TryHashData (key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
- key
- ReadOnlySpan<Byte>
Clé HMAC.
- source
- ReadOnlySpan<Byte>
Données à HMAC.
- bytesWritten
- Int32
Quand cette méthode est retournée, nombre total d’octets écrits dans destination
.
false
si destination
est trop petit pour contenir le hachage calculé, true
dans le cas contraire.
Produit | Versions |
---|---|
.NET | 6, 7, 8, 9, 10 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :