| 
    Zeth - Zerocash on Ethereum
    0.8
    
   Reference implementation of the Zeth protocol by Clearmatics 
   | 
 
 
 
 
Go to the documentation of this file.
    5 #ifndef __ZETH_MPC_GROTH16_MPC_HASH_HPP__ 
    6 #define __ZETH_MPC_GROTH16_MPC_HASH_HPP__ 
   10 #include <sodium/crypto_generichash_blake2b.h> 
   17 static const size_t MPC_HASH_SIZE_BYTES = 64;
 
   18 static const size_t MPC_HASH_ARRAY_LENGTH =
 
   19     MPC_HASH_SIZE_BYTES / 
sizeof(size_t);
 
   49     void update(
const void *, 
size_t);
 
   59 #endif // __ZETH_MPC_GROTH16_MPC_HASH_HPP__ 
  
Wrap some ostream, hashing data as it is written.
 
void mpc_hash_final(mpc_hash_state_t &state, mpc_hash_t out_hash)
 
crypto_generichash_blake2b_state mpc_hash_state_t
 
size_t[MPC_HASH_ARRAY_LENGTH] mpc_hash_t
 
void mpc_hash_update(mpc_hash_state_t &state, const void *in, size_t size)
 
void update(const void *, size_t)
 
bool mpc_hash_read(mpc_hash_t out_hash, std::istream &in)
 
void mpc_hash_write(const mpc_hash_t hash, std::ostream &out)
 
Simple ostream which hashes any incoming data and discards it.
 
void mpc_compute_hash(mpc_hash_t out_hash, const void *data, size_t data_size)
 
Wrap some istream, hashing all data as it is read.
 
void mpc_hash_init(mpc_hash_state_t &state)