PolarSSL is now part of ARM Official announcement and rebranded as mbed TLS.

mbedtls_mpi_write_binary_LE as a new feature

Jan 23, 2018 14:28

Could we have add a funciton to mbedTLS that writes an mpi to an array, little-endian formatted? This would be the counter function to mbedtls_mpi_write_binary that stores data in big-endian.

Jan 24, 2018 18:29
Ron Eldor

Hi Trinity,
Thank you for your suggestion. Could you describe the rationale for such a feature?
Mbed TLS team member

Jan 25, 2018 07:46

Both our RSA / DH and our ECC hardware accelerator expect data being formated in little-endian. So somewhere down the line a conversion of MPI --> binary data (little-endian) needs to be done. Functions provided at the moment only write to / read from big-endian formated arrays.