Always call the new_session_cb when issuing a NewSessionTicket in TLSv1.3
[openssl.git] / crypto / rsa / rsa_locl.h
index 6a53d89edef1dabb1d16d924b0475c17d4fcdec3..2b94462a94c6f542ee80f0fc26dd154b38387683 100644 (file)
@@ -10,8 +10,8 @@
 #include <openssl/rsa.h>
 #include "internal/refcount.h"
 
-#define RSA_MAX_PRIME_NUM 16
-#define RSA_MIN_PRIME_SIZE 64
+#define RSA_MAX_PRIME_NUM       5
+#define RSA_MIN_MODULUS_BITS    512
 
 typedef struct rsa_prime_info_st {
     BIGNUM *r;
@@ -28,7 +28,7 @@ DEFINE_STACK_OF(RSA_PRIME_INFO)
 struct rsa_st {
     /*
      * The first parameter is used to pickup errors where this is passed
-     * instead of aEVP_PKEY, it is set to 0
+     * instead of aEVP_PKEY, it is set to 0
      */
     int pad;
     int32_t version;
@@ -129,3 +129,4 @@ void rsa_multip_info_free_ex(RSA_PRIME_INFO *pinfo);
 void rsa_multip_info_free(RSA_PRIME_INFO *pinfo);
 RSA_PRIME_INFO *rsa_multip_info_new(void);
 int rsa_multip_calc_product(RSA *rsa);
+int rsa_multip_cap(int bits);