libgcrypt/src (5 files)

cvs user werner cvs@cvs.gnupg.org
Wed, 15 Jan 2003 15:01:59 +0100


    Date: Wednesday, January 15, 2003 @ 15:01:59
  Author: werner
    Path: /cvs/gnupg/libgcrypt/src

Modified: ChangeLog gcrypt.h global.c sexp.c testapi.c

* basic.c (verify_one_signature,check_pubkey_sign)
(check_pubkey): New.
(main): Check public key functions. Add a --debug option.

* sexp.c (gcry_sexp_length): Fixed.  This was seriously broken.

* pubkey.c (sexp_data_to_mpi): New.  This handles pkcs1 padding.
(gcry_pk_sign, gcry_pk_verify): Use it here.
(gcry_pk_encrypt): And here.
(pubkey_verify): Add debug code.
(sexp_to_enc): Handle flags in the input and return the pkcs1 flag
in a new parameter.
(gcry_pk_decrypt): Prepare for future pkcs1 handling.


-----------+
 ChangeLog |    8 ++++++++
 gcrypt.h  |    5 +++--
 global.c  |    1 +
 sexp.c    |    9 ++++-----
 testapi.c |    1 -
 5 files changed, 16 insertions(+), 8 deletions(-)