Language

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 はサポートされません。 サポートされているアルゴリズムは、 RsaV15KeyWrap と RsaOaepKeyWrap。

keyData は nullです。

適用対象