Home GnuPG

rsa: Add FIPS 186-4 compliant RSA probable prime key generator.
5f9b3c2e220cUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

rsa: Add FIPS 186-4 compliant RSA probable prime key generator.

* cipher/primegen.c (_gcry_fips186_4_prime_check): New.
* cipher/rsa.c (generate_fips): New.
(rsa_generate): Use new function in fips mode or with test-parms.
* tests/keygen.c (check_rsa_keys): Add test using e=65539.

Tomáš's patch war originally for libgcrypt 1.6.3 and has been ported
to master (1.7) by wk. Further changes:

  • ChangeLog entries.
  • Some re-indentation
  • Use an extra test case instead of changing an existing one.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
Tomáš Mráz <tmraz@redhat.com>Authored on Mar 22 2016, 5:12 PM
wernerCommitted on Mar 22 2016, 5:12 PM
Parents
rC583919d70763: Fix ARM NEON support detection on ARMv6 target
Branches
Unknown
Tags
Unknown