ECDsaCng.LegalKeySizes 属性
定义
public:
virtual property cli::array <System::Security::Cryptography::KeySizes ^> ^ LegalKeySizes { cli::array <System::Security::Cryptography::KeySizes ^> ^ get(); };
public override System.Security.Cryptography.KeySizes[] LegalKeySizes { get; }
member this.LegalKeySizes : System.Security.Cryptography.KeySizes[]
Public Overrides ReadOnly Property LegalKeySizes As KeySizes()
属性值
- KeySizes[]
一个数组,该数组包含属性 setter 支持的密钥大小 KeySize 。An array that contains the key sizes supported by the KeySize property setter.
注解
在椭圆曲线加密 (ECC) 密钥大小不是密钥生成过程中的唯一输入,它派生自特定椭圆曲线的曲线参数。In Elliptic Curve Cryptography (ECC) the key size is not the only input into the key generation process, it is derived from the curve parameters for a specific elliptic curve. 此属性仅报告三个合法密钥大小:256、384和521位。This property reports only three legal key sizes: 256, 384, and 521 bits. 当密钥大小仅用作密钥生成的基础时,受支持的大小将映射到命名曲线 secp256r1 (称为 NIST P-256) ,secp384r1 (又称 NIST P-384) ,secp521r1 (称为 NIST P-521) 。When the key size is used alone as a basis for key generation, the supported sizes map to the named curves secp256r1 (aka NIST P-256), secp384r1 (aka NIST P-384), and secp521r1 (aka NIST P-521).
在 Windows 10 上执行时,此类支持许多其他命名曲线,但不会在此属性中反映出来。When executed on Windows 10, this class supports many additional named curves, but that is not reflected in this property.