diff options
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c index 2a431b137..c329bef55 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -1805,10 +1805,13 @@ pubkey_nbits( int algo, gcry_mpi_t *key ) rc = gpg_error_from_syserror (); else { + gcry_mpi_t pubkey = openpgp_ecc_parse_pubkey (algo, curve, key[1]); + rc = gcry_sexp_build (&sexp, NULL, "(public-key(ecc(curve%s)(q%m)))", curve, key[1]); xfree (curve); + gcry_mpi_release (pubkey); } } else |