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