Counter Mode Encryption Vulnerabilities Hi All,
I am solving a question about counter mode encryption in symmetric crypto. I am new to the topic and don't really understand the matter, could you help me a little how to solve the following task?

The formula for counter mode encryption is 
&emsp;Ci = Pi ⊕ E (IV + i, K).
Suppose we instead use the formula
&emsp;Ci = Pi ⊕ E (K, IV + i).
Is this secure? If not, what's the possible attack?
If you know one block of plaintext (which in many situations is a reasonable assumption), you can break the second cryptosystem but not the first one (assuming your cipher is secure!). I'll let you figure out how.

You can extend this attack to the case in which one block of plaintext has small entropy, which is an even more realistic assumption.