X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=fips%2Frand%2Ffips_drbg_ec.c;h=fb5f77c8975f22ef999a5292c7dc80c82218d852;hb=4420b3b17acf19f78f4fdea1a69d5f0a644c8154;hp=57344314a19ce757fe8ff79bde4ca5821a651ff0;hpb=45fcfcb99fd1f37c5b5cd3b76b99b5f70e7f518a;p=oweals%2Fopenssl.git diff --git a/fips/rand/fips_drbg_ec.c b/fips/rand/fips_drbg_ec.c index 57344314a1..fb5f77c897 100644 --- a/fips/rand/fips_drbg_ec.c +++ b/fips/rand/fips_drbg_ec.c @@ -337,7 +337,7 @@ static int drbg_ec_generate(DRBG_CTX *dctx, 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; @@ -499,7 +499,7 @@ int fips_drbg_ec_init(DRBG_CTX *dctx) 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;