HKDF.Extract Metod

Definition

Överlagringar

Name Description
Extract(HashAlgorithmName, Byte[], Byte[])

Utför funktionen HKDF-Extract. Se avsnitt 2.2 i RFC5869.

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

Utför funktionen HKDF-Extract. Se avsnitt 2.2 i RFC5869.

Extract(HashAlgorithmName, Byte[], 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-Extract. Se avsnitt 2.2 i RFC5869.

public static byte[] Extract(System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, byte[] ikm, byte[]? salt = default);
static member Extract : System.Security.Cryptography.HashAlgorithmName * byte[] * byte[] -> byte[]
Public Shared Function Extract (hashAlgorithmName As HashAlgorithmName, ikm As Byte(), Optional salt As Byte() = Nothing) As Byte()

Parametrar

hashAlgorithmName
HashAlgorithmName

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

ikm
Byte[]

Indatanyckelmaterialet.

salt
Byte[]

Det valfria saltvärdet (ett slumpmässigt värde som inte är hemligt). Om den inte anges är den som standard en bytematris med samma längd som utdata från den angivna hash-algoritmen.

Returer

Byte[]

Pseudorandomnyckeln (prk).

Gäller för

Extract(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<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-Extract. Se avsnitt 2.2 i RFC5869.

public:
 static int Extract(System::Security::Cryptography::HashAlgorithmName hashAlgorithmName, ReadOnlySpan<System::Byte> ikm, ReadOnlySpan<System::Byte> salt, Span<System::Byte> prk);
public static int Extract(System.Security.Cryptography.HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, ReadOnlySpan<byte> salt, Span<byte> prk);
static member Extract : System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> int
Public Shared Function Extract (hashAlgorithmName As HashAlgorithmName, ikm As ReadOnlySpan(Of Byte), salt As ReadOnlySpan(Of Byte), prk As Span(Of Byte)) As Integer

Parametrar

hashAlgorithmName
HashAlgorithmName

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

ikm
ReadOnlySpan<Byte>

Indatanyckelmaterialet.

salt
ReadOnlySpan<Byte>

Saltvärdet (ett slumpmässigt värde som inte är hemligt).

prk
Span<Byte>

Målbufferten för att ta emot pseudorandomnyckeln (prk).

Returer

Antalet byte som skrivits till bufferten prk .

Gäller för