#ffi #nacl #no-std

sys no-std tweetnacl-sys

tweetnacl & FFI bindings to it

6 releases

0.1.5 Feb 12, 2021
0.1.4 Aug 23, 2020
0.1.3 Sep 29, 2017
0.1.2 Jan 19, 2017
0.1.0 Feb 28, 2016

#1893 in Cryptography

Download history 42/week @ 2024-07-19 62/week @ 2024-07-26 27/week @ 2024-08-02 19/week @ 2024-08-09 15/week @ 2024-08-16 14/week @ 2024-08-23 15/week @ 2024-08-30 12/week @ 2024-09-06 19/week @ 2024-09-13 39/week @ 2024-09-20 43/week @ 2024-09-27 28/week @ 2024-10-04 26/week @ 2024-10-11 28/week @ 2024-10-18 3/week @ 2024-10-25 4/week @ 2024-11-01

62 downloads per month
Used in 3 crates (via tweetnacl)

MIT/Apache

24KB
856 lines

sodalite

An implementation 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 separate different APIs and backend impls
  • start testing against sodiumoxide as well
  • Provide some of the API improvements 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

~7–290KB