Share via


HKDF.DeriveKey Yöntem

Tanım

Aşırı Yüklemeler

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

Anahtar türetme HKDF Genişletme ve Ayıklama işlevlerini gerçekleştirir.

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

Anahtar türetme HKDF Genişletme ve Ayıklama işlevlerini gerçekleştirir.

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

Kaynak:
HKDF.cs
Kaynak:
HKDF.cs
Kaynak:
HKDF.cs

Anahtar türetme HKDF Genişletme ve Ayıklama işlevlerini gerçekleştirir.

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

Parametreler

hashAlgorithmName
HashAlgorithmName

HMAC işlemleri için kullanılan karma algoritması.

ikm
Byte[]

Giriş anahtarlama malzemesi.

outputLength
Int32

Çıkış anahtarlama malzemesinin uzunluğu.

salt
Byte[]

İsteğe bağlı tuz değeri (gizli olmayan rastgele bir değer). Sağlanmazsa, varsayılan olarak belirtilen karma algoritmasının çıkışıyla aynı uzunlukta bir bayt dizisine ayarlanır.

info
Byte[]

İsteğe bağlı bağlam ve uygulamaya özgü bilgiler.

Döndürülenler

Byte[]

Çıkış anahtarlama malzemesi.

Özel durumlar

ikmşeklindedir null.

outputLength 1'den küçüktür.

Şunlara uygulanır

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

Kaynak:
HKDF.cs
Kaynak:
HKDF.cs
Kaynak:
HKDF.cs

Anahtar türetme HKDF Genişletme ve Ayıklama işlevlerini gerçekleştirir.

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

Parametreler

hashAlgorithmName
HashAlgorithmName

HMAC işlemleri için kullanılan karma algoritması.

ikm
ReadOnlySpan<Byte>

Giriş anahtarlama malzemesi.

output
Span<Byte>

Çıkış anahtarlama malzemesini temsil eden çıkış arabelleği.

salt
ReadOnlySpan<Byte>

Tuz değeri (gizli olmayan rastgele bir değer).

info
ReadOnlySpan<Byte>

Bağlama ve uygulamaya özgü bilgiler (boş bir aralık olabilir).

Özel durumlar

ikm boş veya izin verilen uzunluk üst sınırından büyük.

Şunlara uygulanır