mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Allow decryption using type 20 Elgamal keys.
This commit is contained in:
parent
0e927e3941
commit
7d67e4a497
2 changed files with 15 additions and 3 deletions
|
@ -402,9 +402,16 @@ proc_pubkey_enc( CTX c, PACKET *pkt )
|
|||
}
|
||||
}
|
||||
else if( is_ELGAMAL(enc->pubkey_algo)
|
||||
|| enc->pubkey_algo == PUBKEY_ALGO_DSA
|
||||
|| is_RSA(enc->pubkey_algo) ) {
|
||||
/* FIXME: strore this all in a list and process it later */
|
||||
|| enc->pubkey_algo == PUBKEY_ALGO_DSA
|
||||
|| is_RSA(enc->pubkey_algo)
|
||||
|| enc->pubkey_algo == PUBKEY_ALGO_ELGAMAL) {
|
||||
/* Note that we also allow type 20 Elgamal keys for decryption.
|
||||
There are still a couple of those keys in active use as a
|
||||
subkey. */
|
||||
|
||||
/* FIXME: Store this all in a list and process it later so that
|
||||
we can prioritize what key to use. This gives a better user
|
||||
experience if wildcard keyids are used. */
|
||||
|
||||
if ( !c->dek && ((!enc->keyid[0] && !enc->keyid[1])
|
||||
|| opt.try_all_secrets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue