Home GnuPG
Diffusion GnuPG 12ac129a709c

gpg: Allow shortcut algo string "pqc" for --quick-gen-key.

Description

gpg: Allow shortcut algo string "pqc" for --quick-gen-key.

* g10/keygen.c (PQC_STD_KEY_PARAM): New.
(quickgen_set_para): Always store the provided NBITS.
(parse_key_parameter_string): Detect the special value "pqc".
(quick_generate_keypair): Ditto.

With this change we can finally do a

gpg --quick-gen-key --batch --passphrase='' foo@example.org  pqc

and get a full key. Currently with a brainpoolp386r1 primary key and
a Kyber768_brainpoolp256 subkey.

Details

Provenance
wernerAuthored on Jun 11 2024, 3:39 PM
Parents
rGd81bb417c02f: gpg: Do not bail out on secret keys with an unknown algo
Branches
Unknown
Tags
Unknown