HKDF.Extract 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
Extract(HashAlgorithmName, Byte[], Byte[]) |
Performs the HKDF-Extract function. See section 2.2 of RFC5869. |
Extract(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>) |
Performs the HKDF-Extract function. See section 2.2 of RFC5869. |
Extract(HashAlgorithmName, Byte[], Byte[])
- Source:
- HKDF.cs
- Source:
- HKDF.cs
- Source:
- HKDF.cs
Performs the HKDF-Extract function. See section 2.2 of 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()
Parameters
- hashAlgorithmName
- HashAlgorithmName
The hash algorithm used for HMAC operations.
- ikm
- Byte[]
The input keying material.
- salt
- Byte[]
The optional salt value (a non-secret random value). If not provided it defaults to a byte array of the same length as the output of the specified hash algorithm.
Returns
The pseudorandom key (prk).
Applies to
Extract(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>)
- Source:
- HKDF.cs
- Source:
- HKDF.cs
- Source:
- HKDF.cs
Performs the HKDF-Extract function. See section 2.2 of 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
Parameters
- hashAlgorithmName
- HashAlgorithmName
The hash algorithm used for HMAC operations.
- ikm
- ReadOnlySpan<Byte>
The input keying material.
- salt
- ReadOnlySpan<Byte>
The salt value (a non-secret random value).
Returns
The number of bytes written to the prk
buffer.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om