diff options
author | NIIBE Yutaka <[email protected]> | 2020-06-23 01:10:29 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-06-23 01:10:29 +0000 |
commit | c94eea15d6847c08d2d9ff1c7608953f25fea67d (patch) | |
tree | 5f7568a7e6bdde48a2ddb677172e210ef904c803 /common/util.h | |
parent | agent: Use get_pk_algo_from_key. (diff) | |
download | gnupg-c94eea15d6847c08d2d9ff1c7608953f25fea67d.tar.gz gnupg-c94eea15d6847c08d2d9ff1c7608953f25fea67d.zip |
ecc: Use "cv448" to specify key using X448.
* common/openpgp-oid.c (oidtable): Use "cv448".
(oid_cv448): Rename from oid_x448.
(openpgp_oidbuf_is_cv448, openpgp_oid_is_cv448): Likewise.
* common/util.h (openpgp_oid_is_cv448): Follow the change.
* g10/ecdh.c (pk_ecdh_generate_ephemeral_key): Likewise.
* g10/keygen.c (gen_ecc, ask_algo): Use "cv448".
(parse_key_parameter_part): Likewise.
* g10/pkglue.c (get_data_from_sexp): Fix for debug output.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h index d8914772d..490c443d8 100644 --- a/common/util.h +++ b/common/util.h @@ -238,7 +238,7 @@ int openpgp_oidbuf_is_ed25519 (const void *buf, size_t len); int openpgp_oid_is_ed25519 (gcry_mpi_t a); int openpgp_oidbuf_is_cv25519 (const void *buf, size_t len); int openpgp_oid_is_cv25519 (gcry_mpi_t a); -int openpgp_oid_is_x448 (gcry_mpi_t a); +int openpgp_oid_is_cv448 (gcry_mpi_t a); const char *openpgp_curve_to_oid (const char *name, unsigned int *r_nbits, int *r_algo); const char *openpgp_oid_to_curve (const char *oid, int canon); |