mo libgcrypt/cipher (dsa.c elgamal.c rsa.c)
cvs user mo
cvs@cvs.gnupg.org
Thu, 18 Sep 2003 00:15:28 +0200
Date: Thursday, September 18, 2003 @ 00:15:28
Author: mo
Path: /cvs/gnupg/libgcrypt/cipher
Tag: mo
Modified: dsa.c elgamal.c rsa.c
2003-09-18 Moritz Schulte <mo@g10code.com>
* elgamal.c (ELG_public_key, ELG_secret_key): Removed types.
(key_public, key_secret, data_encrypted, data_signed): New types.
(GCRY_AC_ALGORITHM, GCRY_AC_ALIASES): Define symbols.
(GCRY_AC_SPEC_KEY_PUBLIC, GCRY_AC_SPEC_KEY_SECRET,
GCRY_AC_SPEC_DATA_SIGNED): Use macros.
(test_keys): Renamed to ...
(keys_test): ... this, changed interface, changed callers.
(check_secret_key): Renamed to ...
(key_secret_check): ... this, changed interface.
(_gcry_elg_generate, gcry_elg_check_secret_key, _gcry_elg_encrypt,
_gcry_elg_decrypt, _gcry_elg_sign, _gcry_elg_verify,
_gcry_elg_get_nbits): Removed functions.
(encrypt, verify, sign, get_nbits, get_grip): New functions.
(decrypt): Renamed to ...
(do_decrypt): ... this, changed interface, changed callers.
(sign): Renamed to ...
(do_sign): ... this, changed interface, changed callers.
(do_verify): Changed interface, changed callers.
(_gcry_register_pk_elg_progress): Removed function.
(progress): Removed function, new macro of the same name.
(GCRY_AC_INTERFACE_ENCRYPTION, GCRY_AC_INTERFACE_SIGNING): Defined
symbols.
Include "gcrypt-ac-glue.h".
* dsa.c (DSA_public_key, RSA_secret_key): Removed types.
(GCRY_AC_ALGORITHM, GCRY_AC_ALIASES): Define symbols.
(key_public, key_secret, data_signed): New types.
(GCRY_AC_SPEC_KEY_PUBLIC, GCRY_AC_SPEC_KEY_SECRET,
GCRY_AC_SPEC_DATA_SIGNED): Use macros.
(test_keys): Renamed to ...
(keys_test): ... this, changed interface, changed callers.
(check_secret_key): Renamed to ...
(key_secret_check): ... this, changed interface.
(_gcry_dsa_generate, gcry_dsa_check_secret_key, _gcry_dsa_sign,
_gcry_dsa_verify, _gcry_dsa_get_nbits): Removed functions.
(_gcry_register_pk_dsa_progress): Removed function.
(progress): Removed function, new macro of the same name.
(sign): Renamed to ...
(do_sign): ... this, changed interface, changed callers.
(verify): Renamed to ...
(do_verify): ... this, changed interface, changed callers.
(verify, sign, get_nbits, get_grip): New functions.
(generate): Changed interface.
(GCRY_AC_INTERFACE_SIGNING): Define symbol.
Include "gcrypt-ac-glue.h".
* rsa.c (RSA_public_key, RSA_secret_key): Removed types.
(GCRY_AC_ALGORITHM, GCRY_AC_ALIASES): Define symbols.
(key_public, key_secret, data_encrypted, data_signed): New types.
(GCRY_AC_SPEC_KEY_PUBLIC, GCRY_AC_SPEC_KEY_SECRET,
GCRY_AC_SPEC_DATA_ENCRYPTED, GCRY_AC_SPEC_DATA_SIGNED): Use
macros.
(test_keys): Renamed to ...
(keys_test): ... this, changed interface, changed callers.
(check_secret_key): Renamed to ...
(key_secret_check): ... this, changed interface.
(_gcry_rsa_generate, gcry_rsa_check_secret_key, _gcry_rsa_encrypt,
_gcry_rsa_decrypt, _gcry_rsa_sign, _gcry_rsa_verify,
_gcry_rsa_get_nbits): Removed functions.
(_gcry_rsa_blind, _gcry_rsa_unblind): Renamed to ...
(blind, unblind): ... this, change callers.
(get_nbits, get_grip): New functions.
(generate): Changed interface.
(GCRY_AC_INTERFACE_ENCRYPTION, GCRY_AC_INTERFACE_SIGNING): Define
symbols.
Include "gcrypt-ac-glue.h".
(_gcry_rsa_sign, _gcry_rsa_verify, _gcry_rsa_encrypt,
_gcry_rsa_decrypt): Renamed to ...
(sign, verify, encrypt, decrypt): ... this, changed interfaces.
-----------+
dsa.c | 741 +++++++++++++++++++++---------------------
elgamal.c | 1037 +++++++++++++++++++++++++++++-------------------------------
rsa.c | 880 ++++++++++++++++++++++++--------------------------
3 files changed, 1298 insertions(+), 1360 deletions(-)