]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/rand/rand_local.h
Update copyright year
[thirdparty/openssl.git] / crypto / rand / rand_local.h
CommitLineData
b1322259 1/*
3c2bdd7d 2 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
8ad7635e 3 *
0db63de9 4 * Licensed under the Apache License 2.0 (the "License"). You may not use
b1322259
RS
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
8ad7635e
UM
8 */
9
ae4186b0
DMSP
10#ifndef OSSL_CRYPTO_RAND_LOCAL_H
11# define OSSL_CRYPTO_RAND_LOCAL_H
8ad7635e 12
12fb8c3d
RS
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>
7d615e21 18# include <openssl/rand.h>
a83dc59a 19# include "internal/tsan_assist.h"
25f2138b 20# include "crypto/rand.h"
12fb8c3d 21
a93ba405 22/* Default reseed intervals */
ce3080e9
P
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
75e2c877 28/* The global RAND method, and the global buffer and DRBG instance. */
1335ca4b 29extern RAND_METHOD ossl_rand_meth;
12fb8c3d 30
8ad7635e 31#endif