/* * Copyright 2011-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */#include<string.h>#include"internal/nelem.h"#include<openssl/crypto.h>#include<openssl/err.h>#include<openssl/rand.h>#include<openssl/obj_mac.h>#include<openssl/evp.h>#include<openssl/aes.h>#include"../crypto/rand/rand_lcl.h"#include"../include/crypto/rand.h"#if defined(_WIN32)#include<windows.h>#endif#if defined(OPENSSL_SYS_UNIX)#include<sys/types.h>#include<sys/wait.h>#include<unistd.h>#endif#include"testutil.h"#include"drbgtest.h"typedefstructdrbg_selftest_data_st{intpost;intnid;unsignedintflags;/* KAT data for no PR */constunsignedchar*entropy;size_tentropylen;constunsignedchar*nonce;size_tnoncelen;constunsignedchar*pers;size_tperslen;constunsignedchar*adin;size_tadinlen;constunsignedchar*entropyreseed;size_tentropyreseedlen;constunsignedchar*adinreseed;size_tadinreseedlen;constunsignedchar*adin2;size_tadin2len;constunsignedchar*expected;