C25519 cryptographic library

Curve25519 and Ed25519 for low-memory systems.

Curve25519 and Ed25519 for low-memory systems.

This package contains portable public-domain implementations of Daniel J. Bernstein's Curve255191 Diffie-Hellman function, and of the Ed25519 signature system. The memory consumption is low enough that they could be reasonably considered for most microcontroller applications. In particular, Curve25519 scalar multiplication uses less than half a kB of peak stack usage.


C25519 requires around 1K of stack, so beware that you're allocating at least THREAD_STACKSIZE_DEFAULT + 1K bytes.

You can do it easily by adding:


to your makefile.


Just add it as a package in your application:

USEPKG += c25519
See also