/** * returns a String representation of the treehash instance */ public String toString() { String out = "Treehash : "; for (int i = 0; i < 6 + tailLength; i++) { out = out + this.getStatInt()[i] + " "; } for (int i = 0; i < 3 + tailLength; i++) { if (this.getStatByte()[i] != null) { out = out + new String(Hex.encode((this.getStatByte()[i]))) + " "; } else { out = out + "null "; } } out = out + " " + this.messDigestTree.getDigestSize(); return out; }
/** * returns a String representation of the treehash instance */ public String toString() { String out = "Treehash : "; for (int i = 0; i < 6 + tailLength; i++) { out = out + this.getStatInt()[i] + " "; } for (int i = 0; i < 3 + tailLength; i++) { if (this.getStatByte()[i] != null) { out = out + new String(Hex.encode((this.getStatByte()[i]))) + " "; } else { out = out + "null "; } } out = out + " " + this.messDigestTree.getDigestSize(); return out; }
.getStatByte()[0])); seqOfByte.add(new DEROctetString(currentTreehash[i][j] .getStatByte()[1])); seqOfByte.add(new DEROctetString(currentTreehash[i][j] .getStatByte()[2])); for (int k = 0; k < tailLength; k++) .getStatByte()[3 + k])); .getStatByte()[0])); seqOfByte.add(new DEROctetString(nextTreehash[i][j] .getStatByte()[1])); seqOfByte.add(new DEROctetString(nextTreehash[i][j] .getStatByte()[2])); for (int k = 0; k < tailLength; k++) .getStatByte()[3 + k])); .getTreehash()[j].getStatByte()[0])); seqOfByte.add(new DEROctetString(nextNextRoot[i] .getTreehash()[j].getStatByte()[1])); seqOfByte.add(new DEROctetString(nextNextRoot[i] .getTreehash()[j].getStatByte()[2])); for (int k = 0; k < tailLength; k++) .getTreehash()[j].getStatByte()[3 + k]));
.getStatByte()[0])); seqOfByte.add(new DEROctetString(currentTreehash[i][j] .getStatByte()[1])); seqOfByte.add(new DEROctetString(currentTreehash[i][j] .getStatByte()[2])); for (int k = 0; k < tailLength; k++) .getStatByte()[3 + k])); .getStatByte()[0])); seqOfByte.add(new DEROctetString(nextTreehash[i][j] .getStatByte()[1])); seqOfByte.add(new DEROctetString(nextTreehash[i][j] .getStatByte()[2])); for (int k = 0; k < tailLength; k++) .getStatByte()[3 + k])); .getTreehash()[j].getStatByte()[0])); seqOfByte.add(new DEROctetString(nextNextRoot[i] .getTreehash()[j].getStatByte()[1])); seqOfByte.add(new DEROctetString(nextNextRoot[i] .getTreehash()[j].getStatByte()[2])); for (int k = 0; k < tailLength; k++) .getTreehash()[j].getStatByte()[3 + k]));