AesCng 생성자

정의

AesCng 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
AesCng()

임시 키를 사용하여 클래스의 AesCng 새 인스턴스를 초기화합니다.

AesCng(CngKey)

지정된 클래스를 사용하여 클래스의 AesCng 새 인스턴스를 초기화합니다 CngKey.

AesCng(String)

기존 지속형 AES 키를 나타내는 지정된 키 이름을 사용하여 클래스의 AesCng 새 인스턴스를 초기화합니다.

AesCng(String, CngProvider)

기존 지속형 AES 키와 지정된 KSP(키 스토리지 공급자)를 나타내는 지정된 키 이름을 사용하여 클래스의 새 인스턴스 AesCng 를 초기화합니다.

AesCng(String, CngProvider, CngKeyOpenOptions)

기존 지속형 AES 키, 지정된 KSP(키 스토리지 공급자) 및 키 열기 옵션을 나타내는 지정된 키 이름을 사용하여 클래스의 새 인스턴스 AesCng 를 초기화합니다.

AesCng()

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

임시 키를 사용하여 클래스의 AesCng 새 인스턴스를 초기화합니다.

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

적용 대상

AesCng(CngKey)

Source:
Cng.NotSupported.cs
Source:
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(Cryptography Next Generation)는 이 시스템에서 지원되지 않습니다.

적용 대상

AesCng(String)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
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(Cryptography Next Generation)는 이 시스템에서 지원되지 않습니다.

다른 모든 오류입니다.

설명

이 생성자는 기본 CngKeyOpenOptions 값인 NoneMicrosoftSoftwareKeyStorageProvider KSP(키 스토리지 공급자)를 사용하여 키를 엽니다.

추가 정보

적용 대상

AesCng(String, CngProvider)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
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(Cryptography Next Generation)는 이 시스템에서 지원되지 않습니다.

다른 모든 오류입니다.

설명

기본값 CngKeyOpenOptionsNone 은 키를 여는 데 사용됩니다.

추가 정보

적용 대상

AesCng(String, CngProvider, CngKeyOpenOptions)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

기존 지속형 AES 키, 지정된 KSP(키 스토리지 공급자) 및 키 열기 옵션을 나타내는 지정된 키 이름을 사용하여 클래스의 새 인스턴스 AesCng 를 초기화합니다.

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(Cryptography Next Generation)는 이 시스템에서 지원되지 않습니다.

다른 모든 오류입니다.

추가 정보

적용 대상