Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion xml/System.Security.Cryptography/AesCng.xml
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
## Remarks
For AES, the legal key sizes are 128, 192, and 256 bits.

If you've created the <xref:System.Security.Cryptography.AesCng> object using an existing persisted key and you set the value of the <xref:System.Security.Cryptography.AesCng.KeySize%2A> 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 <xref:System.Security.Cryptography.AesCng> class needs to be created.

]]></format>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@
<format type="text/markdown"><![CDATA[

## Remarks
The minimum size of the key is 128 bits, and the maximum size is 256 bits.
For AES, the legal key sizes are 128, 192, and 256 bits.

Changing the `KeySize` value resets the key and generates a new random key. This happens whenever the `KeySize` property setter is invoked (including when it's assigned the same value).

Expand Down