This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problem in adding cypto-graphic function to project

Hi to all, i am developing an app with nrf52840 and i want to use cc310 backend to generate ecc public/private key pair. after adding some files and enabling cc310 backend and yring to use nrf_crypto_ecc_key_pair_generate func to create key pair, the program encountred with below errors, can any one say me where can i find implementation of the function that listed below??

.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol nrf_crypto_backend_cc310_key_pair_generate (referred from nrf_crypto_ecc.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol nrf_crypto_backend_cc310_private_key_from_raw (referred from nrf_crypto_ecc.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol nrf_crypto_backend_cc310_private_key_to_raw (referred from nrf_crypto_ecc.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol nrf_crypto_backend_cc310_public_key_from_raw (referred from nrf_crypto_ecc.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol nrf_crypto_backend_cc310_public_key_to_raw (referred from nrf_crypto_ecc.o).

i am using sdk15 and soft device 14 with keil compiler

Parents Reply
  • Thanks for your response, now i am able to compile the project and calling the function nrf_crypto_ecc_key_pair_generate. but still i am not able to create key pairs. when i call the nrf_crypto_ecc_key_pair_generate function it return 0x00008502 error code. i had enabled NRF_CRYPTO and NRF_CRYPTO_CC310_ENABLED macros int the sdk_config.h and also memory allocator had set to default in the sdk_config. when i debug the app, i saw that nrf_crypto_ecc_key_pair_generate function itself invoke CRYS_ECPKI_GenKeyPair function and this function return CRYS_RND_INSTANTIATION_NOT_DONE_ERROR. do you know how can i sove this problem??

    thanks

Children
No Data
Related