There is an array of byte B[64] and an array of Sbox[] of 256 elements - but most of the numbers are more than 127. You need to perform type substitution:
byte [] B = new byte[64]; //message of 512 bits //here 256 elements, but some of them more than 127 Sbox [] = {0xFC, 0xEE....}; for (i = 0; i < 64; i++) B [i] = (byte) (Sbox(B[i])) How do I keep Sbox[] or what kind of conversion to do so as not to lose information?