1 unstable release

0.1.0 Jul 27, 2023

#16 in #x25519

25 downloads per month
Used in monopiped

CC0 license

415KB
7.5K SLoC

C 6.5K SLoC // 0.3% comments Python 443 SLoC // 0.6% comments Shell 196 SLoC // 0.7% comments Rust 193 SLoC // 0.0% comments

mini-monocypher

mini-monocypher is provides API bindings to Monocypher via the raw FFI bindings provided by mini-monocypher-sys.

Status

Not all of Monocypher API surfacce has been provided by mini-monocypher. This is since hte main consumer (at the time of writing) is Monopiped which only needs a subset of functionality. Over time more support will be added until the library is full-fledged.

The current API supported:

  • crypto_blake2b_* functions
  • crypto_aead_{lock,unlock}
  • crypto_x25519_* functions

lib.rs:

mini-monocypher

A C-like Rust API for Monocypher

This documentation covers the usage of Monocypher through these bindings, but for the intricacies regarding cryptographic usage and security hygiene it is recommended to refer to the Monocypher manual.

Dependencies

~0–2MB
~39K SLoC