Hi! I’m trying to generate an EdDSA key pair and store it in persistent storage. I then delete the keys and regenerate them. However, after a few successful iterations, my program freezes.
I also noticed that when I enable the hardware accelerator (CONFIG_PSA_CRYPTO_DRIVER_CC3XX=y
), the program freezes immediately during key generation.
Additionally, I’m having trouble debugging my program, likely due to the large number of files in my project.
I’m using the CPN003 board with SDK v2.7.0. What could be c
##Crypto # Enable nordic security backend and PSA APIs # The Zephyr CMSIS emulation assumes that ticks are ms, currently CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000 CONFIG_HEAP_MEM_POOL_SIZE=8192 CONFIG_NRF_SECURITY=y CONFIG_MBEDTLS_PSA_CRYPTO_C=y CONFIG_MBEDTLS_ENABLE_HEAP=y CONFIG_MBEDTLS_HEAP_SIZE=8192 CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE=y CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT=y CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT=y CONFIG_PSA_WANT_ECC_TWISTED_EDWARDS_255=y CONFIG_PSA_WANT_ALG_SHA_512=y CONFIG_PSA_WANT_ALG_PURE_EDDSA=y # Using hardware crypto accelerator CONFIG_PSA_CRYPTO_DRIVER_OBERON=y CONFIG_PSA_CRYPTO_DRIVER_CC3XX=y # For key generation CONFIG_PSA_WANT_GENERATE_RANDOM=y #ECDH CONFIG_PSA_WANT_ALG_ECDH=y CONFIG_PSA_WANT_ECC_MONTGOMERY_255=y #HKDF CONFIG_PSA_WANT_ALG_HKDF=y CONFIG_PSA_WANT_ALG_HMAC=y CONFIG_PSA_WANT_ALG_SHA_256=y CONFIG_PSA_WANT_KEY_TYPE_HMAC=y #AES GCM CONFIG_PSA_WANT_KEY_TYPE_AES=y CONFIG_PSA_WANT_ALG_GCM=y # Enable persistent storage APIs CONFIG_MBEDTLS_PSA_CRYPTO_STORAGE_C=y CONFIG_PSA_WANT_ALG_CTR=y CONFIG_TFM_ITS_ENCRYPTED=y CONFIG_REBOOT=y # Enable secure storage APIs # Using hardware crypto accelerator CONFIG_FLASH=y CONFIG_FLASH_PAGE_LAYOUT=y CONFIG_FLASH_MAP=y CONFIG_NVS=y CONFIG_SETTINGS=y CONFIG_SETTINGS_NVS=y CONFIG_TRUSTED_STORAGE=y #CMAC CONFIG_PSA_WANT_ALG_CMAC=y CONFIG_PSA_WANT_ALG_ECB_NO_PADDING=yausing these issues, and how can I resolve them?