-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
M0+ version #1
Comments
Hi @martin31821! The amazing speed is mainly due to the availability of the UMAAL instruction in Cortex-M4 which in one cycle computes the 64-bit result of You should be able to use https://munacl.cryptojedi.org/curve25519-cortexm0.shtml on Cortex-M0+ to get decent performance (3.6 Mcycles per operation). I'm working on a slightly optimized version, mainly focusing on reducing the size of the code since the multiplication loop there is too much unrolled, but also use more assembly code to squeeze out more performance. It's similar to https://github.com/Emill/P256-cortex-ecdh/blob/master/P256-cortex-m0-ecdh-keil.s. Please tell me if you think I should polish it and put it up. |
Thanks for the explanation. I also found the curve25519 implementation you linked during my research and I'll test it on my device. |
Thank you @Emill for sharing all these fine work. I'm just to replying here, as another happy M4 version user, to express my intrest to your M0(+) version. Is it already avaliable somewhere? |
Is there an easy way to port this library to the Cortex M0+ (or ARMv6-M in general)?
The text was updated successfully, but these errors were encountered: