/** * returns the retain stacks storing all right nodes near to the root * * @return the retain stacks storing all right nodes near to the root */ public Vector[] getRetain() { return GMSSUtils.clone(retain); }
/** * returns the authentication path of the first leaf of the tree * * @return the authentication path of the first leaf of the tree */ public byte[][] getAuthPath() { return GMSSUtils.clone(AuthPath); }
static Treehash[][] clone(Treehash[][] data) { if (data == null) { return null; } Treehash[][] copy = new Treehash[data.length][]; for (int i = 0; i != data.length; i++) { copy[i] = clone(data[i]); } return copy; }
/** * returns the authentication path of the first leaf of the tree * * @return the authentication path of the first leaf of the tree */ public byte[][] getAuthPath() { return GMSSUtils.clone(AuthPath); }
/** * returns the initial treehash instances, storing value y_3(i) * * @return the initial treehash instances, storing value y_3(i) */ public Treehash[] getTreehash() { return GMSSUtils.clone(treehash); }
/** * returns the initial treehash instances, storing value y_3(i) * * @return the initial treehash instances, storing value y_3(i) */ public Treehash[] getTreehash() { return GMSSUtils.clone(treehash); }
static byte[][][] clone(byte[][][] data) { if (data == null) { return null; } byte[][][] copy = new byte[data.length][][]; for (int i = 0; i != data.length; i++) { copy[i] = clone(data[i]); } return copy; }
static Treehash[][] clone(Treehash[][] data) { if (data == null) { return null; } Treehash[][] copy = new Treehash[data.length][]; for (int i = 0; i != data.length; i++) { copy[i] = clone(data[i]); } return copy; }
/** * returns the retain stacks storing all right nodes near to the root * * @return the retain stacks storing all right nodes near to the root */ public Vector[] getRetain() { return GMSSUtils.clone(retain); }
static Vector[][] clone(Vector[][] data) { if (data == null) { return null; } Vector[][] copy = new Vector[data.length][]; for (int i = 0; i != data.length; i++) { copy[i] = clone(data[i]); } return copy; } }
static byte[][][] clone(byte[][][] data) { if (data == null) { return null; } byte[][][] copy = new byte[data.length][][]; for (int i = 0; i != data.length; i++) { copy[i] = clone(data[i]); } return copy; }
static Vector[][] clone(Vector[][] data) { if (data == null) { return null; } Vector[][] copy = new Vector[data.length][]; for (int i = 0; i != data.length; i++) { copy[i] = clone(data[i]); } return copy; } }