2022-06-05 06:21 AM
Working on a project using STM32G071CBT6. Using STM32CubeExpansion_Crypto_V4.0.1 Projects NUCLEO-G071RB Applications RSA PKCS1v1.5_SignVerify Routines
Trying to sign a 138 byte msg.
cmox_rsa_pkcs1v15_verify() returns CMOX_RSA_AUTH_FAIL
Any suggestions?
2022-06-29 05:17 AM
Hello @YGarg,
do you follow the example provided here STM32CubeExpansion_Crypto_V4.0.1\Projects\NUCLEO-G071RB\Applications\RSA\PKCS1v1.5_SignVerify\ ?
Do you first compute the hash of the message ?
Best regards
Jocelyn
2022-06-29 05:54 AM
Thanks for your reply. I was able to solve the problem by correctly choosing the HASH algorithm and the signing algorithm.
Thanks anyway, Regards,