aboutsummaryrefslogtreecommitdiffstats
path: root/common/openpgpdefs.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-07-07 08:21:39 +0000
committerWerner Koch <[email protected]>2023-07-07 08:21:39 +0000
commit9f39e4da29feba854fbbe4ab6b9f3c68d34c2058 (patch)
treebc591fa670dfc9d38dfcaf180079f78a5c82eee2 /common/openpgpdefs.h
parentkbx: Fix memory leak at spawning a thread for data pipe. (diff)
downloadgnupg-9f39e4da29feba854fbbe4ab6b9f3c68d34c2058.tar.gz
gnupg-9f39e4da29feba854fbbe4ab6b9f3c68d34c2058.zip
gpg: Add algo constants for PQC.
* common/openpgpdefs.h (PUBKEY_ALGO_KY768_25519): New. (PUBKEY_ALGO_KY1024_448): New. (PUBKEY_ALGO_DIL3_25519): New. (PUBKEY_ALGO_DIL5_448): New. (PUBKEY_ALGO_SPHINX_SHA2): New. * g10/keygen.c (parse_key_parameter_part): Force v5 keys for these algos. * g10/keyid.c (pubkey_string): Add mapping. * g10/misc.c (openpgp_pk_algo_usage): Add standard key usage. -- See draft-wussler-openpgp-pqc-01.txt for the code points. To limit the number of algorithms, only MUST and SHOULD algorithms are considered.
Diffstat (limited to 'common/openpgpdefs.h')
-rw-r--r--common/openpgpdefs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/openpgpdefs.h b/common/openpgpdefs.h
index 625747983..8553a889f 100644
--- a/common/openpgpdefs.h
+++ b/common/openpgpdefs.h
@@ -168,7 +168,12 @@ typedef enum
PUBKEY_ALGO_ECDSA = 19, /* RFC-6637 */
PUBKEY_ALGO_ELGAMAL = 20, /* Elgamal encrypt+sign (legacy). */
/* 21 reserved by OpenPGP. */
- PUBKEY_ALGO_EDDSA = 22, /* EdDSA (not yet assigned). */
+ PUBKEY_ALGO_EDDSA = 22, /* EdDSA. */
+ PUBKEY_ALGO_KY768_25519 = 29, /* Kyber768 + X25519 */
+ PUBKEY_ALGO_KY1024_448 = 30, /* Kyber1024 + X448 */
+ PUBKEY_ALGO_DIL3_25519 = 35, /* Dilithium3 + Ed25519 */
+ PUBKEY_ALGO_DIL5_448 = 36, /* Dilithium5 + Ed448 */
+ PUBKEY_ALGO_SPHINX_SHA2 = 41, /* SPHINX+-simple-SHA2 */
PUBKEY_ALGO_PRIVATE10 = 110
}
pubkey_algo_t;