public void AddRoundKey(AESBlock rkey) { for (int i = 0; i < BLOCK_SIZE; ++i) { data[i] ^= rkey.data[i]; } }
public AESBlock(AESBlock block) { data = new byte[BLOCK_SIZE]; for (int i = 0; i < BLOCK_SIZE; ++i) { data[i] = block.data[i]; } }