X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=fips%2Frand%2Ffips_drbg_ctr.c;h=4045e2d627f2966f5c4cd8bbba37657f1ec94735;hp=2a3c321618dcbc145d585f1a72f3bea22283c5e3;hb=42bd0a6b3c73c71b69967503c0ee0a3598b52655;hpb=ded1999702eb684f2057628b261bdd951fa73bc3;ds=sidebyside diff --git a/fips/rand/fips_drbg_ctr.c b/fips/rand/fips_drbg_ctr.c index 2a3c321618..4045e2d627 100644 --- a/fips/rand/fips_drbg_ctr.c +++ b/fips/rand/fips_drbg_ctr.c @@ -340,13 +340,13 @@ static int drbg_ctr_generate(DRBG_CTX *dctx, { /* Use K as temp space as it will be updated */ AES_encrypt(cctx->V, cctx->K, &cctx->ks); - if (!drbg_cprng_test(dctx, cctx->K)) + if (!fips_drbg_cprng_test(dctx, cctx->K)) return 0; memcpy(out, cctx->K, outlen); break; } AES_encrypt(cctx->V, out, &cctx->ks); - if (!drbg_cprng_test(dctx, out)) + if (!fips_drbg_cprng_test(dctx, out)) return 0; out += 16; outlen -= 16;