I'd like to test the basic encrypt/decrypt functions in the RSA API. For example, given a set of arbitrary data bytes, I'd like to encrypt them using a public key and decrypt the resulting cipher text using a private key to get back my original data. I'm using the rsa_example.c code in the "Crypto_API_Example" project referenced in the following link as a starting point: https://www.renesas.com/en-us/doc/products/renesas-synergy/apn/r30an0261eu0101-synergy-crypto.pdf I see that the encrypt and decrypt API calls take pointers to public and private keys respectively, but it's not clear to me from the rsa_example.c code (or any other resource I could find) what the format of these keys should be. Can someone clarify what the format of the public/private keys should be for the encrypt/decrypt functions? Anyone successfully use the RSA API to do basic encrypt/decrypt operations? Thanks in advance for the help. -Earvin
↧