Package net.tomp2p.peers

Examples of net.tomp2p.peers.Number160.toIntArray()


     * @return The complete key
     */
    //CHECKSTYLE:OFF
    private static Number160 createNr(final String key1, final int nr) {
        Number160 firstKey = Number160.createHash(key1);
        int[] val = firstKey.toIntArray();
        val[0] = val[0] ^ val[4] ^ val[3] ^ val[2];
        val[1] = val[1] ^ val[4] ^ val[3] ^ val[2];
        val[2] = nr;
        val[3] = nr;
        val[4] = nr;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.