Aes.LegalKeySizes Property
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 the key sizes, in bits, that are supported by the symmetric algorithm.
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()
An array that contains the key sizes supported by the algorithm.
For AES, the legal key sizes are 128, 192, and 256 bits.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.3, 1.4, 1.6 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: