Tesla Motors has published a cryptographic library liblithium , the key goals of the creation of which are compactness, low resource consumption and tolerance. The library is originally developing with an eye on the possibility of performing both ordinary CPUs and in DSP chips and microcontrollers, and is suitable for use in limited environment and in the code caused in the early stages of loading digital signatures of the firmware of built-in devices. The code is written in SI (C99) and is distributed under the license Apache 2.0.
The library has implemented means for streaming and working with digital signatures based on the coordination scheme of the keys x25519 ( rfc 7748 ), the cryptographic rearrangement method gimli and Hash functions Gimli-Hash proposed by Daniel J. Bernstein) and allows you to achieve high performance on low-power equipment, such as 8-bit microcontrrollers. The implementation of digital signatures X25519 is based on the framework of the framework strobe and differs from the ED25519 signatures during manipulations with points on Elliptic curve, which can significantly reduce the size of the code, the necessary creation and verification of signatures.