libgcrypt/cipher (ChangeLog cipher.c md.c pubkey.c)

cvs user werner cvs@cvs.gnupg.org
Fri, 17 Jan 2003 17:42:23 +0100


    Date: Friday, January 17, 2003 @ 17:42:23
  Author: werner
    Path: /cvs/gnupg/libgcrypt/cipher

Modified: ChangeLog cipher.c md.c pubkey.c

* cipher.c (gcry_cipher_encrypt): Reworked so that the output will
never contain the plaintext even if the caller did not checked the
return value.

* md.c (gcry_md_get_algo): Changed error code to GCRYERR_GENERAL
because we don't have an invalid md algo but no algorithm enabled.

* pubkey.c (gcry_pk_genkey): Changed error code for bounds check
of table parameters to GCRYERR_INTERNAL.

* md.c (gcry_md_open): Partly reverted Timo's change from
2002-10-10 by removing the check for the algorithm.  An algorithm
of 0 is allowed and anyway we should not double check it or check
it using a different function.  Also fixed the flags check.

* pubkey.c (gcry_pk_encrypt): Make sure that R_CIPH points to NULL
on error.
(gcry_pk_decrypt): Ditto for R_PLAIN.
(gcry_pk_sign): Ditto for R_SIG.
(gcry_pk_genkey): Ditto for R_KEY.


-----------+
 ChangeLog |   31 ++++++++++++++++++++++++++++++-
 cipher.c  |   53 +++++++++++++++++++++++++++++++----------------------
 md.c      |   29 +++++++++++++++--------------
 pubkey.c  |   11 ++++++++---
 4 files changed, 84 insertions(+), 40 deletions(-)