public static void intToBigEndian(int[] ns, byte[] bs, int off) {
        for (int i = 0; i < ns.length; ++i) {
            intToBigEndian(ns[i], bs, off);
            off += 4;
        }
    }
Utility methods for converting byte arrays into ints and longs, and back again.
turms-server-common/src/main/java/org/bouncycastle/util/Pack.java