Closed TGiles1998 closed 2 years ago
Command used:
make -C ports/esp32/ BOARD="GENERIC_S3_SPIRAM" USER_C_MODULES="/Users/thomasgiles/esp-VS/micropython-3/ports/esp32/boards/GENERIC_S3_SPIRAM/ucrypto"
I havn't a esp32 for test it and time to try it.
But any PR are welcome!
@dmazzella Thank you, can u provide a skeleton example for a cmake file? Im happy to do the rest and then open a pull request. I'm just not sure how to add a correct cmake file. Many thanks!
Hi,
Does this seem reasonable?
Many thanks,
Thomas
add_library(usermod_ufastecdsa INTERFACE)
target_sources(usermod_ufastecdsa INTERFACE ${CMAKE_CURRENT_LIST_DIR}/moducrypto.c )
target_include_directories(usermod_ufastecdsa INTERFACE ${CMAKE_CURRENT_LIST_DIR} )
target_link_libraries(usermod INTERFACE usermod_ufastecdsa)
try with last push
Please give me feedback on this, I have only tested the build.
Going to start documenting errors from build:
if isinstance(h1, hashlib.md5):
hash_size = 16
hashlib.md5 is not a thing
util.py line 69
Also in the case of hmac.py line 51 and line 65
ERROR A stack overflow in task mp_task has been detected. When running fast_ecdsa1.py
@dmazzella Are there any other ecc repos for MicroPython out there?
@dmazzella Are there any other ecc repos for MicroPython out there?
I don't know any others
@dmazzella Are there any other ecc repos for MicroPython out there?
I don't know any others
Ok no worries I'm gonna try and work through it and get a working version.
Ok no worries I'm gonna try and work through it and get a working version.
thank you, without hardware it is difficult for me to test porting to a new platform.
Hi @dmazzella
Unfortunately I could not get this to work, the python in this repo also needs altering.
Thanks
Thomas
Hi @dmazzella
Unfortunately I could not get this to work, the python in this repo also needs altering.
Thanks
Thomas
native part work for you?
I am closing this for now, in case of future updates, please feel free to reopen it.
Hi,
Do you have to change the make file to a cmake file in order for this to compile?
-- Adding linker script /Users/thomasgiles/esp-VS/micropython-3/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld Including User C Module(s) from /Users/thomasgiles/esp-VS/micropython-3/ports/esp32/boards/GENERIC_S3_SPIRAM/ucrypto CMake Error at /Users/thomasgiles/esp-VS/micropython-3/py/usermod.cmake:42 (include): include requested file is a directory:
Call Stack (most recent call first): main/CMakeLists.txt:10 (include)
Many thanks,
Thomas