DSACryptoServiceProvider.LegalKeySizes Property

Definition

Gets the key sizes that are supported by the asymmetric algorithm.

C#
public override System.Security.Cryptography.KeySizes[] LegalKeySizes { get; }

Property Value

Only key sizes that match an entry in this array are supported by the asymmetric algorithm.

Remarks

Only values represented in this array are valid for the property KeySize.

This algorithm supports key lengths from 512 bits to 1024 bits in increments of 64 bits.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1
.NET Standard 2.1

See also