mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Add tweaks for the not anymore patented IDEA algorithm.
* g10/keygen.c (keygen_set_std_prefs): Include IDEA only in PGP2 compatibility mode. * g10/misc.c (idea_cipher_warn): Remove. Also remove all callers. * common/status.h (STATUS_RSA_OR_IDEA): Remove. Do not emit this status anymore. -- To keep the number of actually used algorithms low, we want to support IDEA only in a basically read-only way (unless --pgp2 is used during key generation). It does not make sense to suggest the use of this old 64 bit blocksize algorithm. However, there is old data available where it might be helpful to have IDEA available.
This commit is contained in:
parent
14cfd45d38
commit
b4d9f8dbc8
10 changed files with 4 additions and 65 deletions
|
@ -292,8 +292,6 @@ get_it (PKT_pubkey_enc *enc, DEK *dek, PKT_public_key *sk, u32 *keyid)
|
|||
|
||||
dek->keylen = nframe - (n + 1) - 2;
|
||||
dek->algo = frame[n++];
|
||||
if (dek->algo == CIPHER_ALGO_IDEA)
|
||||
write_status (STATUS_RSA_OR_IDEA);
|
||||
err = openpgp_cipher_test_algo (dek->algo);
|
||||
if (err)
|
||||
{
|
||||
|
@ -302,8 +300,6 @@ get_it (PKT_pubkey_enc *enc, DEK *dek, PKT_public_key *sk, u32 *keyid)
|
|||
log_info (_("cipher algorithm %d%s is unknown or disabled\n"),
|
||||
dek->algo,
|
||||
dek->algo == CIPHER_ALGO_IDEA ? " (IDEA)" : "");
|
||||
if (dek->algo == CIPHER_ALGO_IDEA)
|
||||
idea_cipher_warn (0);
|
||||
}
|
||||
dek->algo = 0;
|
||||
goto leave;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue