diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2021-03-22 08:57:18 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-03-22 08:57:18 +0100 |
commit | 1524a942b645d9facbedd9ed4a472e343838b6a1 (patch) | |
tree | 9d8c98f413d9da168c5bcd1b9f743f1fa2818f0f /common/util.h | |
parent | gpg: Fix exporting SSH key. (diff) | |
download | gnupg2-1524a942b645d9facbedd9ed4a472e343838b6a1.tar.xz gnupg2-1524a942b645d9facbedd9ed4a472e343838b6a1.zip |
gpg: Support exporting Ed448 SSH key.
* common/openpgp-oid.c (oid_ed448, openpgp_oidbuf_is_ed448): New.
(openpgp_oid_is_ed448): New.
* common/util.h (openpgp_oid_is_ed448): New.
* g10/export.c (export_one_ssh_key): Support Ed448 key.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
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 56187f1e0..89cde696e 100644 --- a/common/util.h +++ b/common/util.h @@ -245,6 +245,7 @@ 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_cv448 (gcry_mpi_t a); +int openpgp_oid_is_ed448 (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); |