Implementations
This can be done with the following Java code:
public static boolean affineX (boolean bprime, boolean b, boolean c) { for (int j=0; j<8; j++) { bprime = b ^ b; bprime ^= b; bprime ^= b; bprime ^= b; bprime ^= c; } return bprime; }Read more about this topic: Rijndael S-box