Hi @Michael98006 ,The CMAC operation doesn't requires 16 bytes alignment and you are right normally, you should use the g_nrf_crypto_aes_cbc_mac_128_pad_pkcs7_info option as this is the CMAC algorithm that mandates PKCS7 padding.Therefore, the size ...
Hi @ll132435 ,I have tested on STM32L152 with your IOC project and it's working fine.Could you please try to capture the I2C communication if any on your board ?Best Regards,Benjamin
Hi @ll132435 ,I'm trying to reproduce your test on a nucleo L152 board.In the mean time I see that you are not allocating much memory to the heap and stack.When using MbedTLS, you may need more memory, could you have a try with the a heap of 0x2000 a...
Hi @ll132435 ,Thanks for your interest in STSAFE-A product.The error 6 is STSAFEA_BUFFER_LENGTH_EXCEEDED which append only when you are requesting more bytes than the STSAFE-A internal buffer (507 bytes) but in the authentication() example, there is ...
Hi @Michael98006 ,The error you are reporting is typical when the CMAC implementation is not correct.Be aware that after 50 invalid CMAC in a row, the Pairing key will be blocked.To avoid, blindly testing the CMAC implementation please find below som...