Home GnuPG

rsa: Do not allow 1024 RSA keys in FIPS mode

Description

rsa: Do not allow 1024 RSA keys in FIPS mode

Previously, the condition was in generate_std, which is never called in
FIPS mode.

  • cipher/rsa.c (generate_std): Remove dead code as FIPS is using 'generate_fips' (generate_fips): Do not allow 1024 bit key generation --
  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
JakujeAuthored on Aug 16 2021, 2:17 PM
gniibeCommitted on Aug 17 2021, 4:20 AM
Parents
rC588b8bb6ef09: tests: Avoid confusing 'success' on error message
Branches
Unknown
Tags
Unknown