Skip to content

Commit

Permalink
Revert "[nrf noup] modules: hostap: Use nRF security"
Browse files Browse the repository at this point in the history
This reverts commit b8406eb.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
  • Loading branch information
krish2718 committed Nov 14, 2024
1 parent a98204d commit 7346e44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 53 deletions.
10 changes: 2 additions & 8 deletions modules/hostap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,8 @@ zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
${HOSTAP_SRC_BASE}/tls/asn1.c
)

# crypto mbedtls related CRYPTO OR LEGACY_NCS
if(DEFINED CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO OR
DEFINED CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_LEGACY_NCS OR
DEFINED CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_LEGACY_NCS_PSA)
# crypto mbedtls related
if(CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO)
zephyr_library_sources(
${HOSTAP_SRC_BASE}/crypto/crypto_mbedtls-bignum.c
${HOSTAP_SRC_BASE}/crypto/crypto_mbedtls-ec.c
Expand Down Expand Up @@ -653,8 +651,4 @@ if(CONFIG_SAE_PWE_EARLY_EXIT)
"please use it carefully and do not use it production.")
endif()

zephyr_library_compile_definitions_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT
MBEDTLS_NIST_KW_C
)

endif()
47 changes: 2 additions & 45 deletions modules/hostap/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -149,63 +149,20 @@ config WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT
select MBEDTLS_CIPHER
select MBEDTLS_ECP_C
select MBEDTLS_ECP_ALL_ENABLED
select MBEDTLS_CMAC_C
select MBEDTLS_CMAC
select MBEDTLS_PKCS5_C
select MBEDTLS_PK_WRITE_C
select MBEDTLS_ECDH_C
select MBEDTLS_ECDSA_C
select MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
select MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
select MBEDTLS_NIST_KW_C
select MBEDTLS_DHM_C
select MBEDTLS_HKDF_C
select MBEDTLS_SERVER_NAME_INDICATION
select MBEDTLS_X509_CRL_PARSE_C
select MBEDTLS_TLS_VERSION_1_2

config WIFI_NM_WPA_SUPPLICANT_CRYPTO_LEGACY_NCS
bool "Legacy Crypto support for WiFi using nRF security"
select MBEDTLS
select NRF_SECURITY
select MBEDTLS_CIPHER_MODE_CBC
select MBEDTLS_CIPHER_MODE_CTR
select MBEDTLS_LEGACY_CRYPTO_C
select MBEDTLS_SHA1_C
select MBEDTLS_ECP_C
select MBEDTLS_CTR_DRBG_C
select MBEDTLS_PK_C
select MBEDTLS_PKCS5_C
select MBEDTLS_PK_PARSE_C
select MBEDTLS_CMAC_C
select MBEDTLS_CIPHER_PADDING_PKCS7
select MBEDTLS_PK_WRITE_C
select MBEDTLS_KEY_EXCHANGE_ALL_ENABLED

config WIFI_NM_WPA_SUPPLICANT_CRYPTO_LEGACY_NCS_PSA
bool "PSA Crypto support for WiFi using nRF security"
select MBEDTLS
select NRF_SECURITY
select PSA_WANT_GENERATE_RANDOM
# Legacy crypto, still needed
select MBEDTLS_SHA1_C
select MBEDTLS_LEGACY_CRYPTO_C
select MBEDTLS_CMAC_C
select MBEDTLS_GCM_C
select MBEDTLS_TLS_LIBRARY
select MBEDTLS_PK_C
select MBEDTLS_PK_WRITE_C
select MBEDTLS_X509_LIBRARY
select MBEDTLS_X509_CRT_PARSE_C
select MBEDTLS_CIPHER_C
select MBEDTLS_CIPHER_MODE_CTR
select MBEDTLS_CIPHER_MODE_CBC
select MBEDTLS_SSL_TLS_C
select MBEDTLS_ECP_C
select MBEDTLS_CTR_DRBG_C
select MBEDTLS_KEY_EXCHANGE_ALL_ENABLED
select MBEDTLS_MD_C
select MBEDTLS_CIPHER_PADDING_PKCS7
select MBEDTLS_PKCS5_C

config WIFI_NM_WPA_SUPPLICANT_CRYPTO_NONE
bool "No Crypto support for WiFi"

Expand Down

0 comments on commit 7346e44

Please sign in to comment.