mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
Allow decryption using type 20 key.
This commit is contained in:
parent
7d67e4a497
commit
a45ad0eba1
@ -1,3 +1,8 @@
|
|||||||
|
2007-12-11 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* pubkey.c (check_pubkey_algo2): Hack to allow decryption using an
|
||||||
|
type 20 Elgamal key.
|
||||||
|
|
||||||
2007-11-29 David Shaw <dshaw@jabberwocky.com>
|
2007-11-29 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* camellia-glue.c (camellia_get_info), cipher.c
|
* camellia-glue.c (camellia_get_info), cipher.c
|
||||||
|
@ -272,6 +272,12 @@ check_pubkey_algo2( int algo, unsigned use )
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* Map type 20 Elgamal algorithm to type 16 if it is used for
|
||||||
|
decryption. This allows to use legacy type 20 Elgamal keys for
|
||||||
|
decryption. */
|
||||||
|
if (algo == PUBKEY_ALGO_ELGAMAL && use == PUBKEY_USAGE_ENC)
|
||||||
|
algo = PUBKEY_ALGO_ELGAMAL_E;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
for(i=0; pubkey_table[i].name; i++ )
|
for(i=0; pubkey_table[i].name; i++ )
|
||||||
if( pubkey_table[i].algo == algo ) {
|
if( pubkey_table[i].algo == algo ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user