Share via


DSAOpenSsl 构造函数

定义

重载

DSAOpenSsl()

使用默认的密钥大小(2048 位)初始化 DSAOpenSsl 类的新实例。

DSAOpenSsl(Int32)

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

DSAOpenSsl(IntPtr)

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

DSAOpenSsl(DSAParameters)

初始化 DSAOpenSsl 类的新实例,并从现有密钥导入参数。

DSAOpenSsl(SafeEvpPKeyHandle)

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

DSAOpenSsl()

Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs

使用默认的密钥大小(2048 位)初始化 DSAOpenSsl 类的新实例。

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

注解

此构造函数不会立即生成新的 DSA 公钥/私钥对,它只是设置需要密钥时将用于生成密钥的大小。 如果通过 ImportParameters 方法或其他密钥导入方法加载密钥,则此构造函数中的密钥大小没有意义。

另请参阅

适用于

DSAOpenSsl(Int32)

Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs

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

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

参数

keySize
Int32

需要密钥时,要生成的密钥的大小。

属性

例外

此实现不支持 keySize 值。

注解

此构造函数不会立即生成新的 DSA 公钥/私钥对,它只是设置需要密钥时将用于生成密钥的大小。 如果通过 ImportParameters 方法或其他密钥导入方法加载密钥, keySize 则提供给此构造函数的 没有意义。

另请参阅

适用于

DSAOpenSsl(IntPtr)

Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs

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

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

参数

handle
IntPtr

nativeint

要用作键的 OpenSSL DSA* 值。

属性

例外

handleZero

handle 不是有效的 DSA*

注解

重要

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

另请参阅

适用于

DSAOpenSsl(DSAParameters)

Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs

初始化 DSAOpenSsl 类的新实例,并从现有密钥导入参数。

public:
 DSAOpenSsl(System::Security::Cryptography::DSAParameters parameters);
public DSAOpenSsl (System.Security.Cryptography.DSAParameters 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 DSAOpenSsl (System.Security.Cryptography.DSAParameters parameters);
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSAOpenSsl
[<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.DSAOpenSsl : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (parameters As DSAParameters)

参数

parameters
DSAParameters

要导入的密钥参数。

属性

例外

parameters 缺少必填字段。

parameters 字段的有效密钥长度不一致。

parameters 不表示有效的 DSA 密钥参数集。

另请参阅

适用于

DSAOpenSsl(SafeEvpPKeyHandle)

Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs
Source:
DSAOpenSsl.cs

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

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

参数

pkeyHandle
SafeEvpPKeyHandle

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

属性

例外

pkeyHandle 表示无效的句柄。

pkeyHandlenull

pkeyHandle 不表示 DSA 密钥。

注解

重要

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

另请参阅

适用于