Open filipnavara opened 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.
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.