cancel
Showing results for 
Search instead for 
Did you mean: 

RSA support for X509 utilities

FOCal.1
Associate

Hi,

I'm using some STM32 drivers code to parse X509 certificates. These drivers are based on ECC cryptography. I need to change to RSA. I need utilities such as

parseCert()

isValidCert()

isParent()

which exist for ECC, but I cannot find any equivalents for RSA cryptography.

Specifically, I need to check a chain of trust of RSA certificates, and I also need to call RSA_PKCS1v15_Verify() for an RSA signature, so I need to pass in the public key in a structure RSApubKey_stt, and this has to be extracted from the leaf certificate.

The target MCU is STM32H753.

The ECC-based X509 utilties I'm working with are dated 24-february-2017.

Do such utilities exist for RSA? Or do I have to write them myself?

Thanks

1 REPLY 1
Bubbles
ST Employee

Hi @FOCal.1​,

there are various crypto libraries including the X509, I think the most popular is mbed crypto, used for example also in our X-CUBE-SBSFU (SBSFU makes no use of x509, but the library it uses has this capability).

BR,

J

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.