1hub / springburg

OpenPGP for .NET
MIT License
4 stars 0 forks source link

API: Preferred symmetric algorithms, AEAD/modification detection, automatic de/compression #7

Open filipnavara opened 3 years ago

filipnavara commented 3 years ago

PgpEncryptedMessageGenerator should automatically decide which symmetric encryption algorithm to use based on the input. In case of public key cryptography the parameters should be implied by the preferences specified in the key self-signature. This also requires taking the user id as an optional parameter since the preferences can vary based on the user id.

Similarly, AEAD/modification detection should NOT be specified by the user and the strongest supported algorithm should be used.

filipnavara commented 3 years ago

Maybe compression inside encrypted packets should also be transparent. Since we already evaluate the preferences we'll likely know what is the preferred compression algorithm too and we can apply it to the inner message. Likewise, decompression could be automatic too.