* pubkey.c (pubkey_sign): Return an error if an ElGamal key is used.
authorWerner Koch <wk@gnupg.org>
Thu, 27 Nov 2003 14:47:59 +0000 (14:47 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 27 Nov 2003 14:47:59 +0000 (14:47 +0000)
commit996d61bcc6257249327faa4eba00f2f311c73035
treec431fefee114bf25888d374012e44e8137724646
parent5473ac9deb3a51b35d52e2dbdc53e4569e93f2c3
* pubkey.c (pubkey_sign): Return an error if an ElGamal key is used.

* elgamal.c (gen_k): New arg SMALL_K.
(sign): Use it here with SMALL_K set to false
(do_encrypt): and here with SMALL_K set to true.
cipher/ChangeLog
cipher/elgamal.c
cipher/pubkey.c