ECDsaOpenSsl 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ECDsaOpenSsl 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| ECDsaOpenSsl() |
初始化 ECDsaOpenSsl 类的新实例。 |
| ECDsaOpenSsl(Int32) |
使用指定的目标键大小初始化类的新实例 ECDsaOpenSsl 。 |
| ECDsaOpenSsl(IntPtr) |
从表示为 < |
| ECDsaOpenSsl(ECCurve) |
初始化类的新实例 ECDsaOpenSsl ,并在指定的曲线上生成一个新键。 |
| ECDsaOpenSsl(SafeEvpPKeyHandle) |
从表示为 < |
ECDsaOpenSsl()
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
初始化 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 ECDsaOpenSsl();
Public Sub New ()
- 属性
注解
此构造函数不会立即生成新的公钥/私钥对。 此构造函数将 KeySize 属性设置为 521,当需要键时,将使用保存的大小来标识目标曲线。 如果通过 ImportParameters 方法或其他密钥导入方法加载密钥,则此构造函数中的密钥大小没有任何意义。
另请参阅
适用于
ECDsaOpenSsl(Int32)
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
使用指定的目标键大小初始化类的新实例 ECDsaOpenSsl 。
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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (keySize As Integer)
参数
- keySize
- Int32
- 属性
例外
keySize 指定无效长度。
注解
此构造函数不会立即生成新的公钥/私钥对。 此构造函数将 KeySize 属性设置为提供的值,当需要键时,保存的大小用于标识目标曲线。 如果通过 ImportParameters 方法或其他密钥导入方法加载密钥,则此构造函数中的密钥大小没有任何意义。
另请参阅
适用于
ECDsaOpenSsl(IntPtr)
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
从表示为 <
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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (handle As IntPtr)
参数
- handle
-
IntPtr
nativeint
- 属性
例外
handle 是 Zero。
handle 不是有效的 EC_KEY*。
注解
Important
OpenSSL 支持在同一进程中加载多个库版本。 在调用此构造函数之前,请验证指针值是否来自此类使用的相同版本的 OpenSSL。 有关详细信息,请参阅 OpenSslVersion。
另请参阅
适用于
ECDsaOpenSsl(ECCurve)
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
初始化类的新实例 ECDsaOpenSsl ,并在指定的曲线上生成一个新键。
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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (curve As ECCurve)
参数
- curve
- ECCurve
- 属性
例外
curve 不验证。
curve 是 null。
另请参阅
适用于
ECDsaOpenSsl(SafeEvpPKeyHandle)
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
- Source:
- ECDsaOpenSsl.cs
从表示为 <
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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)
参数
- pkeyHandle
- SafeEvpPKeyHandle
- 属性
例外
pkeyHandle 表示无效的句柄。
pkeyHandle 是 null。
pkeyHandle 不表示椭圆曲线(EC)键。
注解
在 .NET 9 及更高版本中,pkeyHandle的外部修改也会影响此构造函数创建的实例中存储的句柄。
Important
OpenSSL 支持在同一进程中加载多个库版本。 在调用此构造函数之前,请验证指针值是否来自此类使用的相同版本的 OpenSSL。 有关详细信息,请参阅 OpenSslVersion。