diff options
author | Werner Koch <[email protected]> | 2024-04-23 14:25:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-04-23 14:25:05 +0000 |
commit | 32ec480024b306508f77b1ebc720e2587df7b6c3 (patch) | |
tree | 6422685e59a03228837918c1218075a0e8811a91 /common | |
parent | Remove the deprecated gcry_set_log_handler. (diff) | |
download | gnupg-32ec480024b306508f77b1ebc720e2587df7b6c3.tar.gz gnupg-32ec480024b306508f77b1ebc720e2587df7b6c3.zip |
gpg: Support encryption with kyber_bp256 and kyber_bp384
* common/openpgp-oid.c (oidtable): Support KEM for bp256 and bp384.
* g10/pkglue.c (do_encrypt_kem): Ditto.
--
GnuPG-bug-id: 6815
Note, this needs the very latest Libgcrypt to work properly
Diffstat (limited to 'common')
-rw-r--r-- | common/openpgp-oid.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/openpgp-oid.c b/common/openpgp-oid.c index d54aff3a9..a374904cf 100644 --- a/common/openpgp-oid.c +++ b/common/openpgp-oid.c @@ -65,8 +65,10 @@ static struct { { "NIST P-384", "1.3.132.0.34", 384, "nistp384" }, { "NIST P-521", "1.3.132.0.35", 521, "nistp521" }, - { "brainpoolP256r1", "1.3.36.3.3.2.8.1.1.7", 256, NULL, "bp256" }, - { "brainpoolP384r1", "1.3.36.3.3.2.8.1.1.11", 384, NULL, "bp384" }, + { "brainpoolP256r1", "1.3.36.3.3.2.8.1.1.7", 256, NULL, "bp256", + 0, GCRY_KEM_RAW_BP256 }, + { "brainpoolP384r1", "1.3.36.3.3.2.8.1.1.11", 384, NULL, "bp384", + 0, GCRY_KEM_RAW_BP384 }, { "brainpoolP512r1", "1.3.36.3.3.2.8.1.1.13", 512, NULL, "bp512" }, { "secp256k1", "1.3.132.0.10", 256 }, |