Aracılığıyla paylaş


SP800108HmacCounterKdf.DeriveBytes Yöntem

Tanım

Aşırı Yüklemeler

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

Belirtilen uzunlukta bir anahtar türetir.

DeriveBytes(Byte[], HashAlgorithmName, String, String, Int32)

Belirtilen uzunlukta bir anahtar türetir.

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

Belirtilen uzunlukta bir anahtar türetir.

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

Arabelleği türetilmiş bir anahtarla doldurur.

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Int32)

Belirtilen uzunlukta bir anahtar türetir.

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Span<Byte>)

Arabelleği türetilmiş bir anahtarla doldurur.

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

Kaynak:
SP800108HmacCounterKdf.cs
Kaynak:
SP800108HmacCounterKdf.cs

Belirtilen uzunlukta bir anahtar türetir.

public:
 static cli::array <System::Byte> ^ DeriveBytes(cli::array <System::Byte> ^ key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, cli::array <System::Byte> ^ label, cli::array <System::Byte> ^ context, int derivedKeyLengthInBytes);
public static byte[] DeriveBytes (byte[] key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] label, byte[] context, int derivedKeyLengthInBytes);
static member DeriveBytes : byte[] * System.Security.Cryptography.HashAlgorithmName * byte[] * byte[] * int -> byte[]
Public Shared Function DeriveBytes (key As Byte(), hashAlgorithm As HashAlgorithmName, label As Byte(), context As Byte(), derivedKeyLengthInBytes As Integer) As Byte()

Parametreler

key
Byte[]

Anahtar türetme anahtarı.

hashAlgorithm
HashAlgorithmName

HMAC algoritması.

label
Byte[]

Türetilmiş anahtarın amacını tanımlayan etiket.

context
Byte[]

Türetilmiş anahtarla ilgili bilgileri içeren bağlam.

derivedKeyLengthInBytes
Int32

Türetilmiş anahtarın bayt cinsinden uzunluğu.

Döndürülenler

Byte[]

Türetilmiş anahtarı içeren bir dizi.

Özel durumlar

key, null değeridir.

-veya-

label, null değeridir.

-veya-

context, null değeridir.

-veya-

hashAlgorithm , olan bir Name öğesine nullsahiptir.

hashAlgorithm boş olan bir Name öğesine sahiptir.

derivedKeyLengthInBytes , türetilebilen maksimum bayt sayısından negatif veya daha büyük.

hashAlgorithm bilinen veya desteklenen bir karma algoritma değildir.

Geçerli platformun desteklenen bir HMAC uygulaması yok.

Şunlara uygulanır

DeriveBytes(Byte[], HashAlgorithmName, String, String, Int32)

Kaynak:
SP800108HmacCounterKdf.cs
Kaynak:
SP800108HmacCounterKdf.cs

Belirtilen uzunlukta bir anahtar türetir.

public:
 static cli::array <System::Byte> ^ DeriveBytes(cli::array <System::Byte> ^ key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::String ^ label, System::String ^ context, int derivedKeyLengthInBytes);
public static byte[] DeriveBytes (byte[] key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, string label, string context, int derivedKeyLengthInBytes);
static member DeriveBytes : byte[] * System.Security.Cryptography.HashAlgorithmName * string * string * int -> byte[]
Public Shared Function DeriveBytes (key As Byte(), hashAlgorithm As HashAlgorithmName, label As String, context As String, derivedKeyLengthInBytes As Integer) As Byte()

Parametreler

key
Byte[]

Anahtar türetme anahtarı.

hashAlgorithm
HashAlgorithmName

HMAC algoritması.

label
String

Türetilmiş anahtarın amacını tanımlayan etiket.

context
String

Türetilmiş anahtarla ilgili bilgileri içeren bağlam.

derivedKeyLengthInBytes
Int32

Türetilmiş anahtarın bayt cinsinden uzunluğu.

Döndürülenler

Byte[]

Türetilmiş anahtarı içeren bir dizi.

Özel durumlar

key, null değeridir.

-veya-

label, null değeridir.

-veya-

context, null değeridir.

-veya-

hashAlgorithm , olan bir Name öğesine nullsahiptir.

hashAlgorithm boş olan bir Name öğesine sahiptir.

derivedKeyLengthInBytes , türetilebilen maksimum bayt sayısından negatif veya daha büyük.

hashAlgorithm bilinen veya desteklenen bir karma algoritma değildir.

label veya context UTF-8'e dönüştürülemeyen metinler içerir.

Geçerli platformun desteklenen bir HMAC uygulaması yok.

Açıklamalar

label ve context UTF-8 kodlaması kullanılarak bayta dönüştürülür. diğer kodlamalar için, istenen kodlamayı kullanarak dönüştürmeyi gerçekleştirin ve etiketi ve bağlamı bayt dizisi olarak kabul eden bir aşırı yükleme kullanın.

Şunlara uygulanır

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

Kaynak:
SP800108HmacCounterKdf.cs
Kaynak:
SP800108HmacCounterKdf.cs

Belirtilen uzunlukta bir anahtar türetir.

public:
 static cli::array <System::Byte> ^ DeriveBytes(ReadOnlySpan<System::Byte> key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<System::Byte> label, ReadOnlySpan<System::Byte> context, int derivedKeyLengthInBytes);
public static byte[] DeriveBytes (ReadOnlySpan<byte> key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes);
static member DeriveBytes : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * ReadOnlySpan<byte> * int -> byte[]
Public Shared Function DeriveBytes (key As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, label As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), derivedKeyLengthInBytes As Integer) As Byte()

Parametreler

key
ReadOnlySpan<Byte>

Anahtar türetme anahtarı.

hashAlgorithm
HashAlgorithmName

HMAC algoritması.

label
ReadOnlySpan<Byte>

Türetilmiş anahtarın amacını tanımlayan etiket.

context
ReadOnlySpan<Byte>

Türetilmiş anahtarla ilgili bilgileri içeren bağlam.

derivedKeyLengthInBytes
Int32

Türetilmiş anahtarın bayt cinsinden uzunluğu.

Döndürülenler

Byte[]

Türetilmiş anahtarı içeren bir dizi.

Özel durumlar

hashAlgorithm , olan bir Name öğesine nullsahiptir.

hashAlgorithm boş olan bir Name öğesine sahiptir.

derivedKeyLengthInBytes , türetilebilen maksimum bayt sayısından negatif veya daha büyük.

hashAlgorithm bilinen veya desteklenen bir karma algoritma değildir.

Geçerli platformun desteklenen bir HMAC uygulaması yok.

Şunlara uygulanır

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

Kaynak:
SP800108HmacCounterKdf.cs
Kaynak:
SP800108HmacCounterKdf.cs

Arabelleği türetilmiş bir anahtarla doldurur.

public:
 static void DeriveBytes(ReadOnlySpan<System::Byte> key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<System::Byte> label, ReadOnlySpan<System::Byte> context, Span<System::Byte> destination);
public static void DeriveBytes (ReadOnlySpan<byte> key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination);
static member DeriveBytes : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> unit
Public Shared Sub DeriveBytes (key As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, label As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), destination As Span(Of Byte))

Parametreler

key
ReadOnlySpan<Byte>

Anahtar türetme anahtarı.

hashAlgorithm
HashAlgorithmName

HMAC algoritması.

label
ReadOnlySpan<Byte>

Türetilmiş anahtarın amacını tanımlayan etiket.

context
ReadOnlySpan<Byte>

Türetilmiş anahtarla ilgili bilgileri içeren bağlam.

destination
Span<Byte>

Türetilmiş anahtarı alacak arabellek.

Özel durumlar

hashAlgorithm , olan bir Name öğesine nullsahiptir.

hashAlgorithm boş olan bir Name öğesine sahiptir.

destination türetilebilen bayt sayısı üst sınırından büyüktür.

hashAlgorithm bilinen veya desteklenen bir karma algoritma değildir.

Geçerli platformun desteklenen bir HMAC uygulaması yok.

Şunlara uygulanır

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Int32)

Kaynak:
SP800108HmacCounterKdf.cs
Kaynak:
SP800108HmacCounterKdf.cs

Belirtilen uzunlukta bir anahtar türetir.

public:
 static cli::array <System::Byte> ^ DeriveBytes(ReadOnlySpan<System::Byte> key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes);
public static byte[] DeriveBytes (ReadOnlySpan<byte> key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes);
static member DeriveBytes : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<char> * ReadOnlySpan<char> * int -> byte[]
Public Shared Function DeriveBytes (key As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, label As ReadOnlySpan(Of Char), context As ReadOnlySpan(Of Char), derivedKeyLengthInBytes As Integer) As Byte()

Parametreler

key
ReadOnlySpan<Byte>

Anahtar türetme anahtarı.

hashAlgorithm
HashAlgorithmName

HMAC algoritması.

label
ReadOnlySpan<Char>

Türetilmiş anahtarın amacını tanımlayan etiket.

context
ReadOnlySpan<Char>

Türetilmiş anahtarla ilgili bilgileri içeren bağlam.

derivedKeyLengthInBytes
Int32

Türetilmiş anahtarın bayt cinsinden uzunluğu.

Döndürülenler

Byte[]

Türetilmiş anahtarı içeren bir dizi.

Özel durumlar

hashAlgorithm , olan bir Name öğesine nullsahiptir.

hashAlgorithm boş olan bir Name öğesine sahiptir.

derivedKeyLengthInBytes , türetilebilen maksimum bayt sayısından negatif veya daha büyük.

hashAlgorithm bilinen veya desteklenen bir karma algoritma değildir.

label veya context UTF-8'e dönüştürülemeyen metinler içerir.

Geçerli platformun desteklenen bir HMAC uygulaması yok.

Açıklamalar

label ve context UTF-8 kodlaması kullanılarak bayta dönüştürülür. diğer kodlamalar için, istenen kodlamayı kullanarak dönüştürmeyi gerçekleştirin ve etiketi ve bağlamı bayt dizisi olarak kabul eden bir aşırı yükleme kullanın.

Şunlara uygulanır

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Span<Byte>)

Kaynak:
SP800108HmacCounterKdf.cs
Kaynak:
SP800108HmacCounterKdf.cs

Arabelleği türetilmiş bir anahtarla doldurur.

public:
 static void DeriveBytes(ReadOnlySpan<System::Byte> key, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<System::Byte> destination);
public static void DeriveBytes (ReadOnlySpan<byte> key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination);
static member DeriveBytes : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<char> * ReadOnlySpan<char> * Span<byte> -> unit
Public Shared Sub DeriveBytes (key As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, label As ReadOnlySpan(Of Char), context As ReadOnlySpan(Of Char), destination As Span(Of Byte))

Parametreler

key
ReadOnlySpan<Byte>

Anahtar türetme anahtarı.

hashAlgorithm
HashAlgorithmName

HMAC algoritması.

label
ReadOnlySpan<Char>

Türetilmiş anahtarın amacını tanımlayan etiket.

context
ReadOnlySpan<Char>

Türetilen anahtarla ilgili bilgileri içeren bağlam.

destination
Span<Byte>

Türetilmiş anahtarı alacak arabellek.

Özel durumlar

hashAlgorithm , olan bir Name öğesine nullsahiptir.

hashAlgorithm boş olan bir Name öğesine sahiptir.

destination türetilebilen bayt sayısı üst sınırından büyüktür.

hashAlgorithm bilinen veya desteklenen bir karma algoritma değildir.

label veya context UTF-8'e dönüştürülemeyen metinler içerir.

Geçerli platformun desteklenen bir HMAC uygulaması yok.

Açıklamalar

label ve context UTF-8 kodlaması kullanılarak baytlara dönüştürülür. diğer kodlamalar için, istenen kodlamayı kullanarak dönüştürmeyi gerçekleştirin ve etiketi ve bağlamı bayt dizisi olarak kabul eden bir aşırı yükleme kullanın.

Şunlara uygulanır