// The seed string is the value that we are hashing.
byte[] data = "Foo".getBytes();
// The tree parameters encapsulate everything the Tree class needs to know
// to build a unique tree, based on the passed string of data.
TreeParameters tp = null;
try {
tp = TreeParameters.createInstance(algorithm, data);
} catch(NoSuchAlgorithmException e) {
// Vash makes heavy use of the system's crytographic primitives, including
// SHA-512 and SHA-256, which were under export regulations some years ago.