diff options
author | Milan Broz <gmazyland@gmail.com> | 2012-05-20 21:38:23 +0200 |
---|---|---|
committer | Milan Broz <gmazyland@gmail.com> | 2012-05-20 21:38:23 +0200 |
commit | c2a33b480fe16bde27a4602d3384bc512780cdc4 (patch) | |
tree | 7953f9ef88a76d2580a6e2c41d2fb9331bcb8da7 /tests | |
parent | 490c17b3cd406f5c5f7650b78d52d544620837ca (diff) | |
download | cryptsetup-c2a33b480fe16bde27a4602d3384bc512780cdc4.tar.gz cryptsetup-c2a33b480fe16bde27a4602d3384bc512780cdc4.tar.bz2 cryptsetup-c2a33b480fe16bde27a4602d3384bc512780cdc4.zip |
Allow empty cipher (cipher_null).
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/mode-test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/mode-test b/tests/mode-test index 9a2ad8b..13d70d7 100755 --- a/tests/mode-test +++ b/tests/mode-test @@ -60,7 +60,7 @@ dmcrypt_check() # device outstring 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 @@ -133,6 +133,11 @@ add_device dmcrypt aes aes-cbc-plain dmcrypt aes-plain aes-cbc-plain +# empty cipher +dmcrypt null cipher_null-ecb-null +dmcrypt cipher_null cipher_null-cbc-plain +dmcrypt cipher_null-ecb-null + # codebook doesn't support IV at all for cipher in $CIPHERS ; do dmcrypt "$cipher-ecb" |