From: Milan Broz Date: Fri, 11 Dec 2009 11:56:17 +0000 (+0000) Subject: Fix test to handle new default key size. X-Git-Tag: upstream/1.6~677 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=403559261a6bd455f383ba94b6f75310a69ad3bc;p=platform%2Fupstream%2Fcryptsetup.git Fix test to handle new default key size. git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@153 36d66b0a-2a48-0410-832c-cd162a569da5 --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 55a893f..529d0f0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -64,13 +64,13 @@ test: @echo Case: format # All headers items and first key material section must change @cp $(IMG) $(ORIG_IMG) - echo "key0" | ../src/cryptsetup -v -i 1000 -c aes-cbc-essiv:sha256 luksFormat $(LOOPDEV) + echo "key0" | ../src/cryptsetup -v -i 1000 -c aes-cbc-essiv:sha256 -s 128 luksFormat $(LOOPDEV) @sync ./fileDiffer.py $(IMG) $(ORIG_IMG) $(LUKS_HEADER) $(KEY_SLOT0) $(KEY_MATERIAL0) @echo Case: format using hash sha512 @cp $(IMG) $(ORIG_IMG) - echo "key0" | ../src/cryptsetup -v -i 1000 -h sha512 -c aes-cbc-essiv:sha256 luksFormat $(LOOPDEV) + echo "key0" | ../src/cryptsetup -v -i 1000 -h sha512 -c aes-cbc-essiv:sha256 -s 128 luksFormat $(LOOPDEV) @sync ./fileDiffer.py $(IMG) $(ORIG_IMG) $(LUKS_HEADER) $(KEY_SLOT0) $(KEY_MATERIAL0) @@ -160,7 +160,7 @@ test: @echo Case: parameter variation test @dd if=/dev/zero of=$(IMG) count=20000 @cp $(IMG) $(ORIG_IMG) - @../src/cryptsetup -q -v -i 1000 -c aes-cbc-essiv:sha256 luksFormat $(LOOPDEV) /tmp/key1 + @../src/cryptsetup -q -v -i 1000 -c aes-cbc-essiv:sha256 -s 128 luksFormat $(LOOPDEV) /tmp/key1 @sync ./fileDiffer.py $(IMG) $(ORIG_IMG) $(LUKS_HEADER) $(KEY_SLOT0) $(KEY_MATERIAL0) @../src/cryptsetup -d /tmp/key1 -v luksOpen $(LOOPDEV) dummy