Topic: Hardware Crypto Acceleration in Xilinx board with wolfSSL
Hi,
I want to use the hardware crypto acceleration encryption in xilinx board.
I have prepared user_settings.h with below macros.
#define HAVE_TLS_EXTENSIONS
#define HAVE_SUPPORTED_CURVES
#define HAVE_ECC
#define HAVE_HKDF
#define WC_RSA_PSS
#define WC_RSA_BLINDING
#define NO_MULTIBYTE_PRINT
#define WOLFSSL_RIPEMD
#define NO_PSK
#define HAVE_EXTENDED_MASTER
#define WOLFSSL_SNIFFER
#define HAVE_SECURE_RENEGOTIATION
#define HAVE_AESGCM
#define WOLFSSL_SHA384
#define WOLFSSL_SHA512
#define HAVE_SUPPORTED_CURVES
#define HAVE_TLS_EXTENSIONS
#define HAVE_ECC
#define ECC_SHAMIR
#define ECC_TIMING_RESISTANT
#define WOLFSSL_XILINX
#define NO_FILESYSTEM
#define USE_FAST_MATH
#define FREERTOS
#define WOLFSSL_LWIP
#define WOLFSSL_XILINX_CRYPT
#define WOLFSSL_AES_DIRECT
While running the Application, the code execution halts in XSecure_AesEncryptData function in the xil-aesgcm.c file. This file is available in wolfssl library. This file internally calls xil_secure library functions. XSecure_AesEncryptData calls XSecure_AesEncryptInit, XSecure_AesEncryptUpdate functions.
Here are the other details,
1. Board : ZCU102.
2. OS : FreeRTOS.
3. TCP/IP stack : LwIP.
4. WolfSSL version : 4.7.0.
Could you please tell me the reason for execution halts in the XSecure_AesEncryptData function?
Best regards,
Iyaps.