From 3cd9dac7e0976643c6e4b6537cf363b2b12d422f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 19 May 2020 14:28:40 +0200 Subject: common: New function to extract Q from an ECC key. * common/sexputil.c (get_ecc_q_from_canon_sexp): New. Signed-off-by: Werner Koch --- common/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/util.h') diff --git a/common/util.h b/common/util.h index b5bdd0385..834438448 100644 --- a/common/util.h +++ b/common/util.h @@ -197,6 +197,10 @@ gpg_error_t get_rsa_pk_from_canon_sexp (const unsigned char *keydata, size_t *r_nlen, unsigned char const **r_e, size_t *r_elen); +gpg_error_t get_ecc_q_from_canon_sexp (const unsigned char *keydata, + size_t keydatalen, + unsigned char const **r_q, + size_t *r_qlen); int get_pk_algo_from_key (gcry_sexp_t key); int get_pk_algo_from_canon_sexp (const unsigned char *keydata, -- cgit v1.2.3