Provided by: liblibrecast-dev_0.8.0-1.1build1_amd64
NAME
mdex_tree_hash - create hash of merkle tree root
LIBRARY
Librecast library (liblibrecast, -llibrecast)
SYNOPSIS
#include <librecast/mdex.h> int mdex_tree_hash(unsigned char *hash, size_t hashlen, mtree_t *mtree, size_t n); Compile and link with -llibrecast.
DESCRIPTION
The mdex_tree_hash function creates a hash of length hashlen from the root node of mtree with key n. This is used to index an mtree in several parts, and to distinguish the root node from the first data node when nodes = 1.
RETURN VALUE
The mdex_tree_hash() returns zero on success. On error, -1 is returned.
SEE ALSO
hash_generic_key(3), mdex_init(3), mdex_free(3), mdex_get(3), mdex_put(3), mdex_del(3), lc_share(3)