Why does SecurityAlgorithms.Aes256CbcHmacSha512 use a 32-byte hmac key? #3065
Unanswered
russellfoster
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Curious to know why the hmac key is truncated to 32 bytes here:
azure-activedirectory-identitymodel-extensions-for-dotnet/src/Microsoft.IdentityModel.Tokens/Encryption/AuthenticatedEncryptionProvider.cs
Line 363 in 72c5ecd
The recommendation is to use a 128 byte key:
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.hmacsha512.-ctor?view=net-9.0
Beta Was this translation helpful? Give feedback.
All reactions