You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason for providing the NonceSizeBytes and TagSizeBytes is mainly to bring up that these have variability of implementation in the ecosystem at large; we've generally not found evidence that anyone actually ever reads them.
We intentionally don't allow retrieving the key itself from these new types, but adding an instance KeySize property seems reasonable to me.
I've removed the KeyByteSizes segment from the proposal and marked it ready-for-review. Given that every other KeySize property we have is reporting in bits, I think we should continue with that here, so I updated the sample accordingly.
Activity
bartonjs commentedon Jul 20, 2022
The reason for providing the NonceSizeBytes and TagSizeBytes is mainly to bring up that these have variability of implementation in the ecosystem at large; we've generally not found evidence that anyone actually ever reads them.
We intentionally don't allow retrieving the key itself from these new types, but adding an instance KeySize property seems reasonable to me.
sdrapkin commentedon Mar 21, 2023
Can this be added to .NET 8?
bartonjs commentedon Apr 27, 2026
I've removed the KeyByteSizes segment from the proposal and marked it ready-for-review. Given that every other KeySize property we have is reporting in bits, I think we should continue with that here, so I updated the sample accordingly.
[-][API Proposal]: AesGcm/AesCcm.KeyByteSizes, AesGcm/AesCcm.KeySize[/-][+][API Proposal]: AesGcm/AesCcm.KeySize[/+]bartonjs commentedon Jun 23, 2026
Video
sdrapkin commentedon Jun 24, 2026
It's great to see some progress (4 years later).
vcsjones commentedon Jun 24, 2026
Implemented by #129770