Skip to main content
YGarg
Associate II
Jun 5, 2022 1:21 PM UTC
Question

cmox_rsa_pkcs1v15_verify() returns CMOX_RSA_AUTH_FAIL

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?

This topic has been closed for replies.

2 replies

Jocelyn RICARD
ST Employee
Jun 29, 2022 12:17 PM UTC

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
YGargAuthor
Associate II
Jun 29, 2022 12:54 PM UTC

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

Thanks anyway, Regards,