69c96301223f973e67e83d5aab67e267221d4e3e
[openssl.git] / crypto / rand / rand_lcl.h
1 /*
2  * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (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 HEADER_RAND_LCL_H
11 # define HEADER_RAND_LCL_H
12
13 /* we require 256 bits of randomness */
14 # define RANDOMNESS_NEEDED (256 / 8)
15
16 # include <openssl/evp.h>
17 # include <openssl/sha.h>
18
19 # define RAND_DIGEST EVP_sha1()
20 # define RAND_DIGEST_LENGTH        SHA_DIGEST_LENGTH
21
22 extern RAND_METHOD openssl_rand_meth;
23
24 #endif