Original Post
Suppose I were to use a block cipher like X-Tea in Cipher Block Chaining mode. If what I'm encrypting has a known header, then a known-plain-text attack could conceivably be done. I believe this is how WiFi key catchers work -- they take advantage of knowing the value of the first byte of each packet. My question is: Could one device used to prevent this attack be the key itself? Suppose I first encrypt the key with itself, but don't store the result, and then keep encrypting the data in CBC mode. Wouldn't this remove the advantage of knowing the plain text? When decrypting, I again encrypt the key with itself to initialize the decryption stream, and then decrypt the actual data. I *believe* that this is different from just using another key, because in CBC mode the key is still the same; the data just gets scrambled. However, here's where I'm not 100% sure -- am I reading this wrong?