Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public byte MixTable()
- {
- // Re-calculate table fields
- this.i = ((this.i + 1) % 256);
- this.j = ((j + pSBox[i]) % 256);
- // Swap table fields
- int bSwap = pSBox[this.i];
- pSBox[this.i] = pSBox[this.j];
- pSBox[this.j] = bSwap;
- return (byte)pSBox[(pSBox[this.i] + pSBox[this.j]) % 256];
- }
Add Comment
Please, Sign In to add comment