/** * Returns the key schedule for the given key. */ private static long[] des_setkey(long keyword) { long K = perm6464(keyword, PC1ROT); long[] KS = new long[16]; KS[0] = K&~0x0303030300000000L; for (int i=1; i<16; i++) { KS[i] = K; K = perm6464(K, PC2ROT[Rotates[i]-1]); KS[i] = K&~0x0303030300000000L; } return KS; }
/** * Returns the key schedule for the given key. */ private static long[] des_setkey(long keyword) { long K = perm6464(keyword, PC1ROT); long[] KS = new long[16]; KS[0] = K&~0x0303030300000000L; for (int i=1; i<16; i++) { KS[i] = K; K = perm6464(K, PC2ROT[Rotates[i]-1]); KS[i] = K&~0x0303030300000000L; } return KS; }
(((R>>35) & 0x0f0f0f0fL) | (((R&0xffffffff)<<1) & 0xf0f0f0f0L))); L = perm6464(L, CF6464);
(((R>>35) & 0x0f0f0f0fL) | (((R&0xffffffff)<<1) & 0xf0f0f0f0L))); L = perm6464(L, CF6464);