Added internal functions for easy getting and setting all RSA parameters.
authorRichard Levitte <levitte@openssl.org>
Tue, 15 Oct 2019 18:28:02 +0000 (20:28 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 17 Oct 2019 16:07:45 +0000 (18:07 +0200)
commitc3a4fa4cb849ba300d4691154c0c12ac19d24710
treede8a929f7bb54e51a6fa3c9058a3686cd5857777
parentb75d6310857bc44ef2851bde68a1979c18bb4807
Added internal functions for easy getting and setting all RSA parameters.

rsa_set0_all_params() is used to set all the primes, exponents and
coefficients.  rsa_get0_all_params() is used to get all the primes,
exponents and coefficients.

"All" includes p, q, dP, dQ and qInv without making them separate.

All arrays of numbers are implemented as stacks to make dynamic use
easier.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10190)
crypto/rsa/rsa_lib.c
include/crypto/rsa.h [new file with mode: 0644]
include/openssl/rsa.h
include/openssl/types.h
test/build.info
test/rsa_mp_test.c