@@ -128,6 +128,37 @@ if(CONFIG_WOLFSSL)
128128 zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/psa/psa_pkcbs.c )
129129 zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/st/stm32.c )
130130
131+ if (CONFIG_WOLFCRYPT_ARMASM)
132+ # tested with board: "qemu_kvm_arm64"
133+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-aes.c )
134+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-32-aes-asm_c.c )
135+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-sha256.c )
136+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-32-sha256-asm_c.c )
137+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-sha512.c )
138+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-sha512-asm_c.c )
139+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-sha3-asm_c.c )
140+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-poly1305.c )
141+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-chacha.c )
142+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/port/arm/armv8-curve25519_c.c )
143+
144+ set (MCPU_FLAGS "-mcpu=cortex-a53+crypto -mstrict-align" )
145+ #set(MCPU_FLAGS "-mcpu=generic+crypto -mstrict-align")
146+ endif ()
147+
148+ if (CONFIG_WOLFCRYPT_INTELASM)
149+ # tested with board: "qemu_x86_64"
150+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/sha256_asm.S )
151+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/sha512_asm.S )
152+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/sha3_asm.S )
153+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/chacha_asm.S )
154+ zephyr_library_sources (${ZEPHYR_CURRENT_MODULE_DIR} /wolfcrypt/src/poly1305_asm.S )
155+
156+ # issues with aesni
157+ #zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/aes_asm.S)
158+ #zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/aes_gcm_x86_asm.S)
159+ #set(MCPU_FLAGS "-march=native -maes -msse4 -mpclmul ")
160+ endif ()
161+
131162 zephyr_library_link_libraries (wolfSSL )
132163
133164 target_compile_definitions (wolfSSL INTERFACE WOLFSSL_ZEPHYR )
0 commit comments