* basic.c (verify_one_signature,check_pubkey_sign)
authorWerner Koch <wk@gnupg.org>
Wed, 15 Jan 2003 14:02:01 +0000 (14:02 +0000)
committerWerner Koch <wk@gnupg.org>
Wed, 15 Jan 2003 14:02:01 +0000 (14:02 +0000)
commitb72cee46eea13d6f8c9a47703693c809c2f0c65d
tree5dafc9d845fedeb45e8ffe64c7cc344af3cd7450
parent6fb130c964f71e34d6c62d0befc11c31c40075ea
* 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.
NEWS
cipher/ChangeLog
cipher/pubkey.c
libgcrypt.txt
src/ChangeLog
src/gcrypt.h
src/global.c
src/sexp.c
src/testapi.c
tests/ChangeLog
tests/basic.c