Share via


RsaSecurityKey.EncryptKey(String, Byte[]) メソッド

定義

指定したアルゴリズムを使用して、指定したキーを暗号化します。

public:
 override cli::array <System::Byte> ^ EncryptKey(System::String ^ algorithm, cli::array <System::Byte> ^ keyData);
public override byte[] EncryptKey (string algorithm, byte[] keyData);
override this.EncryptKey : string * byte[] -> byte[]
Public Overrides Function EncryptKey (algorithm As String, keyData As Byte()) As Byte()

パラメーター

algorithm
String

キーを暗号化する暗号アルゴリズム。

keyData
Byte[]

キーを格納する Byte の配列。

戻り値

Byte[]

暗号化されたキーを格納する Byte の配列。

例外

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

keyDatanullです。

適用対象