#ed25519 #signatures #signature #nacl #no-std

no-std salty

Small, sweet, swift Ed25519 signatures for microcontrollers

9 releases

0.3.0 Oct 21, 2023
0.2.0 Nov 24, 2021
0.2.0-alpha.2 Jun 10, 2021
0.2.0-alpha.1 Feb 26, 2021
0.0.0 Jun 9, 2019

#282 in Cryptography

Download history 264/week @ 2024-07-23 286/week @ 2024-07-30 590/week @ 2024-08-06 208/week @ 2024-08-13 278/week @ 2024-08-20 208/week @ 2024-08-27 192/week @ 2024-09-03 243/week @ 2024-09-10 1394/week @ 2024-09-17 3991/week @ 2024-09-24 2918/week @ 2024-10-01 3180/week @ 2024-10-08 1953/week @ 2024-10-15 1534/week @ 2024-10-22 2211/week @ 2024-10-29 2338/week @ 2024-11-05

8,837 downloads per month
Used in 5 crates (2 directly)

Apache-2.0 OR MIT

265KB
6K SLoC

Rust 2.5K SLoC // 0.2% comments C 2.5K SLoC // 0.1% comments GNU Style Assembly 1K SLoC // 0.1% comments Shell 8 SLoC // 0.2% comments Bitbake 8 SLoC Alex 7 SLoC

Contains (static library, 4KB) bin/salty-asm.a

salty

Ed25519 signatures for microcontrollers

Overview

Build Status

Small, sweet, swift: Ed25519 signatures for microcontrollers.
With assembly optimizations for Cortex-M4 and Cortex-M33.

NOTE: This is work-in-progress and not audited! The usual warnings apply: Your hamster will explode, etc. etc.

Work on salty is sponsored by

SoloKeys yamnord

Goals

From highest to lowest priority:

  • understandable code
  • timing side-channel free
  • design for easy integration in embedded projects
  • sufficiently small compiled code size
  • useful speed

The Plan

None of these releases exist quite yet.

v0.1.0

Basic signature functionality

v0.2.0

More tests!

  • fuzzing to test correctness against known good implementation
  • side-fuzzing to test for timing side-channels

v0.3.0

Completion! The rest of NaCl.

  • X22519
  • authenticated encryption

License

The scalar29 implementation is from curve25519-daleks's u32 backend: LICENSE.
Salty is licensed under either of Apache License, Version 2.0 or MIT License at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
TweetNaCl is a public-domain library.
fe25519 is licensed under Creative Commons Zero v1.0 Universal.

Dependencies

~0.3–1MB
~20K SLoC