From 5b194767a0a6aef34f1b420c5212405f05717598 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 19 Sep 2023 23:28:38 -0500 Subject: [PATCH] linux: config: iwd needs these config options Signed-off-by: Robert Nelson --- 04_build_linux.sh | 14 ++++++++++++++ patches/linux/mpfs_defconfig | 28 +++++++++++++++++++--------- 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/04_build_linux.sh b/04_build_linux.sh index f2070d5..17956b2 100755 --- a/04_build_linux.sh +++ b/04_build_linux.sh @@ -41,6 +41,20 @@ if [ -f arch/riscv/configs/mpfs_defconfig ] ; then ./scripts/config --set-str CONFIG_LOCALVERSION "-$(date +%Y%m%d)" + ./scripts/config --enable CONFIG_CRYPTO_USER_API_HASH + ./scripts/config --enable CONFIG_CRYPTO_USER_API_SKCIPHER + ./scripts/config --enable CONFIG_KEY_DH_OPERATIONS + ./scripts/config --enable CONFIG_CRYPTO_ECB + ./scripts/config --enable CONFIG_CRYPTO_MD5 + ./scripts/config --enable CONFIG_CRYPTO_CBC + ./scripts/config --enable CONFIG_CRYPTO_SHA256 + ./scripts/config --enable CONFIG_CRYPTO_AES + ./scripts/config --enable CONFIG_CRYPTO_DES + ./scripts/config --enable CONFIG_CRYPTO_CMAC + ./scripts/config --enable CONFIG_CRYPTO_HMAC + ./scripts/config --enable CONFIG_CRYPTO_SHA512 + ./scripts/config --enable CONFIG_CRYPTO_SHA1 + echo "make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig" make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} olddefconfig else diff --git a/patches/linux/mpfs_defconfig b/patches/linux/mpfs_defconfig index 3a0a4d2..2db6644 100644 --- a/patches/linux/mpfs_defconfig +++ b/patches/linux/mpfs_defconfig @@ -5454,7 +5454,7 @@ CONFIG_KEYS=y # CONFIG_TRUSTED_KEYS is not set CONFIG_ENCRYPTED_KEYS=y # CONFIG_USER_DECRYPTED_DATA is not set -# CONFIG_KEY_DH_OPERATIONS is not set +CONFIG_KEY_DH_OPERATIONS=y # CONFIG_SECURITY_DMESG_RESTRICT is not set CONFIG_SECURITY=y CONFIG_SECURITYFS=y @@ -5525,6 +5525,7 @@ CONFIG_CRYPTO_RNG_DEFAULT=m CONFIG_CRYPTO_AKCIPHER2=y CONFIG_CRYPTO_AKCIPHER=y CONFIG_CRYPTO_KPP2=y +CONFIG_CRYPTO_KPP=y CONFIG_CRYPTO_ACOMP2=y CONFIG_CRYPTO_MANAGER=y CONFIG_CRYPTO_MANAGER2=y @@ -5543,7 +5544,8 @@ CONFIG_CRYPTO_AUTHENC=m # Public-key cryptography # CONFIG_CRYPTO_RSA=y -# CONFIG_CRYPTO_DH is not set +CONFIG_CRYPTO_DH=y +# CONFIG_CRYPTO_DH_RFC7919_GROUPS is not set # CONFIG_CRYPTO_ECDH is not set # CONFIG_CRYPTO_ECDSA is not set # CONFIG_CRYPTO_ECRDSA is not set @@ -5556,15 +5558,19 @@ CONFIG_CRYPTO_RSA=y # CONFIG_CRYPTO_AES=y # CONFIG_CRYPTO_AES_TI is not set +# CONFIG_CRYPTO_ANUBIS is not set # CONFIG_CRYPTO_ARIA is not set # CONFIG_CRYPTO_BLOWFISH is not set # CONFIG_CRYPTO_CAMELLIA is not set # CONFIG_CRYPTO_CAST5 is not set # CONFIG_CRYPTO_CAST6 is not set -# CONFIG_CRYPTO_DES is not set +CONFIG_CRYPTO_DES=y # CONFIG_CRYPTO_FCRYPT is not set +# CONFIG_CRYPTO_KHAZAD is not set +# CONFIG_CRYPTO_SEED is not set # CONFIG_CRYPTO_SERPENT is not set # CONFIG_CRYPTO_SM4_GENERIC is not set +# CONFIG_CRYPTO_TEA is not set # CONFIG_CRYPTO_TWOFISH is not set # end of Block ciphers @@ -5572,12 +5578,13 @@ CONFIG_CRYPTO_AES=y # Length-preserving ciphers and modes # # CONFIG_CRYPTO_ADIANTUM is not set +# CONFIG_CRYPTO_ARC4 is not set # CONFIG_CRYPTO_CHACHA20 is not set CONFIG_CRYPTO_CBC=y # CONFIG_CRYPTO_CFB is not set CONFIG_CRYPTO_CTR=m # CONFIG_CRYPTO_CTS is not set -CONFIG_CRYPTO_ECB=m +CONFIG_CRYPTO_ECB=y # CONFIG_CRYPTO_HCTR2 is not set # CONFIG_CRYPTO_KEYWRAP is not set # CONFIG_CRYPTO_LRW is not set @@ -5602,7 +5609,7 @@ CONFIG_CRYPTO_ECHAINIV=m # Hashes, digests, and MACs # CONFIG_CRYPTO_BLAKE2B=y -CONFIG_CRYPTO_CMAC=m +CONFIG_CRYPTO_CMAC=y CONFIG_CRYPTO_GHASH=m CONFIG_CRYPTO_HMAC=y # CONFIG_CRYPTO_MD4 is not set @@ -5612,7 +5619,7 @@ CONFIG_CRYPTO_MICHAEL_MIC=m # CONFIG_CRYPTO_RMD160 is not set CONFIG_CRYPTO_SHA1=y CONFIG_CRYPTO_SHA256=y -CONFIG_CRYPTO_SHA512=m +CONFIG_CRYPTO_SHA512=y # CONFIG_CRYPTO_SHA3 is not set # CONFIG_CRYPTO_SM3_GENERIC is not set # CONFIG_CRYPTO_STREEBOG is not set @@ -5651,15 +5658,18 @@ CONFIG_CRYPTO_DRBG_HMAC=y # CONFIG_CRYPTO_DRBG_CTR is not set CONFIG_CRYPTO_DRBG=m CONFIG_CRYPTO_JITTERENTROPY=m +CONFIG_CRYPTO_KDF800108_CTR=y # end of Random number generation # # Userspace interface # -# CONFIG_CRYPTO_USER_API_HASH is not set -# CONFIG_CRYPTO_USER_API_SKCIPHER is not set +CONFIG_CRYPTO_USER_API=y +CONFIG_CRYPTO_USER_API_HASH=y +CONFIG_CRYPTO_USER_API_SKCIPHER=y # CONFIG_CRYPTO_USER_API_RNG is not set # CONFIG_CRYPTO_USER_API_AEAD is not set +CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE=y # end of Userspace interface CONFIG_CRYPTO_HASH_INFO=y @@ -5725,7 +5735,7 @@ CONFIG_CRYPTO_LIB_CHACHA_GENERIC=m CONFIG_CRYPTO_LIB_CHACHA=m CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=m CONFIG_CRYPTO_LIB_CURVE25519=m -CONFIG_CRYPTO_LIB_DES=m +CONFIG_CRYPTO_LIB_DES=y CONFIG_CRYPTO_LIB_POLY1305_RSIZE=1 CONFIG_CRYPTO_LIB_POLY1305_GENERIC=m CONFIG_CRYPTO_LIB_POLY1305=m