RSAOpenSsl 생성자

정의

오버로드

RSAOpenSsl()

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

RSAOpenSsl(Int32)

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

RSAOpenSsl(IntPtr)

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

RSAOpenSsl(RSAParameters)

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

RSAOpenSsl(SafeEvpPKeyHandle)

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

RSAOpenSsl()

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

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

public:
 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 Sub New ()
특성

설명

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

적용 대상

RSAOpenSsl(Int32)

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

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

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")]
public RSAOpenSsl (int keySize);
new System.Security.Cryptography.RSAOpenSsl : int -> System.Security.Cryptography.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")>]
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

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

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")]
public RSAOpenSsl (IntPtr handle);
new System.Security.Cryptography.RSAOpenSsl : nativeint -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.RSAOpenSsl : nativeint -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (handle As IntPtr)

매개 변수

handle
IntPtr

nativeint

키로 사용할 OpenSSL RSA* 값입니다.

특성

예외

handle 유효한 RSA*아닙니다.

handle 잘못되었습니다.

설명

중요하다

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

적용 대상

RSAOpenSsl(RSAParameters)

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

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

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")]
public RSAOpenSsl (System.Security.Cryptography.RSAParameters parameters);
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.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")>]
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

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

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")]
public RSAOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

매개 변수

pkeyHandle
SafeEvpPKeyHandle

키로 사용할 OpenSSL EVP_PKEY* 값으로, SafeEvpPKeyHandle표시됩니다.

특성

예외

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

pkeyHandle null

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

설명

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

중요하다

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

적용 대상