New answers tagged known-plaintext-attack
Well, your requirements sound pretty much like standard disk encryption ones. Assuming you can assign IDs (0,1,2...) to each 4kiB sector implicitely.In this case you could simply use XTS-mode of encryption using AES. You'd then iterate through the 4kiB block using the inner counter and iterate through all sectors using the outer counter. This should give ...
Yes. They're called Format-Preserving Encryption schemes, and this is the best known construction of that.
Top 50 recent answers are included