The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This documentation is archived and is not being maintained.
AesCng::KeySize Property
Gets or sets the size, in bits, of the secret key used by the AesCng algorithm.
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. If you need to use the persisted key again, a new instance of AesCng class needs to be created.