mbedtls_mpi_write_binary_LE as a new feature
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.
Thank you for your suggestion. Could you describe the rationale for such a feature?
Mbed TLS team member
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.