Shake256.HashData 方法

定义

重载

HashData(Byte[], Int32)

使用 SHAKE256 算法计算数据的哈希。

HashData(Stream, Int32)

使用 SHAKE256 算法计算流的哈希。

HashData(Stream, Span<Byte>)

使用 SHAKE256 算法计算流的哈希。

HashData(ReadOnlySpan<Byte>, Int32)

使用 SHAKE256 算法计算数据的哈希。

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

使用 SHAKE256 算法计算数据的哈希。

HashData(Byte[], Int32)

Source:
Shake256.cs
Source:
Shake256.cs

使用 SHAKE256 算法计算数据的哈希。

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()

参数

source
Byte[]

要哈希的数据。

outputLength
Int32

要生成的哈希的大小。

返回

Byte[]

数据的哈希。

例外

outputLength 为负数。

sourcenull

平台不支持 SHAKE256。 调用方可以使用 IsSupported 属性来确定平台是否支持 SHAKE256。

适用于

HashData(Stream, Int32)

Source:
Shake256.cs
Source:
Shake256.cs

使用 SHAKE256 算法计算流的哈希。

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()

参数

source
Stream

要哈希的流。

outputLength
Int32

要生成的哈希的大小。

返回

Byte[]

数据的哈希。

例外

source 不支持读取。

outputLength 为负数。

sourcenull

平台不支持 SHAKE256。 调用方可以使用 IsSupported 属性来确定平台是否支持 SHAKE256。

适用于

HashData(Stream, Span<Byte>)

Source:
Shake256.cs
Source:
Shake256.cs

使用 SHAKE256 算法计算流的哈希。

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))

参数

source
Stream

要哈希的流。

destination
Span<Byte>

要用哈希填充的缓冲区。

例外

source 不支持读取。

sourcenull

平台不支持 SHAKE256。 调用方可以使用 IsSupported 属性来确定平台是否支持 SHAKE256。

适用于

HashData(ReadOnlySpan<Byte>, Int32)

Source:
Shake256.cs
Source:
Shake256.cs

使用 SHAKE256 算法计算数据的哈希。

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()

参数

source
ReadOnlySpan<Byte>

要哈希的数据。

outputLength
Int32

要生成的哈希的大小。

返回

Byte[]

数据的哈希。

例外

outputLength 为负数。

平台不支持 SHAKE256。 调用方可以使用 IsSupported 属性来确定平台是否支持 SHAKE256。

适用于

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

Source:
Shake256.cs
Source:
Shake256.cs

使用 SHAKE256 算法计算数据的哈希。

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))

参数

source
ReadOnlySpan<Byte>

要哈希的数据。

destination
Span<Byte>

要用哈希填充的缓冲区。

例外

平台不支持 SHAKE256。 调用方可以使用 IsSupported 属性来确定平台是否支持 SHAKE256。

适用于