This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM263P4: AsymCrypt_RSAPrivkey derivation from .pem

Part Number: AM263P4


Tool/software:

We are looking to use the PKA engine to do RSA encryption and decryption however we cant find anyway to derive the AsymCrypt_RSAPrivkey data type from a .pem file we have stored to be able to call the RSA private function call ( AsymCrypt_Return_t AsymCrypt_RSAPrivate(AsymCrypt_Handle handle, const uint32_t m[RSA_MAX_LENGTH], const struct AsymCrypt_RSAPrivkey *k, uint32_t result[RSA_MAX_LENGTH]))

Does anyone know how to convert a RSA private key .pem file into the AsymCrypt_RSAPrivkey data type?

  • Hi,

    Sorry for the delay in response.

    The format to be provided as input to the API is BigInt format.

    The TIFS documentation provides APIs in C:\ti\tifs_am263px_11_00_00_01\source\imports\security_common\drivers\crypto\crypto_util.h, such as Crypto_Uint32ToBigInt, which would get the data in the bigInt format, which can be provided into AsymCrypt_RSAPrivate

    Thanks and Regards,

    Nikhil Dasan