diff options
author | Werner Koch <[email protected]> | 2020-05-19 12:28:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-05-19 12:28:48 +0000 |
commit | 3cd9dac7e0976643c6e4b6537cf363b2b12d422f (patch) | |
tree | e0e3d85f3aa20d2ac141d70c1808fa600844f4fa /common/util.h | |
parent | sm: Support creation of EdDSA certificates. (diff) | |
download | gnupg-3cd9dac7e0976643c6e4b6537cf363b2b12d422f.tar.gz gnupg-3cd9dac7e0976643c6e4b6537cf363b2b12d422f.zip |
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 <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
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, |