AesCng.KeySize Propriedade
Definição
public:
virtual property int KeySize { int get(); void set(int value); };
public override int KeySize { get; set; }
member this.KeySize : int with get, set
Public Overrides Property KeySize As Integer
Valor da propriedade
O tamanho, em bits, da chave secreta usada pelo AesCng algoritmo.The size, in bits, of the secret key used by the AesCng algorithm.
Comentários
Para o AES, os tamanhos de chave legal são 128, 192 e 256 bits.For AES, the legal key sizes are 128, 192, and 256 bits.
Se você criou o AesCng objeto usando uma chave persistente existente e definiu o valor da KeySize propriedade, a chave persistente não será mais usada e uma chave efêmera será usada em seu lugar.If you've created the AesCng object using an existing persisted key and you set the value of the KeySize property, the persisted key will no longer be used and an ephemeral key will be used instead. Se você precisar usar a chave persistida novamente, uma nova instância da AesCng classe precisará ser criada.If you need to use the persisted key again, a new instance of AesCng class needs to be created.