Home GnuPG

rsa: Check keylen constraints for key operations.

Description

rsa: Check keylen constraints for key operations.

* cipher/rsa.c (rsa_check_keysize): New.
(generate_fips): Factor out the bits check.
(rsa_encrypt): Add checking key length.
(rsa_decrypt, rsa_sign, rsa_verify): Likewise.
  • GnuPG-bug-id: T5512
  • Co-authored-by: NIIBE Yutaka <gniibe@fsij.org>
  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
JakujeAuthored on Nov 5 2021, 2:19 PM
gniibeCommitted on Nov 8 2021, 6:12 AM
Parents
rCcc3571a1f224: tests: Expect errors from algorithms not supported in FIPS mode.
Branches
Unknown
Tags
Unknown
Tasks
T5512: Implement service indicators