fail
fi
- X=$($CRYPTSETUP status $1 | grep cipher | sed s/\.\*cipher:\\s*//)
+ X=$($CRYPTSETUP status $1 | grep cipher: | sed s/\.\*cipher:\\s*//)
if [ $X = $2 ] ; then
echo -n "[status OK]"
else
dmcrypt aes aes-cbc-plain
dmcrypt aes-plain aes-cbc-plain
+# empty cipher
+dmcrypt null cipher_null-ecb
+dmcrypt cipher_null cipher_null-cbc-plain
+dmcrypt cipher_null-ecb
+
# codebook doesn't support IV at all
for cipher in $CIPHERS ; do
dmcrypt "$cipher-ecb"