cancel
Showing results for 
Search instead for 
Did you mean: 

cmox_rsa_pkcs1v15_verify() returns CMOX_RSA_AUTH_FAIL

YGarg
Associate II

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?

2 REPLIES 2
Jocelyn RICARD
ST Employee

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

YGarg
Associate II

Thanks for your reply. I was able to solve the problem by correctly choosing the HASH algorithm and the signing algorithm.

Thanks anyway, Regards,