How do I use libtomcrypt to import an RSA public key?
问题 I am experimenting with using libtomcrypt to do RSA-2048 bit encryption. My current objective is to import a public key from a file. This file was generated using OpenSSL with the command: $ openssl rsa -in private.pem -outform PEM -pubout -out public.pem So I believe my public key is in PKCS#1 padding and in OpenSSL's PEM format. I believe the function I need to use is rsa_import(), but that takes an in buffer, a length, and outputs an rsa_key pointer. Just to be clear, I believe what I need