mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: New option --disable-pqc-encryption.
* g10/options.h (flags): Add field disable_pqc_encryption. * g10/gpg.c (oDisablePQCEncryption): New. (opts): Add --option. (main): Set option. * g10/getkey.c (finish_lookup): Skip subkeys if option is set. -- This option can be used to avoid the use of Kyber encryption subkeys if this does not make sense (i.e. protection of local files).
This commit is contained in:
parent
da9fb6bd16
commit
00c31f8b04
5 changed files with 29 additions and 0 deletions
|
@ -308,6 +308,9 @@ struct
|
|||
unsigned int require_compliance:1;
|
||||
/* Fail encryption unless a PQC algorithm is used. */
|
||||
unsigned int require_pqc_encryption:1;
|
||||
/* Do not use PQC subkeys for encryption. This is never set if
|
||||
* require_pqc_encryption is also set. */
|
||||
unsigned int disable_pqc_encryption:1;
|
||||
/* Process all signatures even in batch mode. */
|
||||
unsigned int proc_all_sigs:1;
|
||||
} flags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue