public static class Blake2b.Tree
extends java.lang.Object
Constructor and Description |
---|
Tree(int depth,
int fanout,
int leaf_length,
int inner_length,
int digest_length) |
Modifier and Type | Method and Description |
---|---|
Blake2b.Digest |
getNode(int depth,
int offset)
returns the Digest for tree node @ (depth, offset)
|
Blake2b.Digest |
getRoot()
returns the Digest for root node
|
public Tree(int depth, int fanout, int leaf_length, int inner_length, int digest_length)
fanout
- depth
- leaf_length
- size of data input for leaf nodes.inner_length
- note this is used also as digest-length for non-root nodes.digest_length
- final hash out digest-length for the treepublic final Blake2b.Digest getNode(int depth, int offset)
public final Blake2b.Digest getRoot()