Language

InMemorySymmetricSecurityKey.GenerateDerivedKey メソッド

定義

指定した暗号アルゴリズムと現在のキーのパラメーターを使用して、派生キーを生成します。

public:
 override cli::array <System::Byte> ^ GenerateDerivedKey(System::String ^ algorithm, cli::array <System::Byte> ^ label, cli::array <System::Byte> ^ nonce, int derivedKeyLength, int offset);
public override byte[] GenerateDerivedKey(string algorithm, byte[] label, byte[] nonce, int derivedKeyLength, int offset);
override this.GenerateDerivedKey : string * byte[] * byte[] * int * int -> byte[]
Public Overrides Function GenerateDerivedKey (algorithm As String, label As Byte(), nonce As Byte(), derivedKeyLength As Integer, offset As Integer) As Byte()

パラメーター

algorithm
String

派生キーの生成に使用する暗号化アルゴリズムを表す URI。

label
Byte[]

暗号化アルゴリズムのラベル パラメーターを含む Byte の配列。

nonce
Byte[]

派生キーの作成に使用される nonce を含む Byte の配列。

derivedKeyLength
Int32

派生キーのサイズ。

offset
Int32

派生キーがこのメソッドから返されるバイト配列内にある位置。

返品

Byte[]

派生キーを含む Byte の配列。

例外

algorithm はサポートされません。 サポートされているアルゴリズムは Psha1KeyDerivation。

注釈

暗号化アルゴリズムとして P-SHA1 を指定するには、 Psha1KeyDerivation フィールドを使用します。

SHA-1 の競合の問題により、Microsoft では SHA-256 以上に基づくセキュリティ モデルをお勧めします。

適用対象