ECDsaOpenSsl 构造函数

定义

重载

ECDsaOpenSsl()

初始化 ECDsaOpenSsl 类的新实例。

ECDsaOpenSsl(Int32)

使用指定的目标密钥大小初始化 ECDsaOpenSsl 类的新实例。

ECDsaOpenSsl(IntPtr)

从表示为 EC_KEY*的现有 ECDsaOpenSsl OpenSSL 键初始化 类的新实例。

ECDsaOpenSsl(ECCurve)

初始化 ECDsaOpenSsl 类的新实例,并在指定的曲线上生成新的密钥。

ECDsaOpenSsl(SafeEvpPKeyHandle)

从表示为 EVP_PKEY*的现有 ECDsaOpenSsl OpenSSL 键初始化 类的新实例。

ECDsaOpenSsl()

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

初始化 ECDsaOpenSsl 类的新实例。

public:
 ECDsaOpenSsl();
public ECDsaOpenSsl ();
[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 ECDsaOpenSsl ();
Public Sub New ()
属性

注解

此构造函数不会立即生成新的公钥/私钥对。 此构造函数将 KeySize 属性设置为 521,当需要键时,保存的大小用于标识目标曲线。 如果通过 ImportParameters 方法或其他密钥导入方法加载密钥,则此构造函数中的密钥大小没有任何意义。

另请参阅

适用于

ECDsaOpenSsl(Int32)

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

使用指定的目标密钥大小初始化 ECDsaOpenSsl 类的新实例。

public:
 ECDsaOpenSsl(int keySize);
public ECDsaOpenSsl (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 ECDsaOpenSsl (int keySize);
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (keySize As Integer)

参数

keySize
Int32

密钥大小。 有效密钥大小是 256、384 和 521 位。

属性

例外

keySize 指定了无效的长度。

注解

此构造函数不会立即生成新的公钥/私钥对。 此构造函数将 KeySize 属性设置为提供的值,并且当需要键时,保存的大小用于标识目标曲线。 如果通过 ImportParameters 方法或其他密钥导入方法加载密钥,则此构造函数中的密钥大小没有任何意义。

另请参阅

适用于

ECDsaOpenSsl(IntPtr)

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

从表示为 EC_KEY*的现有 ECDsaOpenSsl OpenSSL 键初始化 类的新实例。

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

参数

handle
IntPtr

nativeint

用作键的 OpenSSL EC_KEY* 值。

属性

例外

handleZero

handle 不是有效的 EC_KEY*

注解

重要

OpenSSL 支持在同一进程中加载多个库版本。 在调用此构造函数之前,验证指针值来自此类使用的相同版本的 OpenSSL,有关详细信息,请参阅 OpenSslVersion

另请参阅

适用于

ECDsaOpenSsl(ECCurve)

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

初始化 ECDsaOpenSsl 类的新实例,并在指定的曲线上生成新的密钥。

public:
 ECDsaOpenSsl(System::Security::Cryptography::ECCurve curve);
public ECDsaOpenSsl (System.Security.Cryptography.ECCurve curve);
[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 ECDsaOpenSsl (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (curve As ECCurve)

参数

curve
ECCurve

用于生成临时公钥/私钥对的曲线。

属性

例外

curve 不进行验证。

curvenull

另请参阅

适用于

ECDsaOpenSsl(SafeEvpPKeyHandle)

Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs
Source:
ECDsaOpenSsl.cs

从表示为 EVP_PKEY*的现有 ECDsaOpenSsl OpenSSL 键初始化 类的新实例。

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

参数

pkeyHandle
SafeEvpPKeyHandle

用作键的 OpenSSL EVP_PKEY* 值,表示为 SafeEvpPKeyHandle

属性

例外

pkeyHandle 表示无效的句柄。

pkeyHandlenull

pkeyHandle 不表示椭圆曲线 (EC) 密钥。

注解

重要

OpenSSL 支持在同一进程中加载多个库版本。 在调用此构造函数之前,请验证指针值来自此类使用的相同版本的 OpenSSL。 有关详细信息,请参阅 OpenSslVersion

另请参阅

适用于