ProtonMail / go-crypto

Fork of go/x/crypto, providing an up-to-date OpenPGP implementation
https://pkg.go.dev/github.com/ProtonMail/go-crypto
BSD 3-Clause "New" or "Revised" License
328 stars 99 forks source link

Fix session key length generation #198

Closed wussler closed 2 months ago

wussler commented 6 months ago

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.

lubux commented 5 months ago

We should add the fix to the v2 API as well.