Security
Suppose an attacker is attacking two identical hard drives, one encrypted with AES-CBC + Elephant diffuser and the other encrypted only by AES-CBC. We are going to give the attacker the tweak key in Figure 1; this means the attacker can now perform the diffusion layer for any plaintext. In other words, the diffuser layer becomes transparent to the attacker. All that is left now for the attacker is to attack the AES-CBC layer, which is the same problem he has when attacking the other hard drive (encrypted using only AES-CBC mode). This means that, although we helped the attacker significantly by providing him with the tweak key, he still has to attack the AES-CBC layer. This shows that attacking the AES-CBC + Elephant diffuser is not easier than attacking just AES-CBC. Thus, the AES-CBC + Elephant diffuser is at least as secure as AES-CBCin fact, it has better statistical characteristics because it passes four statistical tests, while AES-CBC passes only one.
Note that this security proof sketch is valid for all the values of AC and BC, but we do not recommend using AC less than 2 or BC less than 1 to have good statistical properties. Passing Test1 implies that the AES-CBC + Elephant diffuser does not suffer from a bit-flipping attack, as does AES-CBC mode.
Using the same methodology, it can be proven that the AES-ECB + Elephant diffuser is at least as secure as AES-ECB, and by providing the attacker with the tweak key in Figure 2, he will have to attack the AES-ECB layer. AES-ECB + Elephant diffuser passes all four statistical tests, while AES-ECB passes only one test. This shows that the AES-ECB + Elephant diffuser has better statistical properties than AES-ECB. By XORing the plaintext with the drive sector key, the 512-byte block becomes dependent on the sector. And by adding the counter in Figure 2, each 16-byte block (within the 512) is dependent on its position. This is to reduce the possibility of replay attacks.
Conclusion
To sum it up, in this article, we studied the new AES-CBC + Elephant diffuserthe Windows Vista disk encryption algorithm. Our study shows that this cipher possesses good diffusion properties that can reduce manipulation attacks. And from our study, we set a lower bound of the number of cycles used by each of the two diffusers; these values are AC=2 and BC=1. With these values, the cipher will not lose its statistical properties. Moreover, it still will be at least as secure as AES-CBC mode. On the other hand, the use of these values increases the total performance of the cipher by about 18 percent.
We also propose a new cipher AES-ECB + Elephant diffuser that has similar properties to the AES-CBC + Elephant diffuser. From our study, we set a lower bound of the number of cycles used by each of the two used diffusers; these values are AC=2 and BC=2. These values can be used and the cipher will not lose its statistical properties and still will be at least as secure as AES-ECB mode. On the other hand, the use of these values increases the total performance of the cipher by about 14 percent.
While the AES-ECB + Elephant diffuser is about the same speed as the AES-CBC + Elephant diffuser when a single processor is used, it is about 60-100 percent faster than the AES-CBC + Elephant diffuser (depending on the values of AC and BC used) when a dual-core processor is used. This speed up is inversely proportional to the number of processor cores used. The complete source code accompanying this article is available electronically (for demonstration purposes only, contact Microsoft for development use); see www.ddj.com/code/.