Sorry for the burst of email, but as I was browsing code that calls mp_init()
I may have stumbled on something else...
Does anyone know if the "build_lut" function is ever used?
Take a quick peek at it and notice this...

static int build_lut(int idx, void *modulus, void *mp, void *mu)
{
   unsigned x, y, err, bitlen, lut_gap;
   void    *tmp;

   tmp = NULL;


...

   if ((err = mp_init(&tmp)) != CRYPT_OK)
           { goto ERR; }
...


With mp_init() assuming it is getting a pointer to an mp_int structure,
this looks bad.

True?
Ed


Reply via email to