I was trying to decrypt a text encrypted with AES and ECB mode.
I did try several key and IV. I solved it by ignoring IV. (The IV was given, but it was maybe a distractor)
My question is in which cases IV is needed and in which is not?
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It only takes a minute to sign up.
Sign up to join this communityI was trying to decrypt a text encrypted with AES and ECB mode.
I did try several key and IV. I solved it by ignoring IV. (The IV was given, but it was maybe a distractor)
My question is in which cases IV is needed and in which is not?
A quick list from Wikipedia;
In short, all secure modes need an IV. To achieve semantical security the Probabilistic encryption is required.
There is a mode of AES that can survive without an IV under certain assumptions.
https://en.wikipedia.org/wiki/Disk_encryption_theory#XTS
In particular, the XEX form of AES is designed to function in the absence of a working IV and in particular survives IV reuse. There's one downside in that if you do something like write enough data to the same block and an attacker can see all of the states the security collapses, but it's good it what it's designed for.
Looking for encryption algorithm not subject to known-plaintext attack with IV reuse