chiark / gitweb /
cryptsetup: hash=plain means don't use a hash
authorDave Reisner <dreisner@archlinux.org>
Tue, 6 Nov 2012 14:49:27 +0000 (09:49 -0500)
committerDave Reisner <dreisner@archlinux.org>
Tue, 6 Nov 2012 14:53:00 +0000 (09:53 -0500)
commit65343c749441322d1e65e8bb5d433b6fee8c28bf
tree17ac67031517e649cbb0d348de50897bafff25da
parentaea54018a5e66a41318afb6c6be745b6aef48d9e
cryptsetup: hash=plain means don't use a hash

"plain" is a semantic value that cryptsetup(8) uses to describe a plain
dm-crypt volume that does not use a hash. Catch this value earlier and
ensure that a NULL params.hash is passed to crypt_format to avoid
passing an invalid hash type to the libcryptsetup backend.

FDO bug #56593.
src/cryptsetup/cryptsetup.c