mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
experiment: Fix ECC key handling.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
2b08e84849
commit
9948f3c133
6 changed files with 24 additions and 44 deletions
|
@ -1806,8 +1806,7 @@ pubkey_nbits( int algo, gcry_mpi_t *key )
|
|||
else
|
||||
{
|
||||
const char *curve_name = openpgp_oid_to_curve (curve, 1);
|
||||
gcry_mpi_t pubkey = openpgp_ecc_parse_pubkey (algo,
|
||||
curve_name, key[1]);
|
||||
gcry_mpi_t pubkey = openpgp_ecc_parse_key (algo, curve_name, key[1]);
|
||||
|
||||
rc = gcry_sexp_build (&sexp, NULL,
|
||||
"(public-key(ecc(curve%s)(q%m)))",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue