Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include "libzeth/core/hash_stream.hpp"
#include <sodium/crypto_generichash_blake2b.h>
#include <string>
Go to the source code of this file.
Classes | |
class | libzeth::mpc_hash |
Namespaces | |
libzeth | |
Typedefs | |
using | libzeth::mpc_hash_t = size_t[MPC_HASH_ARRAY_LENGTH] |
using | libzeth::mpc_hash_state_t = crypto_generichash_blake2b_state |
using | libzeth::mpc_hash_ostream = hash_ostream< mpc_hash > |
using | libzeth::mpc_hash_ostream_wrapper = hash_ostream_wrapper< mpc_hash > |
using | libzeth::mpc_hash_istream_wrapper = hash_istream_wrapper< mpc_hash > |
Functions | |
void | libzeth::mpc_hash_init (mpc_hash_state_t &state) |
void | libzeth::mpc_hash_update (mpc_hash_state_t &state, const void *in, size_t size) |
void | libzeth::mpc_hash_final (mpc_hash_state_t &state, mpc_hash_t out_hash) |
void | libzeth::mpc_compute_hash (mpc_hash_t out_hash, const void *data, size_t data_size) |
void | libzeth::mpc_compute_hash (mpc_hash_t out_hash, const std::string &data) |
void | libzeth::mpc_hash_write (const mpc_hash_t hash, std::ostream &out) |
bool | libzeth::mpc_hash_read (mpc_hash_t out_hash, std::istream &in) |