Home GnuPG

fips,rsa: Prevent usage of X9.31 keygen in FIPS mode.

Description

fips,rsa: Prevent usage of X9.31 keygen in FIPS mode.

* cipher/rsa.c (rsa_generate): Do not accept use-x931 or derive-parms
in FIPS mode.
* tests/pubkey.c (get_keys_x931_new): Expect failure in FIPS mode.
(check_run): Skip checking X9.31 keys in FIPS mode.
* doc/gcrypt.texi: Document "test-parms" and clarify some cases around
the X9.31 keygen.
  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
JakujeAuthored on Dec 6 2022, 2:03 AM
gniibeCommitted on Dec 6 2022, 2:03 AM
Parents
rCbf1e62e59200: rsa: Prevent usage of long salt in FIPS mode
Branches
Unknown
Tags
Unknown