mo libgcrypt/cipher (pubkey.c)
cvs user mo
cvs@cvs.gnupg.org
Thu, 18 Sep 2003 00:13:53 +0200
Date: Thursday, September 18, 2003 @ 00:13:53
Author: mo
Path: /cvs/gnupg/libgcrypt/cipher
Tag: mo
Modified: pubkey.c
2003-09-18 Moritz Schulte <mo@g10code.com>
* pubkey.c (pk_sexp_type_t, pk_key_type_t): New enumeration list
types.
(PK_SEXP_FLAG_RAW, PK_SEXP_FLAG_PKCS1_V1_5,
PK_SEXP_FLAG_NO_BLINDING, PK_FLAG_MODERN): New symbols.
(pk_sexp_types, pk_sexp_flags): New variable.
(_pk_wrap, gcry_ac_data_get_index, gcry_ac_name_to_id)
(gcry_ac_open, gcry_ac_data_new, gcry_ac_data_set)
(gcry_ac_key_init, gcry_ac_id_to_name, gcry_sexp_build_array)
(gcry_sexp_build, gcry_ac_key_get_nbits, gcry_ac_data_encrypt)
(gcry_ac_data_decrypt, gcry_ac_data_sign, gcry_ac_data_verify)
(gcry_ac_key_test, gcry_ac_key_pair_generate)
(gcry_ac_key_get_nbits, gcry_ac_key_get_grip, gcry_ac_list): New
macros.
(pubkey_table, pubkeys_registered, pubkeys_registered_lock,
default_pubkeys_registered): Removed.
(REGISTER_DEFAULT_PUBKEYS): Likewise.
(dummy_generate, dummy_check_secret_key, dummy_encrypt,
dummy_decrypt, dummy_sign, dummy_verify, dummy_get_nbits,
gcry_pk_register_default, gcry_pk_lookup_func_name,
gcry_pk_lookup_name, gcry_pk_register, gcry_pk_unregister,
release_mpi_array): Removed functions.
(sexp_nth_number, sexp_extract_flags, sexp_extract_std)
(sexp_extract_key, sexp_construct_std, sexp_mpi_arg_list_create)
(sexp_construct_factors, sexp_construct_genkey): New functions.
(_gcry_pk_aliased_algo_name, disable_pubkey_algo,
check_pubkey_algo): Removed functions.
(pubkey_get_npkey, pubkey_get_nskey, pubkey_get_nsig,
pubkey_get_nenc, pubkey_generate, pubkey_check_secret_key,
pubkey_encrypt, pubkey_decrypt, pubkey_sign, pubkey_verify):
Likewise.
(sexp_elements_extract, sexp_to_key, sexp_to_sig, sexp_to_enc):
Removed functions.
(_gcry_pk_init, _gcry_pk_module_lookup, _gcry_pk_module_release):
Removed functions.
(sexp_data_to_mpi): Renamed to ...
(sexp_extract_data): ... this, changed callers.
(gcry_pk_map_name, gcry_pk_algo_name): Modified to act as a
wrapper for the ac interface.
(gcry_pk_encrypt, gcry_pk_decrypt): Likewise.
(gcry_pk_sign, gcry_pk_verify): Likewise.
(gcry_pk_testkey, gcry_pk_genkey, gcry_pk_get_nbits)
(gcry_pk_get_keygrip): Likewise.
(gcry_pk_ctl, gcry_pk_algo_info, gcry_pk_list): Likewise.
----------+
pubkey.c | 3033 ++++++++++++++++++++++++-------------------------------------
1 files changed, 1197 insertions(+), 1836 deletions(-)