#sodium #nacl #no-std

no-std sodalite

Tweetnacl in pure rust with no std dependency

16 releases

0.4.0 Aug 23, 2020
0.3.0 Sep 29, 2017
0.2.6 Jan 19, 2017
0.2.3 Nov 6, 2016
0.1.0 Oct 16, 2015

#292 in Cryptography

Download history 533/week @ 2024-07-28 320/week @ 2024-08-04 348/week @ 2024-08-11 309/week @ 2024-08-18 212/week @ 2024-08-25 218/week @ 2024-09-01 305/week @ 2024-09-08 198/week @ 2024-09-15 413/week @ 2024-09-22 353/week @ 2024-09-29 295/week @ 2024-10-06 278/week @ 2024-10-13 327/week @ 2024-10-20 503/week @ 2024-10-27 257/week @ 2024-11-03 164/week @ 2024-11-10

1,278 downloads per month
Used in 10 crates (7 directly)

Apache-2.0 OR MIT

43KB
1K SLoC

sodalite

An implimentation of tweetnacl in pure rust. Originally generated by manually translating tweetnacl.c into rust. Tested by verifying outputs match those of tweetnacl.

Todo

  • provide additional APIs:
  • rather than take bare mutable references, use wrapper types around the refs to capture the underlying type (ie: prevent mixing keys between primitives)
  • add a buffer and/or "set-only" abstraction to prevent unsafety wrt uninitialized values (also should allow some internal optimization).
  • sodiumoxide style API that returns values rather than taking mutable refs
  • Use namespacing to seperate different APIs and backend impls
  • start testing against sodiumoxide as well
  • Provide some of the API impovements from libsodium that are missing nacl (disjoint signatures, not requiring special extra space in buffers)

License

Licensed under either of

Contribution

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.

Dependencies

~5–345KB