X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=fips%2Frand%2Ffips_drbg_ctr.c;h=4483681f633085306eaeec3c9d82f608a3c00679;hp=47abec651d6f305e75f6c434e88108d1ff143297;hb=4420b3b17acf19f78f4fdea1a69d5f0a644c8154;hpb=e74ac3f8307ba2a49b4ce5e6c56216b5a69531c2 diff --git a/fips/rand/fips_drbg_ctr.c b/fips/rand/fips_drbg_ctr.c index 47abec651d..4483681f63 100644 --- a/fips/rand/fips_drbg_ctr.c +++ b/fips/rand/fips_drbg_ctr.c @@ -263,7 +263,7 @@ static void ctr_Update(DRBG_CTX *dctx, memcpy(cctx->V, cctx->K + 24, 8); } - if (dctx->flags & DRBG_FLAG_CTR_USE_DF) + if (dctx->xflags & DRBG_FLAG_CTR_USE_DF) { /* If no input reuse existing derived value */ if (in1 || nonce || in2) @@ -316,7 +316,7 @@ static int drbg_ctr_generate(DRBG_CTX *dctx, { ctr_Update(dctx, adin, adinlen, NULL, 0, NULL, 0); /* This means we reuse derived value */ - if (dctx->flags & DRBG_FLAG_CTR_USE_DF) + if (dctx->xflags & DRBG_FLAG_CTR_USE_DF) { adin = NULL; adinlen = 1; @@ -328,7 +328,7 @@ static int drbg_ctr_generate(DRBG_CTX *dctx, for (;;) { inc_128(cctx); - if (!(dctx->flags & DRBG_FLAG_TEST) && !dctx->lb_valid) + if (!(dctx->xflags & DRBG_FLAG_TEST) && !dctx->lb_valid) { AES_encrypt(cctx->V, dctx->lb, &cctx->ks); dctx->lb_valid = 1; @@ -398,7 +398,7 @@ int fips_drbg_ctr_init(DRBG_CTX *dctx) dctx->blocklength = 16; dctx->seedlen = keylen + 16; - if (dctx->flags & DRBG_FLAG_CTR_USE_DF) + if (dctx->xflags & DRBG_FLAG_CTR_USE_DF) { /* df initialisation */ static unsigned char df_key[32] =