Add BN_check_prime()
authorKurt Roeckx <kurt@roeckx.be>
Sun, 6 Oct 2019 15:21:16 +0000 (17:21 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Mon, 14 Oct 2019 20:54:02 +0000 (22:54 +0200)
commit42619397eb5db1a77d077250b0841b9c9f2b8984
treed8afd9cabeedfe4cade8580206ed323bd6f4b9d0
parent6c4ae41f1ca857254fc9e27edead81ff2fd3f3fe
Add BN_check_prime()

Add a new API to test for primes that can't be misused, deprecated the
old APIs.

Suggested by Jake Massimo and Kenneth Paterson

Reviewed-by: Paul Dale <paul.dale@oracle.com>
GH: #9272
18 files changed:
apps/prime.c
apps/s_client.c
crypto/bn/bn_depr.c
crypto/bn/bn_local.h
crypto/bn/bn_prime.c
crypto/bn/bn_rsa_fips186_4.c
crypto/bn/bn_x931p.c
crypto/dh/dh_check.c
crypto/dsa/dsa_gen.c
crypto/rsa/rsa_chk.c
crypto/rsa/rsa_sp800_56b_check.c
doc/man1/openssl-prime.pod
doc/man3/BN_generate_prime.pod
include/openssl/bn.h
include/openssl/dsa.h
test/bntest.c
test/ectest.c
util/libcrypto.num