Skip to main content
YGarg
Associate II
June 5, 2022
Question

cmox_rsa_pkcs1v15_verify() returns CMOX_RSA_AUTH_FAIL

  • June 5, 2022
  • 2 replies
  • 1091 views

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
June 29, 2022

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
June 29, 2022

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

Thanks anyway, Regards,