-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
dotnet/dotnet-api-docs
#4745Labels
area-System.SecuritydocumentationDocumentation bug or enhancement, does not impact product or test codeDocumentation bug or enhancement, does not impact product or test code
Milestone
Description
In AesGcm.cs the properties NonceByteSizes and TagByteSizes represents the size in Byte.
Lines 11 to 13 in 4f9ae42
| private const int NonceSize = 12; | |
| public static KeySizes NonceByteSizes { get; } = new KeySizes(NonceSize, NonceSize, 1); | |
| public static KeySizes TagByteSizes { get; } = new KeySizes(12, 16, 1); |
But the used type KeySizes represent valid key sizes in Bit.
<summary>Specifies the maximum key size in bits.</summary>
<value>The maximum key size in bits.</value>In the namespace System.Security.Cryptography properties like "Size" vary between amount of bit and bytes. In this case the documentation is not consistent with the name of the property, ByteSizes to Specifies the maximum key size in bits.
I hope this description meets your quality standards for new issues.
Metadata
Metadata
Assignees
Labels
area-System.SecuritydocumentationDocumentation bug or enhancement, does not impact product or test codeDocumentation bug or enhancement, does not impact product or test code