对于压缩档案,XTS 仍然可行吗?
对于我在大学的一个项目,我想创建一个 WinMo 应用程序来保护数据。我以前使用过 FreeOTFE,并且想为我的应用程序实现类似的功能。我选择的加密算法是采用 XTS 操作模式的 AES-128。我还想为我的应用程序创建一个流接口驱动程序(就像 FreeOTFE 或 TrueCrypt 一样),我可以创建和模拟一个虚拟磁盘驱动器,供用户交互,就像可移动 SD 卡一样。
然而,问题@手(创建流接口驱动程序)所需的时间比我估计的要多得多(我知道我搞砸了!)
所以我的B计划是使用压缩库将所有文件压缩到一个存档中。 我的问题是,XTS 操作模式是否仍然是压缩单个文件和存储的可行选择?因此,我首先使用 AES-XTS 加密文件,然后将其添加到存档中。据我了解,XTS 必须对硬盘的块扇区做一些事情。那么使用压缩档案是否会阻止我使用 XTS 作为操作模式?
For one of my projects @ college, I wanted to create a WinMo application to secure data. I have previously used FreeOTFE and I wanted to implement similar functionality to my application. My choice of encryption algorithm was AES-128 with XTS mode of operation. I also wanted to create a stream interface driver for my application as well so (just like FreeOTFE or TrueCrypt) i can create and emulate a virtual disk drive for the user to interact with just like a removable SD card.
However the problem @ hand (creating a stream interface driver) required far more time than i estimated (i knw i screwed up! )
So my plan B is to use a compression library to compress all the files in to a single archive.
My question is, whether XTS mode of operation is still a viable option for compressing single files and storing? So i would be first encrypting the file with AES-XTS and then adding it to the archive. To my understanding XTS has got to do something with block sectors of the hard disk. So does using compressed archives prevent me from using XTS as the mode of operation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论