posted 17 years ago
We have to write a cipher program for an assignment. Here's the code for it, it has been documented. The input we are using is {10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160}. The output is meant to be {127,178,145,50,74,59,90,63,36,168,182,106,211,94,8,188} after two rounds. We are not getting the right output and we have determined that the flaw in our program occurs in the linear transformation method (lines 179-213). We've been looking at this program for hours and are having problems finding an error. If someone could take a look at it, we would love them forever!
Here's the code: