--- pgp/src/mpilib.h 2018/04/24 16:39:19 1.1.1.3 +++ pgp/src/mpilib.h 2018/04/24 16:42:16 1.1.1.6 @@ -314,9 +314,9 @@ void mp_setp(short nbits); integer multiple of UNITSIZE*2. */ #if (SLOP_BITS > 0) -#define MAX_BIT_PRECISION (1152+(2*UNITSIZE)) +#define MAX_BIT_PRECISION (1280+(2*UNITSIZE)) #else -#define MAX_BIT_PRECISION 1152 +#define MAX_BIT_PRECISION 1280 #endif #define MAX_BYTE_PRECISION (MAX_BIT_PRECISION/8) #define MAX_UNIT_PRECISION (MAX_BIT_PRECISION/UNITSIZE) @@ -461,8 +461,8 @@ int mp_modexp(register unitptr expout,re register unitptr exponent,register unitptr modulus); /* Combined exponentiation/modulo algorithm. */ -int rsa_decrypt(unitptr M, unitptr C, - unitptr d, unitptr p, unitptr q, unitptr u); - /* Uses Chinese Remainder Theorem shortcut for RSA decryption. */ +int mp_modexp_crt(unitptr expout, unitptr expin, + unitptr p, unitptr q, unitptr ep, unitptr eq, unitptr u); + /* exponentiation and modulo using Chinese Remainder Theorem */ /****************** end of MPI library ****************************/