diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2019-10-21 16:08:24 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2019-10-22 09:03:57 +0900 |
commit | c2aa333dd88b4cd337329128a2018dd3b00f5114 (patch) | |
tree | 3bb78aab7b73c96461bcb2b9c6b9c56f8b7baba9 /src/mpi.h | |
parent | c7b97ac9bdf96f5a89ae553cac12954043ab174d (diff) | |
download | libgcrypt-c2aa333dd88b4cd337329128a2018dd3b00f5114.tar.gz |
ecc: Support flags and debug print in _gcry_mpi_ec_internal_new.
* cipher/ecc-curves.c (mpi_ec_get_elliptic_curve): Don't set *r_flags.
(_gcry_mpi_ec_internal_new): Add r_flags argument.
Parse the flag list.
Output to debug channel when DBG_CIPHER.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'src/mpi.h')
-rw-r--r-- | src/mpi.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -314,7 +314,8 @@ gpg_err_code_t _gcry_mpi_ec_decode_point (mpi_point_t result, /*-- ecc-curves.c --*/ gpg_err_code_t _gcry_mpi_ec_new (gcry_ctx_t *r_ctx, gcry_sexp_t keyparam, const char *curvename); -gpg_err_code_t _gcry_mpi_ec_internal_new (mpi_ec_t *r_ec, +gpg_err_code_t _gcry_mpi_ec_internal_new (mpi_ec_t *r_ec, int *r_flags, + const char *name_op, gcry_sexp_t keyparam, const char *curvename); |