HMACMD5.HashData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| HashData(ReadOnlySpan<Byte>, Stream, Span<Byte>) |
Computes the HMAC of a stream using the MD5 algorithm. |
| HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Computes the HMAC of data using the MD5 algorithm. |
| HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>) |
Computes the HMAC of data using the MD5 algorithm. |
| HashData(Byte[], Stream) |
Computes the HMAC of a stream using the MD5 algorithm. |
| HashData(Byte[], Byte[]) |
Computes the HMAC of data using the MD5 algorithm. |
| HashData(ReadOnlySpan<Byte>, Stream) |
Computes the HMAC of a stream using the MD5 algorithm. |
HashData(ReadOnlySpan<Byte>, Stream, Span<Byte>)
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
Computes the HMAC of a stream using the MD5 algorithm.
public:
static int HashData(ReadOnlySpan<System::Byte> key, System::IO::Stream ^ source, Span<System::Byte> destination);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static int HashData(ReadOnlySpan<byte> key, System.IO.Stream source, Span<byte> destination);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member HashData : ReadOnlySpan<byte> * System.IO.Stream * Span<byte> -> int
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As Stream, destination As Span(Of Byte)) As Integer
Parameters
- key
- ReadOnlySpan<Byte>
The HMAC key.
- source
- Stream
The stream to HMAC.
Returns
The total number of bytes written to destination.
- Attributes
Exceptions
source is null.
The buffer in destination is too small to hold the calculated HMAC
size. The MD5 algorithm always produces a 128-bit HMAC, or 16 bytes.
-or-
source does not support reading.
Applies to
HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
Computes the HMAC of data using the MD5 algorithm.
public:
static cli::array <System::Byte> ^ HashData(ReadOnlySpan<System::Byte> key, ReadOnlySpan<System::Byte> source);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source);
public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member HashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> byte[]
static member HashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> byte[]
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte)) As Byte()
Parameters
- key
- ReadOnlySpan<Byte>
The HMAC key.
- source
- ReadOnlySpan<Byte>
The data to HMAC.
Returns
The HMAC of the data.
- Attributes
Applies to
HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>)
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
Computes the HMAC of data using the MD5 algorithm.
public:
static int HashData(ReadOnlySpan<System::Byte> key, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination);
public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member HashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> int
static member HashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> int
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte), destination As Span(Of Byte)) As Integer
Parameters
- key
- ReadOnlySpan<Byte>
The HMAC key.
- source
- ReadOnlySpan<Byte>
The data to HMAC.
Returns
The total number of bytes written to destination.
- Attributes
Exceptions
The buffer in destination is too small to hold the calculated hash size. The MD5 algorithm always produces a 128-bit HMAC, or 16 bytes.
Applies to
HashData(Byte[], Stream)
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
Computes the HMAC of a stream using the MD5 algorithm.
public:
static cli::array <System::Byte> ^ HashData(cli::array <System::Byte> ^ key, System::IO::Stream ^ source);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static byte[] HashData(byte[] key, System.IO.Stream source);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member HashData : byte[] * System.IO.Stream -> byte[]
Public Shared Function HashData (key As Byte(), source As Stream) As Byte()
Parameters
- key
- Byte[]
The HMAC key.
- source
- Stream
The stream to HMAC.
Returns
The HMAC of the data.
- Attributes
Exceptions
key or source is null.
source does not support reading.
Applies to
HashData(Byte[], Byte[])
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
Computes the HMAC of data using the MD5 algorithm.
public:
static cli::array <System::Byte> ^ HashData(cli::array <System::Byte> ^ key, cli::array <System::Byte> ^ source);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static byte[] HashData(byte[] key, byte[] source);
public static byte[] HashData(byte[] key, byte[] source);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member HashData : byte[] * byte[] -> byte[]
static member HashData : byte[] * byte[] -> byte[]
Public Shared Function HashData (key As Byte(), source As Byte()) As Byte()
Parameters
- key
- Byte[]
The HMAC key.
- source
- Byte[]
The data to HMAC.
Returns
The HMAC of the data.
- Attributes
Exceptions
key or source is null.
Applies to
HashData(ReadOnlySpan<Byte>, Stream)
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
- Source:
- HMACMD5.cs
Computes the HMAC of a stream using the MD5 algorithm.
public:
static cli::array <System::Byte> ^ HashData(ReadOnlySpan<System::Byte> key, System::IO::Stream ^ source);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static byte[] HashData(ReadOnlySpan<byte> key, System.IO.Stream source);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member HashData : ReadOnlySpan<byte> * System.IO.Stream -> byte[]
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As Stream) As Byte()
Parameters
- key
- ReadOnlySpan<Byte>
The HMAC key.
- source
- Stream
The stream to HMAC.
Returns
The HMAC of the data.
- Attributes
Exceptions
source is null.
source does not support reading.