当我在Linux上阅读cryptsetup的手册页时,它会说:
简单的dm-crypt使用密码短语的一个单一的非盐味散列来逐个扇区encryption设备。
和-c选项说:
--cipher, -c <cipher-spec> Set the cipher specification string. cryptsetup --help shows the compiled-in defaults. The current default in the distrib‐ uted sources is "aes-cbc-essiv:sha256" for both plain dm-crypt and LUKS.
题
aes-cbc-essiv:sha256意味着对于硬盘的每个扇区,密码的sha256散列也存储在扇区中?
如果是这样的话:这么多次存储散列密码的目的是什么?
你引用了man page的一部分 – 不在上下文中。
我们来看看它的背景 :
简单的dm-crypt使用密码短语的一个单一的非盐味散列来逐个扇区encryption设备。 不执行检查,不使用元数据。 没有格式化操作。
使用普通的dm-crypt时,只有encryption的数据才被存储。
PS不要使用普通的dm-crypt。 原因是在同一个手册页的顶部。