This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 4f5a177eef board/sim/crypto: Enable CONFIG_CRYPTO_SW_AES
4f5a177eef is described below

commit 4f5a177eef5ec1bc118146f1d73f09b2e2496f2d
Author: Xiang Xiao <[email protected]>
AuthorDate: Mon Sep 11 03:15:29 2023 +0800

    board/sim/crypto: Enable CONFIG_CRYPTO_SW_AES
    
    to fix the following linker error:
    /usr/bin/ld: nuttx.rel: in function `aes_encrypt_xform':
    /github/workspace/sources/nuttx/crypto/xform.c:509: undefined reference to 
`aes_encrypt'
    /usr/bin/ld: nuttx.rel: in function `aes_decrypt_xform':
    /github/workspace/sources/nuttx/crypto/xform.c:514: undefined reference to 
`aes_decrypt'
    /usr/bin/ld: nuttx.rel: in function `aes_setkey_xform':
    /github/workspace/sources/nuttx/crypto/xform.c:519: undefined reference to 
`aes_setkey'
    /usr/bin/ld: nuttx.rel: in function `aes_ctr_crypt':
    /github/workspace/sources/nuttx/crypto/xform.c:566: undefined reference to 
`aes_encrypt'
    /usr/bin/ld: nuttx.rel: in function `aes_ctr_setkey':
    /github/workspace/sources/nuttx/crypto/xform.c:585: undefined reference to 
`aes_setkey'
    /usr/bin/ld: nuttx.rel: in function `aes_ofb_encrypt':
    /github/workspace/sources/nuttx/crypto/xform.c:694: undefined reference to 
`aes_encrypt'
    /usr/bin/ld: nuttx.rel: in function `aes_ofb_setkey':
    /github/workspace/sources/nuttx/crypto/xform.c:706: undefined reference to 
`aes_setkey'
    /usr/bin/ld: nuttx.rel: in function `aes_cfb8_encrypt':
    /github/workspace/sources/nuttx/crypto/xform.c:733: undefined reference to 
`aes_encrypt'
    /usr/bin/ld: nuttx.rel: in function `aes_cfb8_decrypt':
    /github/workspace/sources/nuttx/crypto/xform.c:751: undefined reference to 
`aes_encrypt'
    /usr/bin/ld: nuttx.rel: in function `aes_cfb128_encrypt':
    /github/workspace/sources/nuttx/crypto/xform.c:765: undefined reference to 
`aes_encrypt'
    /usr/bin/ld: nuttx.rel: in function `aes_cfb128_decrypt':
    /github/workspace/sources/nuttx/crypto/xform.c:781: undefined reference to 
`aes_encrypt'
    /usr/bin/ld: nuttx.rel: in function `aes_gmac_setkey':
    /github/workspace/sources/nuttx/crypto/gmac.c:135: undefined reference to 
`aes_setkey'
    /usr/bin/ld: /github/workspace/sources/nuttx/crypto/gmac.c:143: undefined 
reference to `aes_encrypt'
    /usr/bin/ld: nuttx.rel: in function `aes_gmac_final':
    /github/workspace/sources/nuttx/crypto/gmac.c:195: undefined reference to 
`aes_encrypt'
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 boards/sim/sim/sim/configs/crypto/defconfig | 1 +
 crypto/Kconfig                              | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/boards/sim/sim/sim/configs/crypto/defconfig 
b/boards/sim/sim/sim/configs/crypto/defconfig
index d2982b4e90..a1285b578a 100644
--- a/boards/sim/sim/sim/configs/crypto/defconfig
+++ b/boards/sim/sim/sim/configs/crypto/defconfig
@@ -23,6 +23,7 @@ CONFIG_CRYPTO_CRYPTODEV=y
 CONFIG_CRYPTO_CRYPTODEV_SOFTWARE=y
 CONFIG_CRYPTO_MBEDTLS=y
 CONFIG_CRYPTO_RANDOM_POOL=y
+CONFIG_CRYPTO_SW_AES=y
 CONFIG_DEBUG_SYMBOLS=y
 CONFIG_DEV_GPIO=y
 CONFIG_DEV_LOOP=y
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 3112b1c227..856dddece8 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -42,7 +42,7 @@ config CRYPTO_CRYPTODEV
 
 config CRYPTO_CRYPTODEV_SOFTWARE
        bool "cryptodev software support"
-       depends on CRYPTO_CRYPTODEV
+       depends on CRYPTO_CRYPTODEV && CRYPTO_SW_AES
        default n
 
 config CRYPTO_CRYPTODEV_HARDWARE

Reply via email to