mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: New option --require-pqc-encryption
* g10/gpg.c (oRequirePQCEncryption): New. (opts): Add option. (main): Set option. * g10/mainproc.c (print_pkenc_list): Print a warning. * g10/options.h (flags): Add flag require_pqc_encryption. * g10/getkey.c (finish_lookup): Skip non-pqc keys if the option is set. -- GnuPG-bug-id: 6815
This commit is contained in:
parent
a45243548e
commit
2958e5e4cf
5 changed files with 36 additions and 1 deletions
|
@ -578,6 +578,10 @@ print_pkenc_list (ctrl_t ctrl, struct pubkey_enc_list *list)
|
|||
openpgp_pk_algo_name (list->pubkey_algo),
|
||||
keystr(list->keyid));
|
||||
|
||||
if (opt.flags.require_pqc_encryption
|
||||
&& pk->pubkey_algo != PUBKEY_ALGO_KYBER)
|
||||
log_info (_("WARNING: key is not quantum-resistant\n"));
|
||||
|
||||
free_public_key (pk);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue