Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-10-28 17:43:42 +0300
committerMatt Caswell <matt@openssl.org>2019-11-14 12:29:46 +0300
commit081d08fa58e300142f08ee670d63c84333a47cb0 (patch)
treefc8f6553b42f48158ddfce15c87ddd630ab4afb9 /include/internal
parent2c938e2ee8b420e3a1260a2446f3f820f01e71d5 (diff)
Increase OSSL_PARAM_BLD_MAX for multi-prime RSA
The old value of 10 for OSSL_PARAM_BLD_MAX is insufficient for multi-prime RSA. That code has this assert: if (!ossl_assert(/* n, e */ 2 + /* d */ 1 + /* numprimes */ 1 + numprimes + numexps + numcoeffs <= OSSL_PARAM_BLD_MAX)) goto err; So we increase OSSL_PARAM_BLD_MAX which would be enough for 7 primes (more than you would ever reasonably want). Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10152)
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/param_build.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/param_build.h b/include/internal/param_build.h
index a5297b843d..a8116e35cd 100644
--- a/include/internal/param_build.h
+++ b/include/internal/param_build.h
@@ -11,7 +11,7 @@
#include <openssl/params.h>
#include <openssl/types.h>
-#define OSSL_PARAM_BLD_MAX 10
+#define OSSL_PARAM_BLD_MAX 25
typedef struct {
const char *key;