Rfc2898DeriveBytes.Pbkdf2 メソッド

定義

オーバーロード

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

パスワード バイトから PBKDF2 派生キーを作成します。

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

パスワード バイトから PBKDF2 派生キーを作成します。

Pbkdf2(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Int32, HashAlgorithmName)

バッファーに PBKDF2 派生キーを入力します。

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

パスワードから PBKDF2 派生キーを作成します。

Pbkdf2(ReadOnlySpan<Char>, ReadOnlySpan<Byte>, Span<Byte>, Int32, HashAlgorithmName)

バッファーに PBKDF2 派生キーを入力します。

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

パスワードから PBKDF2 派生キーを作成します。

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

パスワード バイトから PBKDF2 派生キーを作成します。

public:
 static cli::array <System::Byte> ^ Pbkdf2(cli::array <System::Byte> ^ password, cli::array <System::Byte> ^ salt, int iterations, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, int outputLength);
public static byte[] Pbkdf2 (byte[] password, byte[] salt, int iterations, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int outputLength);
static member Pbkdf2 : byte[] * byte[] * int * System.Security.Cryptography.HashAlgorithmName * int -> byte[]
Public Shared Function Pbkdf2 (password As Byte(), salt As Byte(), iterations As Integer, hashAlgorithm As HashAlgorithmName, outputLength As Integer) As Byte()

パラメーター

password
Byte[]

キーを派生させるために使用するパスワード。

salt
Byte[]

キーを派生させるために使用するキー salt。

iterations
Int32

演算の反復処理回数。

hashAlgorithm
HashAlgorithmName

キーを派生させるために使用するハッシュ アルゴリズム。

outputLength
Int32

派生するキーのサイズ。

戻り値

Byte[]

作成された PBKDF2 派生キーを含むバイト配列。

例外

password または saltnull です。

outputLength が 0 または正の値ではありません。

- または -

iterations は正の値ではありません。

hashAlgorithmNameには空または null.

hashAlgorithm はサポートされていないハッシュ アルゴリズムです。 サポートされているアルゴリズムは SHA1、、、 SHA256SHA384、および SHA512です。

適用対象

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

パスワード バイトから PBKDF2 派生キーを作成します。

public:
 static cli::array <System::Byte> ^ Pbkdf2(ReadOnlySpan<System::Byte> password, ReadOnlySpan<System::Byte> salt, int iterations, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, int outputLength);
public static byte[] Pbkdf2 (ReadOnlySpan<byte> password, ReadOnlySpan<byte> salt, int iterations, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int outputLength);
static member Pbkdf2 : ReadOnlySpan<byte> * ReadOnlySpan<byte> * int * System.Security.Cryptography.HashAlgorithmName * int -> byte[]
Public Shared Function Pbkdf2 (password As ReadOnlySpan(Of Byte), salt As ReadOnlySpan(Of Byte), iterations As Integer, hashAlgorithm As HashAlgorithmName, outputLength As Integer) As Byte()

パラメーター

password
ReadOnlySpan<Byte>

キーを派生させるために使用するパスワード。

salt
ReadOnlySpan<Byte>

キーを派生させるために使用するキー salt。

iterations
Int32

演算の反復処理回数。

hashAlgorithm
HashAlgorithmName

キーを派生させるために使用するハッシュ アルゴリズム。

outputLength
Int32

派生するキーのサイズ。

戻り値

Byte[]

作成された PBKDF2 派生キーを含むバイト配列。

例外

outputLength が 0 または正の値ではありません。

- または -

iterations は正の値ではありません。

hashAlgorithmNameには空または null.

hashAlgorithm はサポートされていないハッシュ アルゴリズムです。 サポートされているアルゴリズムは SHA1、、、 SHA256SHA384、および SHA512です。

適用対象

Pbkdf2(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Int32, HashAlgorithmName)

バッファーに PBKDF2 派生キーを入力します。

public:
 static void Pbkdf2(ReadOnlySpan<System::Byte> password, ReadOnlySpan<System::Byte> salt, Span<System::Byte> destination, int iterations, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public static void Pbkdf2 (ReadOnlySpan<byte> password, ReadOnlySpan<byte> salt, Span<byte> destination, int iterations, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
static member Pbkdf2 : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * int * System.Security.Cryptography.HashAlgorithmName -> unit
Public Shared Sub Pbkdf2 (password As ReadOnlySpan(Of Byte), salt As ReadOnlySpan(Of Byte), destination As Span(Of Byte), iterations As Integer, hashAlgorithm As HashAlgorithmName)

パラメーター

password
ReadOnlySpan<Byte>

キーを派生させるために使用するパスワード。

salt
ReadOnlySpan<Byte>

キーを派生させるために使用するキー salt。

destination
Span<Byte>

派生キーを格納するバッファー。

iterations
Int32

演算の反復処理回数。

hashAlgorithm
HashAlgorithmName

キーを派生させるために使用するハッシュ アルゴリズム。

例外

iterations は正の値ではありません。

hashAlgorithmNameには空または null.

hashAlgorithm はサポートされていないハッシュ アルゴリズムです。 サポートされているアルゴリズムは SHA1、、、 SHA256SHA384、および SHA512です。

適用対象

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

パスワードから PBKDF2 派生キーを作成します。

public:
 static cli::array <System::Byte> ^ Pbkdf2(ReadOnlySpan<char> password, ReadOnlySpan<System::Byte> salt, int iterations, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, int outputLength);
public static byte[] Pbkdf2 (ReadOnlySpan<char> password, ReadOnlySpan<byte> salt, int iterations, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int outputLength);
static member Pbkdf2 : ReadOnlySpan<char> * ReadOnlySpan<byte> * int * System.Security.Cryptography.HashAlgorithmName * int -> byte[]
Public Shared Function Pbkdf2 (password As ReadOnlySpan(Of Char), salt As ReadOnlySpan(Of Byte), iterations As Integer, hashAlgorithm As HashAlgorithmName, outputLength As Integer) As Byte()

パラメーター

password
ReadOnlySpan<Char>

キーを派生させるために使用するパスワード。

salt
ReadOnlySpan<Byte>

キーを派生させるために使用するキー salt。

iterations
Int32

演算の反復処理回数。

hashAlgorithm
HashAlgorithmName

キーを派生させるために使用するハッシュ アルゴリズム。

outputLength
Int32

派生するキーのサイズ。

戻り値

Byte[]

擬似ランダム キー バイトが格納された長さの outputLength バイト配列。

例外

outputLength が 0 または正の値ではありません。

- または -

iterations は正の値ではありません。

hashAlgorithmNameには空または null.

hashAlgorithm はサポートされていないハッシュ アルゴリズムです。 サポートされているアルゴリズムは SHA1、、、 SHA256SHA384、および SHA512です。

password には、UTF8 に変換できないテキストが含まれています。

注釈

UTF8 password エンコードを使用してバイトに変換されます。 その他のエンコードの場合は、適切な Encoding コードを使用してパスワード文字列をバイトに変換し、使用 Pbkdf2(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32, HashAlgorithmName, Int32)します。

適用対象

Pbkdf2(ReadOnlySpan<Char>, ReadOnlySpan<Byte>, Span<Byte>, Int32, HashAlgorithmName)

バッファーに PBKDF2 派生キーを入力します。

public:
 static void Pbkdf2(ReadOnlySpan<char> password, ReadOnlySpan<System::Byte> salt, Span<System::Byte> destination, int iterations, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public static void Pbkdf2 (ReadOnlySpan<char> password, ReadOnlySpan<byte> salt, Span<byte> destination, int iterations, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
static member Pbkdf2 : ReadOnlySpan<char> * ReadOnlySpan<byte> * Span<byte> * int * System.Security.Cryptography.HashAlgorithmName -> unit
Public Shared Sub Pbkdf2 (password As ReadOnlySpan(Of Char), salt As ReadOnlySpan(Of Byte), destination As Span(Of Byte), iterations As Integer, hashAlgorithm As HashAlgorithmName)

パラメーター

password
ReadOnlySpan<Char>

キーを派生させるために使用するパスワード。

salt
ReadOnlySpan<Byte>

キーを派生させるために使用するキー salt。

destination
Span<Byte>

派生キーを格納するバッファー。

iterations
Int32

演算の反復処理回数。

hashAlgorithm
HashAlgorithmName

キーを派生させるために使用するハッシュ アルゴリズム。

例外

iterations は正の値ではありません。

hashAlgorithmNameには空または null.

hashAlgorithm はサポートされていないハッシュ アルゴリズムです。 サポートされているアルゴリズムは SHA1、、、 SHA256SHA384、および SHA512です。

password には、UTF8 に変換できないテキストが含まれています。

注釈

UTF8 password エンコードを使用してバイトに変換されます。 その他のエンコードの場合は、適切な Encoding コードを使用してパスワード文字列をバイトに変換し、使用 Pbkdf2(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Int32, HashAlgorithmName)します。

適用対象

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

パスワードから PBKDF2 派生キーを作成します。

public:
 static cli::array <System::Byte> ^ Pbkdf2(System::String ^ password, cli::array <System::Byte> ^ salt, int iterations, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, int outputLength);
public static byte[] Pbkdf2 (string password, byte[] salt, int iterations, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int outputLength);
static member Pbkdf2 : string * byte[] * int * System.Security.Cryptography.HashAlgorithmName * int -> byte[]
Public Shared Function Pbkdf2 (password As String, salt As Byte(), iterations As Integer, hashAlgorithm As HashAlgorithmName, outputLength As Integer) As Byte()

パラメーター

password
String

キーを派生させるために使用するパスワード。

salt
Byte[]

キーを派生させるために使用するキー salt。

iterations
Int32

演算の反復処理回数。

hashAlgorithm
HashAlgorithmName

キーを派生させるために使用するハッシュ アルゴリズム。

outputLength
Int32

派生するキーのサイズ。

戻り値

Byte[]

擬似ランダム キー バイトが格納された長さの outputLength バイト配列。

例外

password または saltnull です。

outputLength が 0 または正の値ではありません。

- または -

iterations は正の値ではありません。

hashAlgorithmNameには空または null.

hashAlgorithm はサポートされていないハッシュ アルゴリズムです。 サポートされているアルゴリズムは SHA1、、、 SHA256SHA384、および SHA512です。

password には、UTF8 に変換できないテキストが含まれています。

注釈

UTF8 password エンコードを使用してバイトに変換されます。 その他のエンコードの場合は、適切な Encoding コードを使用してパスワード文字列をバイトに変換し、使用 Pbkdf2(Byte[], Byte[], Int32, HashAlgorithmName, Int32)します。

適用対象