ECDsaCng 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ECDsaCng 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| ECDsaCng() |
使用随机密钥对初始化类的新实例 ECDsaCng 。 |
| ECDsaCng(Int32) |
使用指定的目标键大小初始化类的新实例 ECDsaCng 。 |
| ECDsaCng(CngKey) | |
| ECDsaCng(ECCurve) |
初始化类的新实例,该类的 ECDsaCng 公钥/私钥对在指定的曲线上生成。 |
ECDsaCng()
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
使用随机密钥对初始化类的新实例 ECDsaCng 。
public:
ECDsaCng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng();
public ECDsaCng();
Public Sub New ()
- 特性
例外
此系统上不支持下一代加密(CNG)类。
注解
此构造函数不会立即生成新的公钥/私钥对。 此构造函数将 KeySize 属性设置为 521,当需要键时,保存的大小用于标识目标曲线。 如果通过 ImportParameters 方法或其他密钥导入方法加载密钥,则此构造函数中的密钥大小没有任何意义。
另请参阅
适用于
ECDsaCng(Int32)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
使用指定的目标键大小初始化类的新实例 ECDsaCng 。
public:
ECDsaCng(int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng(int keySize);
public ECDsaCng(int keySize);
[System.Security.SecurityCritical]
public ECDsaCng(int keySize);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
Public Sub New (keySize As Integer)
参数
- keySize
- Int32
键的大小。 有效的密钥大小为 256、384 和 521 位。
- 特性
例外
此系统上不支持下一代加密(CNG)类。
keySize 指定无效长度。
注解
此构造函数不会立即生成新的公钥/私钥对。 此构造函数将 KeySize 属性设置为提供的值,当需要键时,保存的大小用于标识目标曲线。 如果通过 ImportParameters 方法或其他密钥导入方法加载密钥,则此构造函数中的密钥大小没有任何意义。
另请参阅
适用于
ECDsaCng(CngKey)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
public:
ECDsaCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng(System.Security.Cryptography.CngKey key);
public ECDsaCng(System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDsaCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
Public Sub New (key As CngKey)
参数
- key
- CngKey
将用作当前对象执行的加密操作的输入的密钥。
- 特性
例外
key 不指定椭圆曲线数字签名算法 (ECDSA) 组。
key 是 null。
此系统上不支持下一代加密(CNG)类。
适用于
ECDsaCng(ECCurve)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
初始化类的新实例,该类的 ECDsaCng 公钥/私钥对在指定的曲线上生成。
public:
ECDsaCng(System::Security::Cryptography::ECCurve curve);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng(System.Security.Cryptography.ECCurve curve);
public ECDsaCng(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaCng
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaCng
Public Sub New (curve As ECCurve)
参数
- curve
- ECCurve
用于生成公钥/私钥对的曲线。
- 特性
例外
curve 不验证。
curve 是 null。
如果不包含具有 FriendlyName 的 Oid,则为 <
注解
curve 必须验证(即,它必须返回 true)传递给 ECCurve.Validate 方法,并且必须是命名或显式质素。