IDEA algorithm

David Shaw dshaw@jabberwocky.com
Wed Jul 9 04:41:06 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jul 08, 2003 at 12:12:18PM -0400, David Shaw wrote:

> 1) Make a list of all preference items that exist for all recipients.
> 
>    In your case above that means (these are not in any particular order):
>       Cipher: IDEA, 3DES, CAST5
>       Digest: SHA1
>       Compression: Uncompressed, ZIP
>       Features: (none)
> 
> 2) Pick an item in the intersection (if any), by using one of the
>    recipients as the tie breaker.  If the tie breaker was your key,
>    then you'd pick IDEA (since it is your first choice).  If your tie
>    breaker was the other key, you'd pick CAST5 (since it is their
>    first choice).
> 
>    The tie breaker is currently the first key encrypted to, which any
>    --encrypt-to keys are.  If the first key encrypted to doesn't have
>    any prefs, the lowest algorithm number is used (in the case above,
>    that would be IDEA/SHA1/Uncompressed).

My error, that would be "IDEA/SHA1/ZIP", as there is a special rule in
the code to use ZIP over Uncompressed in the no-prefs case if every
key can handle it.

David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3rc1 (GNU/Linux)
Comment: Key available at http://www.jabberwocky.com/david/keys.asc

iD8DBQE/C4ER4mZch0nhy8kRAqxzAKCE2YnNcamlBDjPrJQxIRuboRYIEgCfdJyA
XFnTCukoI902cqRX9IJaPBE=
=mcB+
-----END PGP SIGNATURE-----