Crate mini_monocypher

Crate mini_monocypher 

Source
Expand description

§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.

Enums§

ErrorKind
Errors returned by Monocypher

Functions§

crypto_aead_lock
Encrypts and authenticates a plaintext. The output can then be decrypted by crypto_aead_unlock.
crypto_aead_unlock
Decrypts an authenticated ciphertext. Returns () if successful, or ErrorKind if there is a decryption failure.
crypto_blake2b
Computes a BLAKE2b hash for a message.
crypto_blake2b_ctx_new
Returns a BLAKE2b context for use with the incremental interface. Needs to be initialised with crypto_blake2b_init.
crypto_blake2b_final
Computes the final BLAKE2b hash based on ctx. The output of the hash will reside in hash.
crypto_blake2b_init
Initialises a BLAKE2B context for use with the incremental interface.
crypto_blake2b_keyed
Computes a BLAKE2b Message Authentication Code (MAC) for a message.
crypto_blake2b_update
Incrementally computes a BLAKE2b hash based on ctx and a message.
crypto_x25519
Perform an X25519 key exchange between your_secret_key and their_public_key.
crypto_x25519_public_key
Generate an X25519 public key from a secret key.