title: How to XOR char array with an integer in C
body: <p>I am trying to implement a cryptographic algorithm in C. I have an unsigned char array;</p>
  
  <pre><code> unsigned char ciphertext[] = { 0xA5, 0xB2, 0x3C, 0xAB, 0x03, 0xF1, 0xD3, 0x1C, 0x7F, 0xAD, 0x37, 0xA8, 0x8C, 0x8B, 0xCD, 0x90, 0xD4, 0xC2, 0x30, 0xAB, 0xD2, 0x3F, 0x3D, 0xAF, 0x58, 0x94, 0x1F, 0x50, 0xAF, 0xA2, 0xCE, 0x01 };
  </code></pre>
  
  <p>I need to XOR the char array with all values from 1 to 256. How can I do it in C? Thank you in advance.
   EDİT:
    I want to XOR my char array with;</p>
  
  <pre><code>unsigned char [] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01};
  unsigned char two = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02};
  unsigned char three[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03};
  </code></pre>
  
  <p>And so on... That is the reason why I can not xor through each elements. It would be something different. </p>