From e591fd25adc3c40561e9ebebb9d08abbaea0ad63 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 23 Apr 2024 11:20:37 +0200 Subject: 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 --- common/openpgp-oid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') 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 }, -- cgit v1.2.3