แก้ไข

แชร์ผ่าน


ECDsaCng.LegalKeySizes Property

Definition

Gets the key sizes, in bits, that are supported by the KeySize property setter.

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()

Property Value

An array that contains the key sizes supported by the KeySize property setter.

Remarks

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. This property reports only three legal key sizes: 256, 384, and 521 bits. 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).

When executed on Windows 10, this class supports many additional named curves, but that is not reflected in this property.

Applies to

See also