internal static void gen_chain(HashFunctions hs, byte[] output, int outOff, byte[] seed, int seedOff, byte[] masks, int masksOff, int chainlen) { int i, j; for (j = 0; j < HASH_BYTES; j++) { output[j + outOff] = seed[j + seedOff]; } for (i = 0; i < chainlen && i < WOTS_W; i++) { hs.hash_n_n_mask(output, outOff, output, outOff, masks, masksOff + (i * HASH_BYTES)); } }