aboutsummaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-04-23 15:40:27 +0000
committerWerner Koch <[email protected]>2024-04-23 15:41:28 +0000
commitdd650b2c7b7b1612afe494123bc817a2619bb124 (patch)
treee8b3c4736f912c8f6a396624a5bdaaa04a3f6150 /agent
parentgpg: Support encryption with kyber_bp256 and kyber_bp384 (diff)
downloadgnupg-dd650b2c7b7b1612afe494123bc817a2619bb124.tar.gz
gnupg-dd650b2c7b7b1612afe494123bc817a2619bb124.zip
gpg: Support Kyber with Brainpool512r1.
* common/openpgp-oid.c (oidtable): Add GCRY_KEM_RAW_BP512. * agent/pkdecrypt.c (ecc_table): Support bp512 * g10/pkglue.c (do_encrypt_kem): Ditto. * tests/openpgp/samplekeys: Add sample keys for kyber_bp256, bp384, and bp512. * tests/openpgp/privkeys: Add corresponding private keys. * tests/openpgp/samplemsgs: Add sample messages for those keys. -- GnuPG-bug-id: 6815
Diffstat (limited to 'agent')
-rw-r--r--agent/pkdecrypt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/agent/pkdecrypt.c b/agent/pkdecrypt.c
index 10bd92152..5509b1169 100644
--- a/agent/pkdecrypt.c
+++ b/agent/pkdecrypt.c
@@ -70,6 +70,12 @@ static const struct ecc_params ecc_table[] =
GCRY_MD_SHA3_512, GCRY_KEM_RAW_BP384,
0
},
+ {
+ "brainpoolP512r1",
+ 129, 64, 129, 64,
+ GCRY_MD_SHA3_512, GCRY_KEM_RAW_BP512,
+ 0
+ },
{ NULL, 0, 0, 0, 0, 0, 0, 0 }
};