1/*
2 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License").  You may not use
5 * this file except in compliance with the License.  You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10#ifndef OSSL_CRYPTO_RAND_LOCAL_H
11# define OSSL_CRYPTO_RAND_LOCAL_H
12
13# include <openssl/aes.h>
14# include <openssl/evp.h>
15# include <openssl/sha.h>
16# include <openssl/hmac.h>
17# include <openssl/ec.h>
18# include <openssl/rand.h>
19# include "internal/tsan_assist.h"
20# include "crypto/rand.h"
21
22/* Default reseed intervals */
23# define PRIMARY_RESEED_INTERVAL                 (1 << 8)
24# define SECONDARY_RESEED_INTERVAL               (1 << 16)
25# define PRIMARY_RESEED_TIME_INTERVAL            (60 * 60) /* 1 hour */
26# define SECONDARY_RESEED_TIME_INTERVAL          (7 * 60)  /* 7 minutes */
27
28# ifndef FIPS_MODULE
29/* The global RAND method, and the global buffer and DRBG instance. */
30extern RAND_METHOD ossl_rand_meth;
31# endif
32
33#endif
34