DSACryptoServiceProvider.LegalKeySizes 属性

定义

获取非对称算法支持的密钥大小。Gets the key sizes that are supported by the asymmetric 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()

属性值

不对称算法只支持与此数组中的项匹配的密钥大小。Only key sizes that match an entry in this array are supported by the asymmetric algorithm.

注解

只有此数组中表示的值对属性KeySize有效。Only values represented in this array are valid for the property KeySize.

此算法支持从512位到1024位的密钥长度(以64位为增量)。This algorithm supports key lengths from 512 bits to 1024 bits in increments of 64 bits.

适用于

另请参阅