forked from wolfSSL/wolfssl
adjustment to compatibility in random.h file
This commit is contained in:
@@ -23,7 +23,16 @@
|
|||||||
#ifndef CTAO_CRYPT_RANDOM_H
|
#ifndef CTAO_CRYPT_RANDOM_H
|
||||||
#define CTAO_CRYPT_RANDOM_H
|
#define CTAO_CRYPT_RANDOM_H
|
||||||
|
|
||||||
|
/* for random.h compatibility */
|
||||||
#include <wolfssl/wolfcrypt/random.h>
|
#include <wolfssl/wolfcrypt/random.h>
|
||||||
|
#define InitRng wc_InitRng
|
||||||
|
#define RNG_GenerateBlock wc_RNG_GenerateBlock
|
||||||
|
#define RNG_GenerateByte wc_RNG_GenerateByte
|
||||||
|
|
||||||
|
#if defined(HAVE_HASHDRBG) || defined(NO_RC4)
|
||||||
|
#define FreeRng wc_FreeRng
|
||||||
|
#define RNG_HealthTest wc_RNG_HealthTest
|
||||||
|
#endif /* HAVE_HASHDRBG || NO_RC4 */
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_RANDOM_H */
|
#endif /* CTAO_CRYPT_RANDOM_H */
|
||||||
|
|
||||||
|
@@ -46,17 +46,6 @@
|
|||||||
* using old function calls
|
* using old function calls
|
||||||
*/
|
*/
|
||||||
#ifndef HAVE_FIPS
|
#ifndef HAVE_FIPS
|
||||||
/* for random.h compatibility */
|
|
||||||
#include <wolfssl/wolfcrypt/random.h>
|
|
||||||
#define InitRng wc_InitRng
|
|
||||||
#define RNG_GenerateBlock wc_RNG_GenerateBlock
|
|
||||||
#define RNG_GenerateByte wc_RNG_GenerateByte
|
|
||||||
|
|
||||||
#if defined(HAVE_HASHDRBG) || defined(NO_RC4)
|
|
||||||
#define FreeRng wc_FreeRng
|
|
||||||
#define RNG_HealthTest wc_RNG_HealthTest
|
|
||||||
#endif /* HAVE_HASHDRBG || NO_RC4 */
|
|
||||||
|
|
||||||
#ifndef NO_AES
|
#ifndef NO_AES
|
||||||
#include <wolfssl/wolfcrypt/aes.h>
|
#include <wolfssl/wolfcrypt/aes.h>
|
||||||
#define AesSetKey wc_AesSetKey
|
#define AesSetKey wc_AesSetKey
|
||||||
|
Reference in New Issue
Block a user