STM32 cryptolib issue.
Hi guys i am trying to use stm32cryptolib library's encryption function. the main problem i am facing when i am trying to call the cmox_initialize function it is giving the error
cmox_init.c:(.text+0x1a): undefined reference to `cmox_ll_init'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:64: crypto.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
but it is strange although i have included the include file to path under which it's .h comes.
The other err which i am facing that is this function written below is not returning CMOX_HASH_SUCCESS
cmox_mac_retval_t ret_val = cmox_mac_compute(
CMOX_HMAC_SHA256_ALGO, // Algorithm
message, sizeof(message)-1, // Message and its length
(const uint8_t *)key, strlen(key), // Key and its length
NULL, 0, // No custom data
hmac_bin, sizeof(hmac_bin), // Output tag and expected size
&tag_len // Output tag length pointer
);
