RSAOpenSsl 생성자

정의

오버로드

Name Description
RSAOpenSsl()

임의의 2048비트 키 쌍을 RSAOpenSsl 사용하여 클래스의 새 인스턴스를 초기화합니다.

RSAOpenSsl(Int32)

지정된 크기의 임의 RSAOpenSsl 로 생성된 키를 사용하여 클래스의 새 인스턴스를 초기화합니다.

RSAOpenSsl(IntPtr)

로 표시된 기존 OpenSSL 키에서 클래스의 RSAOpenSsl 새 인스턴스를 RSA*초기화합니다.

RSAOpenSsl(RSAParameters)

지정된 키 매개 변수를 사용하여 클래스의 RSAOpenSsl 새 인스턴스를 초기화합니다.

RSAOpenSsl(SafeEvpPKeyHandle)

로 표시된 기존 OpenSSL 키에서 클래스의 RSAOpenSsl 새 인스턴스를 EVP_PKEY*초기화합니다.

RSAOpenSsl()

Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs

임의의 2048비트 키 쌍을 RSAOpenSsl 사용하여 클래스의 새 인스턴스를 초기화합니다.

public:
 RSAOpenSsl();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public RSAOpenSsl();
public RSAOpenSsl();
Public Sub New ()
특성

설명

이 생성자는 새 퍼블릭/프라이빗 키페어를 즉시 생성하지 않습니다. 이 생성자는 속성을 2048로 설정하고 KeySize 키가 필요한 경우 속성 값을 사용하여 생성됩니다. 메서드 또는 다른 키 가져오기 메서드를 ImportParameters 통해 키를 로드하는 경우 이 생성자의 키 크기는 의미가 없습니다.

적용 대상

RSAOpenSsl(Int32)

Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs

지정된 크기의 임의 RSAOpenSsl 로 생성된 키를 사용하여 클래스의 새 인스턴스를 초기화합니다.

public:
 RSAOpenSsl(int keySize);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public RSAOpenSsl(int keySize);
public RSAOpenSsl(int keySize);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.RSAOpenSsl : int -> System.Security.Cryptography.RSAOpenSsl
new System.Security.Cryptography.RSAOpenSsl : int -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (keySize As Integer)

매개 변수

keySize
Int32
특성

예외

keySize 가 잘못되었습니다.

적용 대상

RSAOpenSsl(IntPtr)

Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs

로 표시된 기존 OpenSSL 키에서 클래스의 RSAOpenSsl 새 인스턴스를 RSA*초기화합니다.

public:
 RSAOpenSsl(IntPtr handle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public RSAOpenSsl(IntPtr handle);
public RSAOpenSsl(IntPtr handle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.RSAOpenSsl : nativeint -> System.Security.Cryptography.RSAOpenSsl
new System.Security.Cryptography.RSAOpenSsl : nativeint -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (handle As IntPtr)

매개 변수

handle
IntPtr

nativeint

특성

예외

handle 유효한 RSA*아닙니다.

handle 가 잘못되었습니다.

설명

Important

OpenSSL은 동일한 프로세스 내에서 로드되는 여러 라이브러리 버전을 지원합니다. 이 생성자를 호출하기 전에 포인터 값이 이 클래스에서 사용하는 것과 동일한 버전의 OpenSSL에서 왔는지 확인합니다. 자세한 내용은 OpenSslVersion를 참조하세요.

적용 대상

RSAOpenSsl(RSAParameters)

Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs

지정된 키 매개 변수를 사용하여 클래스의 RSAOpenSsl 새 인스턴스를 초기화합니다.

public:
 RSAOpenSsl(System::Security::Cryptography::RSAParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public RSAOpenSsl(System.Security.Cryptography.RSAParameters parameters);
public RSAOpenSsl(System.Security.Cryptography.RSAParameters parameters);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSAOpenSsl
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (parameters As RSAParameters)

매개 변수

parameters
RSAParameters
특성

예외

parameters 가 유효한 RSA 키가 아닌 경우

설명

이 생성자는 기본 생성자를 사용하고 호출 ImportParameters하는 것과 같습니다.

적용 대상

RSAOpenSsl(SafeEvpPKeyHandle)

Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs
Source:
RSAOpenSsl.cs

로 표시된 기존 OpenSSL 키에서 클래스의 RSAOpenSsl 새 인스턴스를 EVP_PKEY*초기화합니다.

public:
 RSAOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public RSAOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
public RSAOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.RSAOpenSsl
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

매개 변수

pkeyHandle
SafeEvpPKeyHandle
특성

예외

pkeyHandle 은 RSA 키를 나타내지 않습니다.

pkeyHandlenull인 경우

pkeyHandle 에 따라 유효하지 IsInvalid않습니다.

설명

.NET 9 이상 버전에서 pkeyHandle 외부 수정은 이 생성자가 만드는 인스턴스에 저장된 핸들에도 영향을 줍니다.

Important

OpenSSL은 동일한 프로세스 내에서 로드되는 여러 라이브러리 버전을 지원합니다. 이 생성자를 호출하기 전에 포인터 값이 이 클래스에서 사용하는 것과 동일한 버전의 OpenSSL에서 왔는지 확인합니다. 자세한 내용은 OpenSslVersion를 참조하세요.

적용 대상