InMemorySymmetricSecurityKey.GenerateDerivedKey メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した暗号アルゴリズムと現在のキーのパラメーターを使用して、派生キーを生成します。
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。
- derivedKeyLength
- Int32
派生キーのサイズ。
- offset
- Int32
派生キーがこのメソッドから返されるバイト配列内にある位置。
返品
派生キーを含む Byte の配列。
例外
algorithm はサポートされません。 サポートされているアルゴリズムは Psha1KeyDerivation。
注釈
暗号化アルゴリズムとして P-SHA1 を指定するには、 Psha1KeyDerivation フィールドを使用します。
SHA-1 の競合の問題により、Microsoft では SHA-256 以上に基づくセキュリティ モデルをお勧めします。