aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-05-16 05:06:45 +0000
committerNIIBE Yutaka <[email protected]>2025-05-16 05:06:45 +0000
commit40cfa71281db809196ff925073fedfc4de39ccb1 (patch)
treec8493e19af61db25865dbe003aad98781ae2431a
parentagent: Support the use case of composite PQC for prompting. (diff)
downloadgnupg-40cfa71281db809196ff925073fedfc4de39ccb1.tar.gz
gnupg-40cfa71281db809196ff925073fedfc4de39ccb1.zip
common: Add KEM constants for NIST curves.
* common/openpgp-oid.c (oidtable): Fill the information for KEM API for NIST curves. -- GnuPG-bug-id: 7649 Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--common/openpgp-oid.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/common/openpgp-oid.c b/common/openpgp-oid.c
index c4161ece1..91081231c 100644
--- a/common/openpgp-oid.c
+++ b/common/openpgp-oid.c
@@ -61,9 +61,12 @@ static struct {
{ "Ed448", "1.3.101.113", 456, "ed448", NULL,
PUBKEY_ALGO_EDDSA },
- { "NIST P-256", "1.2.840.10045.3.1.7", 256, "nistp256" },
- { "NIST P-384", "1.3.132.0.34", 384, "nistp384" },
- { "NIST P-521", "1.3.132.0.35", 521, "nistp521" },
+ { "NIST P-256", "1.2.840.10045.3.1.7", 256, "nistp256", NULL,
+ 0, GCRY_KEM_RAW_P256R1 },
+ { "NIST P-384", "1.3.132.0.34", 384, "nistp384", NULL,
+ 0, GCRY_KEM_RAW_P384R1 },
+ { "NIST P-521", "1.3.132.0.35", 521, "nistp521", NULL,
+ 0, GCRY_KEM_RAW_P521R1 },
{ "brainpoolP256r1", "1.3.36.3.3.2.8.1.1.7", 256, NULL, "bp256",
0, GCRY_KEM_RAW_BP256 },