diff options
author | Werner Koch <wk@gnupg.org> | 2024-04-23 11:20:37 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2024-04-23 11:31:49 +0200 |
commit | e591fd25adc3c40561e9ebebb9d08abbaea0ad63 (patch) | |
tree | 57f2bb99656e4350ea3f749ac6dec2e7266fbfc4 /common | |
parent | Require Libgcrypt 1.11.0 (diff) | |
download | gnupg2-e591fd25adc3c40561e9ebebb9d08abbaea0ad63.tar.xz gnupg2-e591fd25adc3c40561e9ebebb9d08abbaea0ad63.zip |
gpg: Support encryption with kyber_cv448.
* g10/pkglue.c (do_encrypt_kem): Support cv25519 w/o 0x40
prefix. Support X448.
(ECC_POINT_LEN_MAX): New.
(ECC_HASH_LEN_MAX): New.
* common/openpgp-oid.c (oidtable): Support X448 KEM.
--
This needs more work. For example we should use a parameter table
like what we do in agent/pkdecrypt.c.
GnuPG-bug-id: 6815
Diffstat (limited to 'common')
-rw-r--r-- | common/openpgp-oid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/openpgp-oid.c b/common/openpgp-oid.c index 74541a03f..d54aff3a9 100644 --- a/common/openpgp-oid.c +++ b/common/openpgp-oid.c @@ -57,7 +57,7 @@ static struct { { "Ed25519", "1.3.101.112", 255, "ed25519", NULL, PUBKEY_ALGO_EDDSA }, { "X448", "1.3.101.111", 448, "cv448", NULL, - PUBKEY_ALGO_ECDH }, + PUBKEY_ALGO_ECDH, GCRY_KEM_RAW_X448 }, { "Ed448", "1.3.101.113", 456, "ed448", NULL, PUBKEY_ALGO_EDDSA }, |