Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. addRoundKey(0);
  2. for (int i = 1; i < rounds; i ++) {
  3. subBytes();
  4. shiftRows();
  5. mixColumns();
  6. addRoundKey(i);
  7. }
  8. subBytes();
  9. shiftRows();
  10. addRoundKey(rounds);
  11.  
  12. addRoundKey(rounds);
  13. for (i = 1; i < rounds; i ++) {
  14. invShiftRows();
  15. invSubBytes();
  16. addRoundKey(rounds - i);
  17. invMixColumns();
  18. }
  19. invShiftRows();
  20. invSubBytes();
  21. addRoundKey(0);
  22.  
  23. addRoundKey(rounds);
  24. for (i = 1; i < rounds; i ++) {
  25. invShiftRows();
  26. invSubBytes();
  27. invMixColumns();
  28. addRoundKeyAlreadyInvMixed(rounds - i);
  29. }
  30. invShiftRows();
  31. invSubBytes();
  32. addRoundKey(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement