2016-05-18 02:52:22 +08:00
|
|
|
/*
|
|
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
2000-07-20 05:43:23 +08:00
|
|
|
*
|
2016-05-18 02:52:22 +08:00
|
|
|
* Licensed under the OpenSSL license (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
|
2000-07-20 05:43:23 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HEADER_RAND_LCL_H
|
2015-01-22 11:40:55 +08:00
|
|
|
# define HEADER_RAND_LCL_H
|
2000-07-20 05:43:23 +08:00
|
|
|
|
2017-06-22 21:21:43 +08:00
|
|
|
/* we require 256 bits of randomness */
|
|
|
|
# define RANDOMNESS_NEEDED (256 / 8)
|
2000-07-20 05:43:23 +08:00
|
|
|
|
2015-01-22 11:40:55 +08:00
|
|
|
# include <openssl/evp.h>
|
2017-06-22 21:21:43 +08:00
|
|
|
# include <openssl/sha.h>
|
|
|
|
|
|
|
|
# define RAND_DIGEST EVP_sha1()
|
|
|
|
# define RAND_DIGEST_LENGTH SHA_DIGEST_LENGTH
|
2000-07-20 05:43:23 +08:00
|
|
|
|
2017-06-22 21:21:43 +08:00
|
|
|
extern RAND_METHOD openssl_rand_meth;
|
2000-07-20 05:43:23 +08:00
|
|
|
|
|
|
|
#endif
|