summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMilan Broz <gmazyland@gmail.com>2011-03-10 22:12:03 +0000
committerMilan Broz <gmazyland@gmail.com>2011-03-10 22:12:03 +0000
commit005855ce90e1074d0593aa34a64992868eb6dd21 (patch)
tree1fc7cb9d39fb15516b0f86b62ffca3aaed866e3e /tests
parent6083652089b4df0aa5ce455b1db6103379545ac6 (diff)
downloadcryptsetup-005855ce90e1074d0593aa34a64992868eb6dd21.tar.gz
cryptsetup-005855ce90e1074d0593aa34a64992868eb6dd21.tar.bz2
cryptsetup-005855ce90e1074d0593aa34a64992868eb6dd21.zip
Allow tests to work with different default cipher/mode.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@441 36d66b0a-2a48-0410-832c-cd162a569da5
Diffstat (limited to 'tests')
-rwxr-xr-xtests/align-test4
-rwxr-xr-xtests/compat-test2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/align-test b/tests/align-test
index 57d8c07..3e2f396 100755
--- a/tests/align-test
+++ b/tests/align-test
@@ -43,10 +43,10 @@ format() # key_bits expected [forced]
{
if [ -z "$3" ] ; then
echo -n "Formatting using topology info ($1 bits key)...."
- echo xxx| $CRYPTSETUP luksFormat $DEV -q -i1 -s $1
+ echo xxx| $CRYPTSETUP luksFormat $DEV -q -i1 -c aes-cbc-essiv:sha256 -s $1
else
echo -n "Formatting using forced sector alignment $3 ($1 bits key)..."
- echo xxx| $CRYPTSETUP luksFormat $DEV -q -i1 -s $1 --align-payload=$2
+ echo xxx| $CRYPTSETUP luksFormat $DEV -q -i1 -s $1 -c aes-cbc-essiv:sha256 --align-payload=$2
fi
ALIGN=$($CRYPTSETUP luksDump $DEV |grep "Payload offset" | sed -e s/.*\\t//)
diff --git a/tests/compat-test b/tests/compat-test
index f6c732a..228fc4a 100755
--- a/tests/compat-test
+++ b/tests/compat-test
@@ -199,7 +199,7 @@ tst=$($CRYPTSETUP -q luksUUID $LOOPDEV)
prepare "[16] luksFormat" wipe
echo "key0" | $CRYPTSETUP -q luksFormat --master-key-file /dev/urandom $LOOPDEV || fail
echo "key0" | $CRYPTSETUP -q luksFormat --master-key-file /dev/urandom $LOOPDEV -d $KEY1 || fail
-$CRYPTSETUP -q luksFormat --master-key-file /dev/urandom -s 128 --uuid $TEST_UUID $LOOPDEV $KEY1 || fail
+$CRYPTSETUP -q luksFormat --master-key-file /dev/urandom -s 256 --uuid $TEST_UUID $LOOPDEV $KEY1 || fail
$CRYPTSETUP luksOpen -d $KEY1 $LOOPDEV $DEV_NAME || fail
$CRYPTSETUP -q luksClose $DEV_NAME || fail