AesManaged.LegalKeySizes 属性

定义

获取对称算法支持的密钥大小(以位为单位)。

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()

属性值

对称算法支持的密钥大小(以位为单位)。

注解

AES 的有效密钥大小为 128 位、192 位和 256 位。

适用于