Lines 958-965
Link Here
|
958 |
tty_printf( _(" (%d) DSA (sign only)\n"), 2 ); |
958 |
tty_printf( _(" (%d) DSA (sign only)\n"), 2 ); |
959 |
if( addmode ) |
959 |
if( addmode ) |
960 |
tty_printf( _(" (%d) ElGamal (encrypt only)\n"), 3 ); |
960 |
tty_printf( _(" (%d) ElGamal (encrypt only)\n"), 3 ); |
961 |
if (opt.expert) |
|
|
962 |
tty_printf( _(" (%d) ElGamal (sign and encrypt)\n"), 4 ); |
963 |
tty_printf( _(" (%d) RSA (sign only)\n"), 5 ); |
961 |
tty_printf( _(" (%d) RSA (sign only)\n"), 5 ); |
964 |
if (addmode) |
962 |
if (addmode) |
965 |
tty_printf( _(" (%d) RSA (encrypt only)\n"), 6 ); |
963 |
tty_printf( _(" (%d) RSA (encrypt only)\n"), 6 ); |
Lines 989-1009
Link Here
|
989 |
algo = PUBKEY_ALGO_RSA; |
987 |
algo = PUBKEY_ALGO_RSA; |
990 |
*r_usage = PUBKEY_USAGE_SIG; |
988 |
*r_usage = PUBKEY_USAGE_SIG; |
991 |
break; |
989 |
break; |
992 |
} |
|
|
993 |
else if( algo == 4 && opt.expert) |
994 |
{ |
995 |
tty_printf(_( |
996 |
"The use of this algorithm is only supported by GnuPG. You will not be\n" |
997 |
"able to use this key to communicate with PGP users. This algorithm is also\n" |
998 |
"very slow, and may not be as secure as the other choices.\n")); |
999 |
|
1000 |
if( cpr_get_answer_is_yes("keygen.algo.elg_se", |
1001 |
_("Create anyway? "))) |
1002 |
{ |
1003 |
algo = PUBKEY_ALGO_ELGAMAL; |
1004 |
*r_usage = PUBKEY_USAGE_ENC | PUBKEY_USAGE_SIG; |
1005 |
break; |
1006 |
} |
1007 |
} |
990 |
} |
1008 |
else if( algo == 3 && addmode ) { |
991 |
else if( algo == 3 && addmode ) { |
1009 |
algo = PUBKEY_ALGO_ELGAMAL_E; |
992 |
algo = PUBKEY_ALGO_ELGAMAL_E; |