]> git.ipfire.org Git - thirdparty/openssl.git/blob - crypto/rand/rand_local.h
rand_drbg: remove RAND_DRBG.
[thirdparty/openssl.git] / crypto / rand / rand_local.h
1 /*
2 * Copyright 1995-2020 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 /* The global RAND method, and the global buffer and DRBG instance. */
29 extern RAND_METHOD rand_meth;
30
31 #endif