build_lut
Ed Sutter
ed.sutter at alcatel-lucent.com
Tue Apr 16 04:36:45 WST 2013
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
More information about the Dropbear
mailing list