diff options
| author | NIIBE Yutaka <[email protected]> | 2020-06-09 05:56:50 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2020-06-09 05:56:50 +0000 |
| commit | e9760eb9e70b9804c988dafe01851f6600869d9e (patch) | |
| tree | 7dcf574730d5a43c7a8762eaf27a12812e896f19 /common/util.h | |
| parent | gpg,ecc: Handle external representation as SOS with opaque MPI. (diff) | |
| download | gnupg-e9760eb9e70b9804c988dafe01851f6600869d9e.tar.gz gnupg-e9760eb9e70b9804c988dafe01851f6600869d9e.zip | |
gpg: Add X448 support.
* common/openpgp-oid.c (oidtable): Add X448.
(oid_x448,openpgp_oidbuf_is_x448,openpgp_oid_is_x448): New.
* common/util.h (openpgp_oid_is_x448): New.
* g10/ecdh.c (gen_k): Add handling of opaque MPI and support
endianness.
(pk_ecdh_generate_ephemeral_key): X448 requires opaque MPI.
* g10/keygen.c (gen_ecc): Add support for X448.
(ask_algo, parse_key_parameter_part): Likewise.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/util.h')
| -rw-r--r-- | common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index 834438448..d8914772d 100644 --- a/common/util.h +++ b/common/util.h @@ -238,6 +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); 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); |
