#include <stdlib.h>
#include <string.h>
#include <openssl/crypto.h>
-#include <openssl/evp.h>
-#include <openssl/aes.h>
#include <openssl/fips.h>
#include <openssl/fips_rand.h>
#include "fips_rand_lcl.h"
{
/* 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;
dctx->max_adin = dctx->seedlen;
}
- dctx->max_request = 1<<19;
+ dctx->max_request = 1<<16;
dctx->reseed_interval = 1<<24;
return 1;