return 0;
}
else
- /* Note if no additional input t and s the algorithm never
+ /* Note if no additional input the algorithm never
* needs separate values for t and s.
*/
t = s;
dctx->reseed_counter++;
/* Get rightmost bits of r to output buffer */
- if (!(dctx->flags & DRBG_FLAG_TEST) && !dctx->lb_valid)
+ if (!(dctx->xflags & DRBG_FLAG_TEST) && !dctx->lb_valid)
{
if (!bn2binpad(dctx->lb, dctx->blocklength, r))
goto err;
return -2;
}
- dctx->flags |= DRBG_CUSTOM_RESEED;
+ dctx->iflags |= DRBG_CUSTOM_RESEED;
dctx->reseed_counter = 0;
dctx->instantiate = drbg_ec_instantiate;
dctx->reseed = drbg_ec_reseed;