ECDsaCng.KeySize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm.
public:
virtual property int KeySize { int get(); void set(int value); };
public override int KeySize { get; set; }
member this.KeySize : int with get, set
Public Overrides Property KeySize As Integer
Property Value
The size, in bits, of the key modulus used by the asymmetric algorithm.
Exceptions
value
is not permitted by LegalKeySizes.
Remarks
Setting this property to its current value has no visible effect. Setting this property to a new legal value discards the current key, but defers creation of a new key until one is needed.
Because key sizes do not uniquely identify elliptic curves, the use of the property setter is discouraged. To generate a new key on a specific curve, use the GenerateKey method.
Applies to
See also
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示