ocrypto sets the standard for software cryptography on embedded systems
For independent evidence, see the benchmark scores at https://www.eembc.org/securemark/scores.php!
As the measurements demonstrate, no other pure software crypto library even comes close – neither regarding performance score nor energy score. And this is the case even while ocrypto provides side-channel resistance – thanks to strict constant-time, PC-secure and table-free operations on secret data - unlike any of the runners-up.
Here the highlights - ocrypto is about
Some other observations (at the time of writing – December 14, 2021) - ocrypto is
For the detailed comparison, check out the score table.
These numbers come from the EEMBC SecureMark™-TLS benchmark. It has been developed by the vendor-neutral Embedded Microprocessor Benchmark Consortium. It is a cryptography benchmark for IoT devices that measures both energy consumption and performance of cryptographic operations, for a workload that is typical for a microcontroller running a TLS session. This benchmark demonstrates that in spite of its focus on side-channel resistance, ocrypto is fast, and correspondingly energy-efficient.
To allow for a direct comparison, the benchmarks – using ocrypto release 3.0 – have been run on the same hardware as the other libraries: a board with an STM32L476 microcontroller running at 80 or 24 MHz. As Keil compiler flags for these benchmarks, Os (i.e., balanced speed/size) has been used for ocrypto and O2 (i.e., speed) for the competing libraries.
Sometimes, memory footprint is even more important than speed or energy consumption. Unfortunately, the scores for the other libraries have been published without their code, RAM and stack footprints. Internal, non-certified measurements at Oberon yielded the following results. Compared to ocrypto, the benchmark's crypto code of the
For the size comparison, everything was measured using a Keil compiler with the Os compiler flag.
In the end, these results mean that there are real-world IoT security scenarios where you don't have to choose between speed / energy efficiency, memory footprint, and side-channel resistance. ocrypto has set the standard in each dimension.