diff options
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/g10/main.h b/g10/main.h index dbc8d8f10..21ec1f077 100644 --- a/g10/main.h +++ b/g10/main.h @@ -26,11 +26,18 @@ #include "keydb.h" /* It could be argued that the default cipher should be 3DES rather - than CAST5, and the default compression should be 0 + than AES128, and the default compression should be 0 (i.e. uncompressed) rather than 1 (zip). However, the real world issues of speed and size come into play here. */ -#define DEFAULT_CIPHER_ALGO CIPHER_ALGO_CAST5 +#if USE_AES +# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_AES +#elif USE_CAST5 +# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_CAST5 +#else +# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_3DES +#endif + #define DEFAULT_DIGEST_ALGO DIGEST_ALGO_SHA1 #define DEFAULT_COMPRESS_ALGO COMPRESS_ALGO_ZIP #define DEFAULT_S2K_DIGEST_ALGO DIGEST_ALGO_SHA1 |