go-crypto
go-crypto copied to clipboard
Fix session key length generation
If AEAD is in use, we should generate a session key of the length of the cipher suite. This triggers when a key has a different AEAD preference than the cipher.
We should add the fix to the v2 API as well.
- [x] Fix session key length generation in V2 API