From 0da40c5d65301b0a994c151e5296fab8906bc7b9 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Tue, 10 Sep 2024 17:59:05 +0800 Subject: [PATCH] greenhills: fix the arc4random_buf implicit declaration build error "/home/guoshichao/work_profile/vela_os/vela_car_5/nuttx/include/crypto/curve25519.h", line 44: error #223-D: function arc4random_buf declared implicitly arc4random_buf(secret, CURVE25519_KEY_SIZE); ^ Signed-off-by: guoshichao --- crypto/CMakeLists.txt | 2 +- crypto/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 50bff44c21..b215b32559 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -55,11 +55,11 @@ if(CONFIG_CRYPTO) list(APPEND SRCS hmac.c) if(CONFIG_CRYPTO_RANDOM_POOL) list(APPEND SRCS idgen.c) + list(APPEND SRCS curve25519.c) endif() list(APPEND SRCS key_wrap.c) list(APPEND SRCS siphash.c) list(APPEND SRCS hmac_buff.c) - list(APPEND SRCS curve25519.c) list(APPEND SRCS bn.c) # Entropy pool random number generator diff --git a/crypto/Makefile b/crypto/Makefile index de41512f5e..94b8d32ce4 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -59,11 +59,11 @@ CRYPTO_CSRCS += cmac.c CRYPTO_CSRCS += hmac.c ifeq ($(CONFIG_CRYPTO_RANDOM_POOL),y) CRYPTO_CSRCS += idgen.c + CRYPTO_CSRCS += curve25519.c endif CRYPTO_CSRCS += key_wrap.c CRYPTO_CSRCS += siphash.c CRYPTO_CSRCS += hmac_buff.c -CRYPTO_CSRCS += curve25519.c CRYPTO_CSRCS += bn.c # Entropy pool random number generator