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