ProtonMail / gopenpgp

A high-level OpenPGP library
https://gopenpgp.org
MIT License
1.01k stars 111 forks source link

New function to quick check if a session key can decrypt a encrypted data packet #249

Closed lubux closed 10 months ago

lubux commented 10 months ago

This pull request adds a new function QuickCheckDecrypt to the helper package. The function allows to check with high probability if a session key can decrypt a data packet given its 24 byte prefix. It only works for SEIPDv1 data packets that use AES as a cipher.