AesCng コンストラクター

定義

AesCng クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
AesCng()

エフェメラル キーを使用して、 AesCng クラスの新しいインスタンスを初期化します。

AesCng(CngKey)

指定したAesCngを使用して、CngKey クラスの新しいインスタンスを初期化します。

AesCng(String)

既存の永続化された AES キーを表す、指定したキー名を使用して、 AesCng クラスの新しいインスタンスを初期化します。

AesCng(String, CngProvider)

既存の永続化された AES キーと指定したキー ストレージ プロバイダー (KSP) を表す、指定したキー名を使用して、 AesCng クラスの新しいインスタンスを初期化します。

AesCng(String, CngProvider, CngKeyOpenOptions)

指定したキー名を使用して、 AesCng クラスの新しいインスタンスを初期化します。これは、既存の永続化された AES キー、指定されたキー ストレージ プロバイダー (KSP) およびキーを開くオプションを表します。

AesCng()

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

エフェメラル キーを使用して、 AesCng クラスの新しいインスタンスを初期化します。

public:
 AesCng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng();
public AesCng();
Public Sub New ()
属性

適用対象

AesCng(CngKey)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

指定したAesCngを使用して、CngKey クラスの新しいインスタンスを初期化します。

public:
 AesCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.AesCng
Public Sub New (key As CngKey)

パラメーター

key
CngKey

現在のオブジェクトによって実行される暗号化操作への入力として使用されるキー。

属性

例外

keynullです。

key は AES キーを表しません。

-又は-

暗号化操作の実行中にエラーが発生しました。

このシステムでは、暗号化次世代 (CNG) はサポートされていません。

適用対象

AesCng(String)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

既存の永続化された AES キーを表す、指定したキー名を使用して、 AesCng クラスの新しいインスタンスを初期化します。

public:
 AesCng(System::String ^ keyName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng(string keyName);
public AesCng(string keyName);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string -> System.Security.Cryptography.AesCng
new System.Security.Cryptography.AesCng : string -> System.Security.Cryptography.AesCng
Public Sub New (keyName As String)

パラメーター

keyName
String

キーの名前。

属性

例外

keyNamenullです。

このシステムでは、暗号化次世代 (CNG) はサポートされていません。

その他すべてのエラー。

注釈

このコンストラクターは、CngKeyOpenOptionsの既定のNone値を使用し、既定のキー ストレージ プロバイダー (KSP) としてMicrosoftSoftwareKeyStorageProviderしてキーを開きます。

こちらもご覧ください

適用対象

AesCng(String, CngProvider)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

既存の永続化された AES キーと指定したキー ストレージ プロバイダー (KSP) を表す、指定したキー名を使用して、 AesCng クラスの新しいインスタンスを初期化します。

public:
 AesCng(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng(string keyName, System.Security.Cryptography.CngProvider provider);
public AesCng(string keyName, System.Security.Cryptography.CngProvider provider);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.AesCng
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.AesCng
Public Sub New (keyName As String, provider As CngProvider)

パラメーター

keyName
String

キーの名前。

provider
CngProvider

キーを含む KSP。

属性

例外

keyNamenullです。

-又は-

providernullです。

このシステムでは、暗号化次世代 (CNG) はサポートされていません。

その他すべてのエラー。

注釈

キーを開くには、CngKeyOpenOptionsの既定のNone値が使用されます。

こちらもご覧ください

適用対象

AesCng(String, CngProvider, CngKeyOpenOptions)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

指定したキー名を使用して、 AesCng クラスの新しいインスタンスを初期化します。これは、既存の永続化された AES キー、指定されたキー ストレージ プロバイダー (KSP) およびキーを開くオプションを表します。

public:
 AesCng(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider, System::Security::Cryptography::CngKeyOpenOptions openOptions);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng(string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions openOptions);
public AesCng(string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions openOptions);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> System.Security.Cryptography.AesCng
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> System.Security.Cryptography.AesCng
Public Sub New (keyName As String, provider As CngProvider, openOptions As CngKeyOpenOptions)

パラメーター

keyName
String

キーの名前。

provider
CngProvider

キーを含む KSP。

openOptions
CngKeyOpenOptions

キーを開く場所 (マシンまたはユーザー ストレージ) や UI プロンプトを抑制するかどうかなど、キーを開くオプションを指定する列挙値のビットごとの組み合わせ。

属性

例外

keyNamenullです。

-又は-

providernullです。

このシステムでは、暗号化次世代 (CNG) はサポートされていません。

その他すべてのエラー。

こちらもご覧ください

適用対象