Write MPI values in SPIFFS file
Posted: Mon Sep 17, 2018 11:09 pm
Hello,
I have generated RSA key pairs in ESP32 using mbedtls APIs. The key values are exported to MPIs. I want to copy the values of MPI in the SPIFFS file. I tried to follow this to copy values of MPI in SPIFFS file
https://tls.mbed.org/api/bignum_8h.html#ab23e312f4a0479c8b63a4bc9328e1324
I don't know how to pass the output file handle(4th argument) to the mbedtls_mpi_write_file. Could anyone of you help me how to create or pass the output file handle of a SPIFFS file? Or is there any other way to copy the values of MPI to a file in ESP32?
I already created and opened a SPIFFS file with write permission. I don't want to use external SD card to save the file.
Any help or suggestion will be appreciated.
Thank You
I have generated RSA key pairs in ESP32 using mbedtls APIs. The key values are exported to MPIs. I want to copy the values of MPI in the SPIFFS file. I tried to follow this to copy values of MPI in SPIFFS file
https://tls.mbed.org/api/bignum_8h.html#ab23e312f4a0479c8b63a4bc9328e1324
I don't know how to pass the output file handle(4th argument) to the mbedtls_mpi_write_file. Could anyone of you help me how to create or pass the output file handle of a SPIFFS file? Or is there any other way to copy the values of MPI to a file in ESP32?
I already created and opened a SPIFFS file with write permission. I don't want to use external SD card to save the file.
Any help or suggestion will be appreciated.
Thank You