HKDF.Expand Metod

Definition

Överlagringar

Name Description
Expand(HashAlgorithmName, Byte[], Int32, Byte[])

Utför funktionen HKDF-Expand Se avsnitt 2.3 i RFC5869.

Expand(HashAlgorithmName, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

Utför funktionen HKDF-Expand. Se avsnitt 2.3 i RFC5869.

Expand(HashAlgorithmName, Byte[], Int32, Byte[])

Källa:
HKDF.cs
Källa:
HKDF.cs
Källa:
HKDF.cs
Källa:
HKDF.cs
Källa:
HKDF.cs

Utför funktionen HKDF-Expand Se avsnitt 2.3 i RFC5869.

public static byte[] Expand(System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, byte[] prk, int outputLength, byte[]? info = default);
static member Expand : System.Security.Cryptography.HashAlgorithmName * byte[] * int * byte[] -> byte[]
Public Shared Function Expand (hashAlgorithmName As HashAlgorithmName, prk As Byte(), outputLength As Integer, Optional info As Byte() = Nothing) As Byte()

Parametrar

hashAlgorithmName
HashAlgorithmName

Hash-algoritmen som används för HMAC-åtgärder.

prk
Byte[]

Pseudorandomnyckeln som är minst lika lång som utdatabytematrisen för den angivna hash-algoritmen (vanligtvis utdata från steget Extrahera).

outputLength
Int32

Längden på utdatanyckelmaterialet.

info
Byte[]

Den valfria kontexten och programspecifik information.

Returer

Byte[]

Utdatanyckelmaterialet.

Undantag

prkär null.

outputLength är mindre än 1.

Gäller för

Expand(HashAlgorithmName, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

Källa:
HKDF.cs
Källa:
HKDF.cs
Källa:
HKDF.cs
Källa:
HKDF.cs
Källa:
HKDF.cs

Utför funktionen HKDF-Expand. Se avsnitt 2.3 i RFC5869.

public:
 static void Expand(System::Security::Cryptography::HashAlgorithmName hashAlgorithmName, ReadOnlySpan<System::Byte> prk, Span<System::Byte> output, ReadOnlySpan<System::Byte> info);
public static void Expand(System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> prk, Span<byte> output, ReadOnlySpan<byte> info);
static member Expand : System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * Span<byte> * ReadOnlySpan<byte> -> unit
Public Shared Sub Expand (hashAlgorithmName As HashAlgorithmName, prk As ReadOnlySpan(Of Byte), output As Span(Of Byte), info As ReadOnlySpan(Of Byte))

Parametrar

hashAlgorithmName
HashAlgorithmName

Hash-algoritmen som används för HMAC-åtgärder.

prk
ReadOnlySpan<Byte>

Pseudorandomnyckeln som är minst lika lång som utdatabytematrisen för den angivna hash-algoritmen (vanligtvis utdata från steget Extrahera).

output
Span<Byte>

Målbufferten för att ta emot utdatanyckelmaterialet.

info
ReadOnlySpan<Byte>

Kontext- och programspecifik information (kan vara ett tomt intervall).

Undantag

output är tom eller större än den maximala tillåtna längden.

Gäller för