Shake256.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>, Span<Byte>) |
Computes the hash of data using the SHAKE256 algorithm. |
HashData(ReadOnlySpan<Byte>, Int32) |
Computes the hash of data using the SHAKE256 algorithm. |
HashData(Byte[], Int32) |
Computes the hash of data using the SHAKE256 algorithm. |
HashData(Stream, Int32) |
Computes the hash of a stream using the SHAKE256 algorithm. |
HashData(Stream, Span<Byte>) |
Computes the hash of a stream using the SHAKE256 algorithm. |
HashData(ReadOnlySpan<Byte>, Span<Byte>)
- Source:
- Shake256.cs
- Source:
- Shake256.cs
Computes the hash of data using the SHAKE256 algorithm.
public:
static void HashData(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination);
public static void HashData (ReadOnlySpan<byte> source, Span<byte> destination);
static member HashData : ReadOnlySpan<byte> * Span<byte> -> unit
Public Shared Sub HashData (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte))
Parameters
- source
- ReadOnlySpan<Byte>
The data to hash.
Exceptions
The platform does not support SHAKE256. Callers can use the IsSupported property to determine if the platform supports SHAKE256.
Applies to
HashData(ReadOnlySpan<Byte>, Int32)
- Source:
- Shake256.cs
- Source:
- Shake256.cs
Computes the hash of data using the SHAKE256 algorithm.
public:
static cli::array <System::Byte> ^ HashData(ReadOnlySpan<System::Byte> source, int outputLength);
public static byte[] HashData (ReadOnlySpan<byte> source, int outputLength);
static member HashData : ReadOnlySpan<byte> * int -> byte[]
Public Shared Function HashData (source As ReadOnlySpan(Of Byte), outputLength As Integer) As Byte()
Parameters
- source
- ReadOnlySpan<Byte>
The data to hash.
- outputLength
- Int32
The size of the hash to produce.
Returns
The hash of the data.
Exceptions
outputLength
is negative.
The platform does not support SHAKE256. Callers can use the IsSupported property to determine if the platform supports SHAKE256.
Applies to
HashData(Byte[], Int32)
- Source:
- Shake256.cs
- Source:
- Shake256.cs
Computes the hash of data using the SHAKE256 algorithm.
public:
static cli::array <System::Byte> ^ HashData(cli::array <System::Byte> ^ source, int outputLength);
public static byte[] HashData (byte[] source, int outputLength);
static member HashData : byte[] * int -> byte[]
Public Shared Function HashData (source As Byte(), outputLength As Integer) As Byte()
Parameters
- source
- Byte[]
The data to hash.
- outputLength
- Int32
The size of the hash to produce.
Returns
The hash of the data.
Exceptions
outputLength
is negative.
source
is null
.
The platform does not support SHAKE256. Callers can use the IsSupported property to determine if the platform supports SHAKE256.
Applies to
HashData(Stream, Int32)
- Source:
- Shake256.cs
- Source:
- Shake256.cs
Computes the hash of a stream using the SHAKE256 algorithm.
public:
static cli::array <System::Byte> ^ HashData(System::IO::Stream ^ source, int outputLength);
public static byte[] HashData (System.IO.Stream source, int outputLength);
static member HashData : System.IO.Stream * int -> byte[]
Public Shared Function HashData (source As Stream, outputLength As Integer) As Byte()
Parameters
- source
- Stream
The stream to hash.
- outputLength
- Int32
The size of the hash to produce.
Returns
The hash of the data.
Exceptions
source
does not support reading.
outputLength
is negative.
source
is null
.
The platform does not support SHAKE256. Callers can use the IsSupported property to determine if the platform supports SHAKE256.
Applies to
HashData(Stream, Span<Byte>)
- Source:
- Shake256.cs
- Source:
- Shake256.cs
Computes the hash of a stream using the SHAKE256 algorithm.
public:
static void HashData(System::IO::Stream ^ source, Span<System::Byte> destination);
public static void HashData (System.IO.Stream source, Span<byte> destination);
static member HashData : System.IO.Stream * Span<byte> -> unit
Public Shared Sub HashData (source As Stream, destination As Span(Of Byte))
Parameters
- source
- Stream
The stream to hash.
Exceptions
source
does not support reading.
source
is null
.
The platform does not support SHAKE256. Callers can use the IsSupported property to determine if the platform supports SHAKE256.