* rsa.c (generate): New arg USE_E to request a specific public
authorWerner Koch <wk@gnupg.org>
Thu, 23 Jan 2003 13:04:43 +0000 (13:04 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 23 Jan 2003 13:04:43 +0000 (13:04 +0000)
commit43a2fca7087319e9befc5fd3c217196d758b4603
tree903c55661ec5a46101d5ce2af46d2909074ea076
parent731f6e9b611fd2d82704495befe3f3e27d96e288
* rsa.c (generate): New arg USE_E to request a specific public
exponent.
(_gcry_rsa_generate): Ditto.
* elgamal.c (_gcry_elg_generate): Must add an dummy argument
instead of USE_E.
* dsa.c (_gcry_dsa_generate): Ditto.
* pubkey.c (dummy_generate): Ditto.
(pubkey_generate): Add USE_E arg and pass it down.
(gcry_pk_genkey): Detect "rsa-use-e" parameter and pass it to generate.

* pubkey.c (sexp_to_enc): New arg RET_MODERN.
(gcry_pk_decrypt): Make use of it to return a real S-expression.
Return better error codes.
(gcry_pk_verify): Return better error codes.
cipher/ChangeLog
cipher/dsa.c
cipher/dsa.h
cipher/dynload.c
cipher/dynload.h
cipher/elgamal.c
cipher/elgamal.h
cipher/pubkey.c
cipher/rsa.c
cipher/rsa.h