LegalKeySizes Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the key sizes, in bits, that are supported by the symmetric algorithm.

Namespace:  System.Security.Cryptography
Assembly:  System.Security (in System.Security.dll)

public virtual KeySizes[] LegalKeySizes { get; }

Property Value

Type: array<System.Security.Cryptography..::..KeySizes>[]()[][]
An array that contains the key sizes supported by the algorithm.

The symmetric algorithm supports only key sizes that match an entry in this array.

Show: