Επεξεργασία

Κοινή χρήση μέσω


Shake128.HashData Method

Definition

Overloads

HashData(ReadOnlySpan<Byte>, Span<Byte>)

Computes the hash of data using the SHAKE128 algorithm.

HashData(ReadOnlySpan<Byte>, Int32)

Computes the hash of data using the SHAKE128 algorithm.

HashData(Byte[], Int32)

Computes the hash of data using the SHAKE128 algorithm.

HashData(Stream, Int32)

Computes the hash of a stream using the SHAKE128 algorithm.

HashData(Stream, Span<Byte>)

Computes the hash of a stream using the SHAKE128 algorithm.

HashData(ReadOnlySpan<Byte>, Span<Byte>)

Source:
Shake128.cs
Source:
Shake128.cs

Computes the hash of data using the SHAKE128 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.

destination
Span<Byte>

The buffer to fill with the hash.

Exceptions

The platform does not support SHAKE128. Callers can use the IsSupported property to determine if the platform supports SHAKE128.

Applies to

HashData(ReadOnlySpan<Byte>, Int32)

Source:
Shake128.cs
Source:
Shake128.cs

Computes the hash of data using the SHAKE128 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

Byte[]

The hash of the data.

Exceptions

outputLength is negative.

The platform does not support SHAKE128. Callers can use the IsSupported property to determine if the platform supports SHAKE128.

Applies to

HashData(Byte[], Int32)

Source:
Shake128.cs
Source:
Shake128.cs

Computes the hash of data using the SHAKE128 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

Byte[]

The hash of the data.

Exceptions

outputLength is negative.

source is null.

The platform does not support SHAKE128. Callers can use the IsSupported property to determine if the platform supports SHAKE128.

Applies to

HashData(Stream, Int32)

Source:
Shake128.cs
Source:
Shake128.cs

Computes the hash of a stream using the SHAKE128 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

Byte[]

The hash of the data.

Exceptions

source does not support reading.

outputLength is negative.

source is null.

The platform does not support SHAKE128. Callers can use the IsSupported property to determine if the platform supports SHAKE128.

Applies to

HashData(Stream, Span<Byte>)

Source:
Shake128.cs
Source:
Shake128.cs

Computes the hash of a stream using the SHAKE128 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.

destination
Span<Byte>

The buffer to fill with the hash.

Exceptions

source does not support reading.

source is null.

The platform does not support SHAKE128. Callers can use the IsSupported property to determine if the platform supports SHAKE128.

Applies to