Consider a Plaintext P1 and Ciphertext P2, which is known to the attacker. If the attacker knows that the IV used in encrypting P1 in OFB mode is the same used to encrypt another plaintext P2, how can he find out the content of P2 given the ciphertext C2?
Will the attacker have greater limitation if it is encrypted in CFB mode instead?