diff options
-rw-r--r-- | crypto/rsa/rsa_ameth.c | 5 | ||||
-rw-r--r-- | include/internal/param_build.h | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/crypto/rsa/rsa_ameth.c b/crypto/rsa/rsa_ameth.c index d2f976f681..ade3fe2578 100644 --- a/crypto/rsa/rsa_ameth.c +++ b/crypto/rsa/rsa_ameth.c @@ -1096,10 +1096,7 @@ static void *rsa_pkey_export_to(const EVP_PKEY *pk, EVP_KEYMGMT *keymgmt, if (numprimes < 2 || numexps < 2 || numcoeffs < 1) goto err; - /* - * assert that an OSSL_PARAM_BLD has enough space. - * (the current 10 places doesn't have space for multi-primes) - */ + /* assert that an OSSL_PARAM_BLD has enough space. */ if (!ossl_assert(/* n, e */ 2 + /* d */ 1 + /* numprimes */ 1 + numprimes + numexps + numcoeffs <= OSSL_PARAM_BLD_MAX)) 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; |