다음을 통해 공유


RSAOpenSsl 생성자

정의

오버로드

RSAOpenSsl()

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

RSAOpenSsl(Int32)

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

RSAOpenSsl(IntPtr)

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

RSAOpenSsl(RSAParameters)

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

RSAOpenSsl(SafeEvpPKeyHandle)

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

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 ()
특성

설명

이 생성자는 새 퍼블릭/프라이빗 키페어를 즉시 생성하지 않습니다. 이 생성자는 속성을 2048로 설정하고 KeySize , 필요한 경우 속성 값을 사용하여 키가 생성됩니다. 메서드 또는 기타 키 가져오기 메서드를 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 새 instance 초기화합니다.

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 새 instance 초기화합니다.

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 키를 나타내지 않습니다.

pkeyHandlenull입니다.

pkeyHandle 에 따라 IsInvalid이 잘못되었습니다.

설명

중요

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

적용 대상