Package vash

Examples of vash.TreeParameters


    // 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.
View Full Code Here


  private final int GALLERY_SIZE = 100;
  private final int WIDTH = 128;
  private final int HEIGHT = 128;

  public void runStaticTest(String algo, String name, int width, int height) {
    TreeParameters tp;
    Tree tree;

    // ensure we have an output directory
    File treeTgt = new File(String.format("./gallery-%s/trees/", name));
    if(!treeTgt.exists()) {
View Full Code Here

TOP

Related Classes of vash.TreeParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.