/** * 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; }
int tailLength = currentTreehash[i][j].getStatInt()[1]; currentTreehash[i][j].getStatInt()[0])); seqOfInt.add(new ASN1Integer(tailLength)); seqOfInt.add(new ASN1Integer( currentTreehash[i][j].getStatInt()[2])); seqOfInt.add(new ASN1Integer( currentTreehash[i][j].getStatInt()[3])); seqOfInt.add(new ASN1Integer( currentTreehash[i][j].getStatInt()[4])); seqOfInt.add(new ASN1Integer( currentTreehash[i][j].getStatInt()[5])); for (int k = 0; k < tailLength; k++) .getStatInt()[6 + k])); int tailLength = nextTreehash[i][j].getStatInt()[1]; .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[0])); seqOfInt.add(new ASN1Integer(tailLength)); seqOfInt .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[2])); seqOfInt .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[3])); seqOfInt .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[4])); seqOfInt .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[5])); for (int k = 0; k < tailLength; k++)
int tailLength = currentTreehash[i][j].getStatInt()[1]; currentTreehash[i][j].getStatInt()[0])); seqOfInt.add(new ASN1Integer(tailLength)); seqOfInt.add(new ASN1Integer( currentTreehash[i][j].getStatInt()[2])); seqOfInt.add(new ASN1Integer( currentTreehash[i][j].getStatInt()[3])); seqOfInt.add(new ASN1Integer( currentTreehash[i][j].getStatInt()[4])); seqOfInt.add(new ASN1Integer( currentTreehash[i][j].getStatInt()[5])); for (int k = 0; k < tailLength; k++) .getStatInt()[6 + k])); int tailLength = nextTreehash[i][j].getStatInt()[1]; .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[0])); seqOfInt.add(new ASN1Integer(tailLength)); seqOfInt .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[2])); seqOfInt .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[3])); seqOfInt .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[4])); seqOfInt .add(new ASN1Integer(nextTreehash[i][j].getStatInt()[5])); for (int k = 0; k < tailLength; k++)