xref: /openbmc/qemu/tests/qemu-iotests/149.out (revision b70ce101)
1# ================= dm-crypt aes-256-xts-plain64-sha1 =================
2# Create image
3truncate TEST_DIR/luks-aes-256-xts-plain64-sha1.img --size 4194304MB
4# Format image
5sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-256-xts-plain64-sha1.img
6# Open dev
7sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
8# Set dev owner
9sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
10# Write test pattern 0xa7
11qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
12wrote 10485760/10485760 bytes at offset 104857600
1310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
14
15# Write test pattern 0x13
16qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
17wrote 10485760/10485760 bytes at offset 3298534883328
1810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
19
20# Close dev
21sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
22# Read test pattern 0xa7
23qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
24read 10485760/10485760 bytes at offset 104857600
2510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
26
27# Read test pattern 0x13
28qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
29read 10485760/10485760 bytes at offset 3298534883328
3010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
31
32# Write test pattern 0x91
33qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
34wrote 10485760/10485760 bytes at offset 104857600
3510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
36
37# Write test pattern 0x5e
38qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
39wrote 10485760/10485760 bytes at offset 3298534883328
4010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
41
42# Open dev
43sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
44# Set dev owner
45sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
46# Read test pattern 0x91
47qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
48read 10485760/10485760 bytes at offset 104857600
4910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
50
51# Read test pattern 0x5e
52qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
53read 10485760/10485760 bytes at offset 3298534883328
5410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
55
56# Close dev
57sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
58# Delete image
59unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img
60
61# ================= qemu-img aes-256-xts-plain64-sha1 =================
62# Create image
63qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-256-xts-plain64-sha1.img 4194304M
64Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
65
66# Open dev
67sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
68# Set dev owner
69sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
70# Write test pattern 0xa7
71qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
72wrote 10485760/10485760 bytes at offset 104857600
7310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
74
75# Write test pattern 0x13
76qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
77wrote 10485760/10485760 bytes at offset 3298534883328
7810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
79
80# Close dev
81sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
82# Read test pattern 0xa7
83qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
84read 10485760/10485760 bytes at offset 104857600
8510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
86
87# Read test pattern 0x13
88qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
89read 10485760/10485760 bytes at offset 3298534883328
9010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
91
92# Write test pattern 0x91
93qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
94wrote 10485760/10485760 bytes at offset 104857600
9510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
96
97# Write test pattern 0x5e
98qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
99wrote 10485760/10485760 bytes at offset 3298534883328
10010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
101
102# Open dev
103sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
104# Set dev owner
105sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
106# Read test pattern 0x91
107qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
108read 10485760/10485760 bytes at offset 104857600
10910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
110
111# Read test pattern 0x5e
112qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
113read 10485760/10485760 bytes at offset 3298534883328
11410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
115
116# Close dev
117sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
118# Delete image
119unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img
120
121# ================= dm-crypt twofish-256-xts-plain64-sha1 =================
122# Create image
123truncate TEST_DIR/luks-twofish-256-xts-plain64-sha1.img --size 4194304MB
124# Format image
125sudo cryptsetup -q -v luksFormat --cipher twofish-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
126# Open dev
127sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
128# Set dev owner
129sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
130# Write test pattern 0xa7
131qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
132wrote 10485760/10485760 bytes at offset 104857600
13310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
134
135# Write test pattern 0x13
136qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
137wrote 10485760/10485760 bytes at offset 3298534883328
13810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
139
140# Close dev
141sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
142# Read test pattern 0xa7
143qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
144read 10485760/10485760 bytes at offset 104857600
14510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
146
147# Read test pattern 0x13
148qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
149read 10485760/10485760 bytes at offset 3298534883328
15010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
151
152# Write test pattern 0x91
153qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
154wrote 10485760/10485760 bytes at offset 104857600
15510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
156
157# Write test pattern 0x5e
158qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
159wrote 10485760/10485760 bytes at offset 3298534883328
16010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
161
162# Open dev
163sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
164# Set dev owner
165sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
166# Read test pattern 0x91
167qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
168read 10485760/10485760 bytes at offset 104857600
16910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
170
171# Read test pattern 0x5e
172qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
173read 10485760/10485760 bytes at offset 3298534883328
17410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
175
176# Close dev
177sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
178# Delete image
179unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
180
181# ================= qemu-img twofish-256-xts-plain64-sha1 =================
182# Create image
183qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=twofish-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 4194304M
184Formatting 'TEST_DIR/luks-twofish-256-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=twofish-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
185
186# Open dev
187sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
188# Set dev owner
189sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
190# Write test pattern 0xa7
191qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
192wrote 10485760/10485760 bytes at offset 104857600
19310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
194
195# Write test pattern 0x13
196qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
197wrote 10485760/10485760 bytes at offset 3298534883328
19810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
199
200# Close dev
201sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
202# Read test pattern 0xa7
203qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
204read 10485760/10485760 bytes at offset 104857600
20510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
206
207# Read test pattern 0x13
208qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
209read 10485760/10485760 bytes at offset 3298534883328
21010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
211
212# Write test pattern 0x91
213qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
214wrote 10485760/10485760 bytes at offset 104857600
21510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
216
217# Write test pattern 0x5e
218qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
219wrote 10485760/10485760 bytes at offset 3298534883328
22010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
221
222# Open dev
223sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
224# Set dev owner
225sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
226# Read test pattern 0x91
227qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
228read 10485760/10485760 bytes at offset 104857600
22910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
230
231# Read test pattern 0x5e
232qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
233read 10485760/10485760 bytes at offset 3298534883328
23410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
235
236# Close dev
237sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
238# Delete image
239unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
240
241# ================= dm-crypt serpent-256-xts-plain64-sha1 =================
242# Create image
243truncate TEST_DIR/luks-serpent-256-xts-plain64-sha1.img --size 4194304MB
244# Format image
245sudo cryptsetup -q -v luksFormat --cipher serpent-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
246# Open dev
247sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
248# Set dev owner
249sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
250# Write test pattern 0xa7
251qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
252wrote 10485760/10485760 bytes at offset 104857600
25310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
254
255# Write test pattern 0x13
256qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
257wrote 10485760/10485760 bytes at offset 3298534883328
25810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
259
260# Close dev
261sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
262# Read test pattern 0xa7
263qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
264read 10485760/10485760 bytes at offset 104857600
26510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
266
267# Read test pattern 0x13
268qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
269read 10485760/10485760 bytes at offset 3298534883328
27010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
271
272# Write test pattern 0x91
273qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
274wrote 10485760/10485760 bytes at offset 104857600
27510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
276
277# Write test pattern 0x5e
278qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
279wrote 10485760/10485760 bytes at offset 3298534883328
28010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
281
282# Open dev
283sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
284# Set dev owner
285sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
286# Read test pattern 0x91
287qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
288read 10485760/10485760 bytes at offset 104857600
28910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
290
291# Read test pattern 0x5e
292qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
293read 10485760/10485760 bytes at offset 3298534883328
29410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
295
296# Close dev
297sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
298# Delete image
299unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
300
301# ================= qemu-img serpent-256-xts-plain64-sha1 =================
302# Create image
303qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=serpent-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 4194304M
304Formatting 'TEST_DIR/luks-serpent-256-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=serpent-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
305
306# Open dev
307sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
308# Set dev owner
309sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
310# Write test pattern 0xa7
311qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
312wrote 10485760/10485760 bytes at offset 104857600
31310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
314
315# Write test pattern 0x13
316qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
317wrote 10485760/10485760 bytes at offset 3298534883328
31810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
319
320# Close dev
321sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
322# Read test pattern 0xa7
323qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
324read 10485760/10485760 bytes at offset 104857600
32510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
326
327# Read test pattern 0x13
328qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
329read 10485760/10485760 bytes at offset 3298534883328
33010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
331
332# Write test pattern 0x91
333qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
334wrote 10485760/10485760 bytes at offset 104857600
33510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
336
337# Write test pattern 0x5e
338qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
339wrote 10485760/10485760 bytes at offset 3298534883328
34010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
341
342# Open dev
343sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
344# Set dev owner
345sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
346# Read test pattern 0x91
347qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
348read 10485760/10485760 bytes at offset 104857600
34910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
350
351# Read test pattern 0x5e
352qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
353read 10485760/10485760 bytes at offset 3298534883328
35410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
355
356# Close dev
357sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
358# Delete image
359unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
360
361# ================= dm-crypt cast5-128-cbc-plain64-sha1 =================
362# Create image
363truncate TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img --size 4194304MB
364# Format image
365sudo cryptsetup -q -v luksFormat --cipher cast5-cbc-plain64 --key-size 128 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
366# Open dev
367sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
368# Set dev owner
369sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
370# Write test pattern 0xa7
371qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
372wrote 10485760/10485760 bytes at offset 104857600
37310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
374
375# Write test pattern 0x13
376qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
377wrote 10485760/10485760 bytes at offset 3298534883328
37810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
379
380# Close dev
381sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
382# Read test pattern 0xa7
383qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
384read 10485760/10485760 bytes at offset 104857600
38510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
386
387# Read test pattern 0x13
388qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
389read 10485760/10485760 bytes at offset 3298534883328
39010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
391
392# Write test pattern 0x91
393qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
394wrote 10485760/10485760 bytes at offset 104857600
39510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
396
397# Write test pattern 0x5e
398qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
399wrote 10485760/10485760 bytes at offset 3298534883328
40010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
401
402# Open dev
403sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
404# Set dev owner
405sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
406# Read test pattern 0x91
407qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
408read 10485760/10485760 bytes at offset 104857600
40910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
410
411# Read test pattern 0x5e
412qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
413read 10485760/10485760 bytes at offset 3298534883328
41410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
415
416# Close dev
417sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
418# Delete image
419unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
420
421# ================= qemu-img cast5-128-cbc-plain64-sha1 =================
422# Create image
423qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=cast5-128,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 4194304M
424Formatting 'TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=cast5-128 cipher-mode=cbc ivgen-alg=plain64 hash-alg=sha1
425
426# Open dev
427sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
428# Set dev owner
429sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
430# Write test pattern 0xa7
431qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
432wrote 10485760/10485760 bytes at offset 104857600
43310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
434
435# Write test pattern 0x13
436qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
437wrote 10485760/10485760 bytes at offset 3298534883328
43810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
439
440# Close dev
441sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
442# Read test pattern 0xa7
443qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
444read 10485760/10485760 bytes at offset 104857600
44510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
446
447# Read test pattern 0x13
448qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
449read 10485760/10485760 bytes at offset 3298534883328
45010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
451
452# Write test pattern 0x91
453qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
454wrote 10485760/10485760 bytes at offset 104857600
45510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
456
457# Write test pattern 0x5e
458qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
459wrote 10485760/10485760 bytes at offset 3298534883328
46010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
461
462# Open dev
463sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
464# Set dev owner
465sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
466# Read test pattern 0x91
467qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
468read 10485760/10485760 bytes at offset 104857600
46910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
470
471# Read test pattern 0x5e
472qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
473read 10485760/10485760 bytes at offset 3298534883328
47410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
475
476# Close dev
477sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
478# Delete image
479unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
480
481Skipping cast6-256-xts-plain64-sha1 in blacklist
482# ================= dm-crypt aes-256-cbc-plain-sha1 =================
483# Create image
484truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB
485# Format image
486sudo cryptsetup -q -v luksFormat --cipher aes-cbc-plain --key-size 256 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-256-cbc-plain-sha1.img
487# Open dev
488sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
489# Set dev owner
490sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
491# Write test pattern 0xa7
492qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
493wrote 10485760/10485760 bytes at offset 104857600
49410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
495
496# Write test pattern 0x13
497qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
498wrote 10485760/10485760 bytes at offset 3298534883328
49910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
500
501# Close dev
502sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
503# Read test pattern 0xa7
504qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
505read 10485760/10485760 bytes at offset 104857600
50610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
507
508# Read test pattern 0x13
509qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
510read 10485760/10485760 bytes at offset 3298534883328
51110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
512
513# Write test pattern 0x91
514qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
515wrote 10485760/10485760 bytes at offset 104857600
51610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
517
518# Write test pattern 0x5e
519qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
520wrote 10485760/10485760 bytes at offset 3298534883328
52110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
522
523# Open dev
524sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
525# Set dev owner
526sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
527# Read test pattern 0x91
528qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
529read 10485760/10485760 bytes at offset 104857600
53010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
531
532# Read test pattern 0x5e
533qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
534read 10485760/10485760 bytes at offset 3298534883328
53510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
536
537# Close dev
538sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
539# Delete image
540unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
541
542# ================= qemu-img aes-256-cbc-plain-sha1 =================
543# Create image
544qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-plain-sha1.img 4194304M
545Formatting 'TEST_DIR/luks-aes-256-cbc-plain-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=plain hash-alg=sha1
546
547# Open dev
548sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
549# Set dev owner
550sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
551# Write test pattern 0xa7
552qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
553wrote 10485760/10485760 bytes at offset 104857600
55410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
555
556# Write test pattern 0x13
557qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
558wrote 10485760/10485760 bytes at offset 3298534883328
55910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
560
561# Close dev
562sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
563# Read test pattern 0xa7
564qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
565read 10485760/10485760 bytes at offset 104857600
56610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
567
568# Read test pattern 0x13
569qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
570read 10485760/10485760 bytes at offset 3298534883328
57110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
572
573# Write test pattern 0x91
574qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
575wrote 10485760/10485760 bytes at offset 104857600
57610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
577
578# Write test pattern 0x5e
579qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
580wrote 10485760/10485760 bytes at offset 3298534883328
58110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
582
583# Open dev
584sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
585# Set dev owner
586sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
587# Read test pattern 0x91
588qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
589read 10485760/10485760 bytes at offset 104857600
59010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
591
592# Read test pattern 0x5e
593qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
594read 10485760/10485760 bytes at offset 3298534883328
59510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
596
597# Close dev
598sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
599# Delete image
600unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
601
602# ================= dm-crypt aes-256-cbc-plain64-sha1 =================
603# Create image
604truncate TEST_DIR/luks-aes-256-cbc-plain64-sha1.img --size 4194304MB
605# Format image
606sudo cryptsetup -q -v luksFormat --cipher aes-cbc-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
607# Open dev
608sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
609# Set dev owner
610sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
611# Write test pattern 0xa7
612qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
613wrote 10485760/10485760 bytes at offset 104857600
61410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
615
616# Write test pattern 0x13
617qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
618wrote 10485760/10485760 bytes at offset 3298534883328
61910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
620
621# Close dev
622sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
623# Read test pattern 0xa7
624qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
625read 10485760/10485760 bytes at offset 104857600
62610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
627
628# Read test pattern 0x13
629qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
630read 10485760/10485760 bytes at offset 3298534883328
63110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
632
633# Write test pattern 0x91
634qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
635wrote 10485760/10485760 bytes at offset 104857600
63610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
637
638# Write test pattern 0x5e
639qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
640wrote 10485760/10485760 bytes at offset 3298534883328
64110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
642
643# Open dev
644sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
645# Set dev owner
646sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
647# Read test pattern 0x91
648qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
649read 10485760/10485760 bytes at offset 104857600
65010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
651
652# Read test pattern 0x5e
653qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
654read 10485760/10485760 bytes at offset 3298534883328
65510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
656
657# Close dev
658sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
659# Delete image
660unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
661
662# ================= qemu-img aes-256-cbc-plain64-sha1 =================
663# Create image
664qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 4194304M
665Formatting 'TEST_DIR/luks-aes-256-cbc-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=plain64 hash-alg=sha1
666
667# Open dev
668sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
669# Set dev owner
670sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
671# Write test pattern 0xa7
672qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
673wrote 10485760/10485760 bytes at offset 104857600
67410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
675
676# Write test pattern 0x13
677qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
678wrote 10485760/10485760 bytes at offset 3298534883328
67910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
680
681# Close dev
682sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
683# Read test pattern 0xa7
684qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
685read 10485760/10485760 bytes at offset 104857600
68610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
687
688# Read test pattern 0x13
689qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
690read 10485760/10485760 bytes at offset 3298534883328
69110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
692
693# Write test pattern 0x91
694qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
695wrote 10485760/10485760 bytes at offset 104857600
69610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
697
698# Write test pattern 0x5e
699qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
700wrote 10485760/10485760 bytes at offset 3298534883328
70110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
702
703# Open dev
704sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
705# Set dev owner
706sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
707# Read test pattern 0x91
708qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
709read 10485760/10485760 bytes at offset 104857600
71010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
711
712# Read test pattern 0x5e
713qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
714read 10485760/10485760 bytes at offset 3298534883328
71510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
716
717# Close dev
718sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
719# Delete image
720unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
721
722# ================= dm-crypt aes-256-cbc-essiv-sha256-sha1 =================
723# Create image
724truncate TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img --size 4194304MB
725# Format image
726sudo cryptsetup -q -v luksFormat --cipher aes-cbc-essiv:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
727# Open dev
728sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
729# Set dev owner
730sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
731# Write test pattern 0xa7
732qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
733wrote 10485760/10485760 bytes at offset 104857600
73410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
735
736# Write test pattern 0x13
737qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
738wrote 10485760/10485760 bytes at offset 3298534883328
73910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
740
741# Close dev
742sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
743# Read test pattern 0xa7
744qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
745read 10485760/10485760 bytes at offset 104857600
74610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
747
748# Read test pattern 0x13
749qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
750read 10485760/10485760 bytes at offset 3298534883328
75110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
752
753# Write test pattern 0x91
754qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
755wrote 10485760/10485760 bytes at offset 104857600
75610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
757
758# Write test pattern 0x5e
759qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
760wrote 10485760/10485760 bytes at offset 3298534883328
76110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
762
763# Open dev
764sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
765# Set dev owner
766sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
767# Read test pattern 0x91
768qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
769read 10485760/10485760 bytes at offset 104857600
77010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
771
772# Read test pattern 0x5e
773qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
774read 10485760/10485760 bytes at offset 3298534883328
77510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
776
777# Close dev
778sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
779# Delete image
780unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
781
782# ================= qemu-img aes-256-cbc-essiv-sha256-sha1 =================
783# Create image
784qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=essiv,hash-alg=sha1,ivgen-hash-alg=sha256 TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 4194304M
785Formatting 'TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=essiv ivgen-hash-alg=sha256 hash-alg=sha1
786
787# Open dev
788sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
789# Set dev owner
790sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
791# Write test pattern 0xa7
792qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
793wrote 10485760/10485760 bytes at offset 104857600
79410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
795
796# Write test pattern 0x13
797qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
798wrote 10485760/10485760 bytes at offset 3298534883328
79910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
800
801# Close dev
802sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
803# Read test pattern 0xa7
804qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
805read 10485760/10485760 bytes at offset 104857600
80610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
807
808# Read test pattern 0x13
809qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
810read 10485760/10485760 bytes at offset 3298534883328
81110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
812
813# Write test pattern 0x91
814qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
815wrote 10485760/10485760 bytes at offset 104857600
81610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
817
818# Write test pattern 0x5e
819qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
820wrote 10485760/10485760 bytes at offset 3298534883328
82110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
822
823# Open dev
824sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
825# Set dev owner
826sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
827# Read test pattern 0x91
828qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
829read 10485760/10485760 bytes at offset 104857600
83010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
831
832# Read test pattern 0x5e
833qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
834read 10485760/10485760 bytes at offset 3298534883328
83510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
836
837# Close dev
838sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
839# Delete image
840unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
841
842# ================= dm-crypt aes-256-xts-essiv-sha256-sha1 =================
843# Create image
844truncate TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img --size 4194304MB
845# Format image
846sudo cryptsetup -q -v luksFormat --cipher aes-xts-essiv:sha256 --key-size 512 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
847# Open dev
848sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
849# Set dev owner
850sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
851# Write test pattern 0xa7
852qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
853wrote 10485760/10485760 bytes at offset 104857600
85410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
855
856# Write test pattern 0x13
857qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
858wrote 10485760/10485760 bytes at offset 3298534883328
85910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
860
861# Close dev
862sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
863# Read test pattern 0xa7
864qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
865read 10485760/10485760 bytes at offset 104857600
86610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
867
868# Read test pattern 0x13
869qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
870read 10485760/10485760 bytes at offset 3298534883328
87110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
872
873# Write test pattern 0x91
874qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
875wrote 10485760/10485760 bytes at offset 104857600
87610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
877
878# Write test pattern 0x5e
879qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
880wrote 10485760/10485760 bytes at offset 3298534883328
88110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
882
883# Open dev
884sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
885# Set dev owner
886sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
887# Read test pattern 0x91
888qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
889read 10485760/10485760 bytes at offset 104857600
89010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
891
892# Read test pattern 0x5e
893qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
894read 10485760/10485760 bytes at offset 3298534883328
89510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
896
897# Close dev
898sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
899# Delete image
900unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
901
902# ================= qemu-img aes-256-xts-essiv-sha256-sha1 =================
903# Create image
904qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=essiv,hash-alg=sha1,ivgen-hash-alg=sha256 TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 4194304M
905Formatting 'TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=essiv ivgen-hash-alg=sha256 hash-alg=sha1
906
907# Open dev
908sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
909# Set dev owner
910sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
911# Write test pattern 0xa7
912qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
913wrote 10485760/10485760 bytes at offset 104857600
91410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
915
916# Write test pattern 0x13
917qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
918wrote 10485760/10485760 bytes at offset 3298534883328
91910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
920
921# Close dev
922sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
923# Read test pattern 0xa7
924qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
925read 10485760/10485760 bytes at offset 104857600
92610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
927
928# Read test pattern 0x13
929qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
930read 10485760/10485760 bytes at offset 3298534883328
93110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
932
933# Write test pattern 0x91
934qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
935wrote 10485760/10485760 bytes at offset 104857600
93610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
937
938# Write test pattern 0x5e
939qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
940wrote 10485760/10485760 bytes at offset 3298534883328
94110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
942
943# Open dev
944sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
945# Set dev owner
946sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
947# Read test pattern 0x91
948qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
949read 10485760/10485760 bytes at offset 104857600
95010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
951
952# Read test pattern 0x5e
953qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
954read 10485760/10485760 bytes at offset 3298534883328
95510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
956
957# Close dev
958sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
959# Delete image
960unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
961
962# ================= dm-crypt aes-128-xts-plain64-sha256-sha1 =================
963# Create image
964truncate TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img --size 4194304MB
965# Format image
966sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
967# Open dev
968sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
969# Set dev owner
970sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
971# Write test pattern 0xa7
972qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
973wrote 10485760/10485760 bytes at offset 104857600
97410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
975
976# Write test pattern 0x13
977qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
978wrote 10485760/10485760 bytes at offset 3298534883328
97910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
980
981# Close dev
982sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
983# Read test pattern 0xa7
984qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
985read 10485760/10485760 bytes at offset 104857600
98610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
987
988# Read test pattern 0x13
989qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
990read 10485760/10485760 bytes at offset 3298534883328
99110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
992
993# Write test pattern 0x91
994qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
995wrote 10485760/10485760 bytes at offset 104857600
99610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
997
998# Write test pattern 0x5e
999qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1000wrote 10485760/10485760 bytes at offset 3298534883328
100110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1002
1003# Open dev
1004sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
1005# Set dev owner
1006sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1007# Read test pattern 0x91
1008qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1009read 10485760/10485760 bytes at offset 104857600
101010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1011
1012# Read test pattern 0x5e
1013qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1014read 10485760/10485760 bytes at offset 3298534883328
101510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1016
1017# Close dev
1018sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1019# Delete image
1020unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1021
1022# ================= qemu-img aes-128-xts-plain64-sha256-sha1 =================
1023# Create image
1024qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 4194304M
1025Formatting 'TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-128 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
1026
1027# Open dev
1028sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
1029# Set dev owner
1030sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1031# Write test pattern 0xa7
1032qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1033wrote 10485760/10485760 bytes at offset 104857600
103410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1035
1036# Write test pattern 0x13
1037qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1038wrote 10485760/10485760 bytes at offset 3298534883328
103910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1040
1041# Close dev
1042sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1043# Read test pattern 0xa7
1044qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1045read 10485760/10485760 bytes at offset 104857600
104610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1047
1048# Read test pattern 0x13
1049qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1050read 10485760/10485760 bytes at offset 3298534883328
105110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1052
1053# Write test pattern 0x91
1054qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1055wrote 10485760/10485760 bytes at offset 104857600
105610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1057
1058# Write test pattern 0x5e
1059qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1060wrote 10485760/10485760 bytes at offset 3298534883328
106110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1062
1063# Open dev
1064sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
1065# Set dev owner
1066sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1067# Read test pattern 0x91
1068qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1069read 10485760/10485760 bytes at offset 104857600
107010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1071
1072# Read test pattern 0x5e
1073qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1074read 10485760/10485760 bytes at offset 3298534883328
107510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1076
1077# Close dev
1078sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1079# Delete image
1080unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1081
1082# ================= dm-crypt aes-192-xts-plain64-sha256-sha1 =================
1083# Create image
1084truncate TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img --size 4194304MB
1085# Format image
1086sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 384 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1087# Open dev
1088sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1089# Set dev owner
1090sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1091# Write test pattern 0xa7
1092qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1093wrote 10485760/10485760 bytes at offset 104857600
109410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1095
1096# Write test pattern 0x13
1097qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1098wrote 10485760/10485760 bytes at offset 3298534883328
109910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1100
1101# Close dev
1102sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1103# Read test pattern 0xa7
1104qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1105read 10485760/10485760 bytes at offset 104857600
110610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1107
1108# Read test pattern 0x13
1109qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1110read 10485760/10485760 bytes at offset 3298534883328
111110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1112
1113# Write test pattern 0x91
1114qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1115wrote 10485760/10485760 bytes at offset 104857600
111610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1117
1118# Write test pattern 0x5e
1119qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1120wrote 10485760/10485760 bytes at offset 3298534883328
112110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1122
1123# Open dev
1124sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1125# Set dev owner
1126sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1127# Read test pattern 0x91
1128qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1129read 10485760/10485760 bytes at offset 104857600
113010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1131
1132# Read test pattern 0x5e
1133qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1134read 10485760/10485760 bytes at offset 3298534883328
113510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1136
1137# Close dev
1138sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1139# Delete image
1140unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1141
1142# ================= qemu-img aes-192-xts-plain64-sha256-sha1 =================
1143# Create image
1144qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-192,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 4194304M
1145Formatting 'TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-192 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
1146
1147# Open dev
1148sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1149# Set dev owner
1150sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1151# Write test pattern 0xa7
1152qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1153wrote 10485760/10485760 bytes at offset 104857600
115410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1155
1156# Write test pattern 0x13
1157qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1158wrote 10485760/10485760 bytes at offset 3298534883328
115910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1160
1161# Close dev
1162sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1163# Read test pattern 0xa7
1164qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1165read 10485760/10485760 bytes at offset 104857600
116610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1167
1168# Read test pattern 0x13
1169qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1170read 10485760/10485760 bytes at offset 3298534883328
117110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1172
1173# Write test pattern 0x91
1174qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1175wrote 10485760/10485760 bytes at offset 104857600
117610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1177
1178# Write test pattern 0x5e
1179qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1180wrote 10485760/10485760 bytes at offset 3298534883328
118110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1182
1183# Open dev
1184sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1185# Set dev owner
1186sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1187# Read test pattern 0x91
1188qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1189read 10485760/10485760 bytes at offset 104857600
119010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1191
1192# Read test pattern 0x5e
1193qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1194read 10485760/10485760 bytes at offset 3298534883328
119510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1196
1197# Close dev
1198sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1199# Delete image
1200unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1201
1202# ================= dm-crypt twofish-128-xts-plain64-sha1 =================
1203# Create image
1204truncate TEST_DIR/luks-twofish-128-xts-plain64-sha1.img --size 4194304MB
1205# Format image
1206sudo cryptsetup -q -v luksFormat --cipher twofish-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1207# Open dev
1208sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1209# Set dev owner
1210sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1211# Write test pattern 0xa7
1212qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1213wrote 10485760/10485760 bytes at offset 104857600
121410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1215
1216# Write test pattern 0x13
1217qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1218wrote 10485760/10485760 bytes at offset 3298534883328
121910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1220
1221# Close dev
1222sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1223# Read test pattern 0xa7
1224qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1225read 10485760/10485760 bytes at offset 104857600
122610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1227
1228# Read test pattern 0x13
1229qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1230read 10485760/10485760 bytes at offset 3298534883328
123110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1232
1233# Write test pattern 0x91
1234qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1235wrote 10485760/10485760 bytes at offset 104857600
123610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1237
1238# Write test pattern 0x5e
1239qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1240wrote 10485760/10485760 bytes at offset 3298534883328
124110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1242
1243# Open dev
1244sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1245# Set dev owner
1246sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1247# Read test pattern 0x91
1248qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1249read 10485760/10485760 bytes at offset 104857600
125010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1251
1252# Read test pattern 0x5e
1253qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1254read 10485760/10485760 bytes at offset 3298534883328
125510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1256
1257# Close dev
1258sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1259# Delete image
1260unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1261
1262# ================= qemu-img twofish-128-xts-plain64-sha1 =================
1263# Create image
1264qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=twofish-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 4194304M
1265Formatting 'TEST_DIR/luks-twofish-128-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=twofish-128 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
1266
1267# Open dev
1268sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1269# Set dev owner
1270sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1271# Write test pattern 0xa7
1272qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1273wrote 10485760/10485760 bytes at offset 104857600
127410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1275
1276# Write test pattern 0x13
1277qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1278wrote 10485760/10485760 bytes at offset 3298534883328
127910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1280
1281# Close dev
1282sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1283# Read test pattern 0xa7
1284qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1285read 10485760/10485760 bytes at offset 104857600
128610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1287
1288# Read test pattern 0x13
1289qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1290read 10485760/10485760 bytes at offset 3298534883328
129110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1292
1293# Write test pattern 0x91
1294qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1295wrote 10485760/10485760 bytes at offset 104857600
129610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1297
1298# Write test pattern 0x5e
1299qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1300wrote 10485760/10485760 bytes at offset 3298534883328
130110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1302
1303# Open dev
1304sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1305# Set dev owner
1306sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1307# Read test pattern 0x91
1308qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1309read 10485760/10485760 bytes at offset 104857600
131010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1311
1312# Read test pattern 0x5e
1313qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1314read 10485760/10485760 bytes at offset 3298534883328
131510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1316
1317# Close dev
1318sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1319# Delete image
1320unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1321
1322Skipping twofish-192-xts-plain64-sha1 in blacklist
1323# ================= dm-crypt serpent-128-xts-plain64-sha1 =================
1324# Create image
1325truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB
1326# Format image
1327sudo cryptsetup -q -v luksFormat --cipher serpent-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1328# Open dev
1329sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1330# Set dev owner
1331sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1332# Write test pattern 0xa7
1333qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1334wrote 10485760/10485760 bytes at offset 104857600
133510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1336
1337# Write test pattern 0x13
1338qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1339wrote 10485760/10485760 bytes at offset 3298534883328
134010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1341
1342# Close dev
1343sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1344# Read test pattern 0xa7
1345qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1346read 10485760/10485760 bytes at offset 104857600
134710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1348
1349# Read test pattern 0x13
1350qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1351read 10485760/10485760 bytes at offset 3298534883328
135210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1353
1354# Write test pattern 0x91
1355qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1356wrote 10485760/10485760 bytes at offset 104857600
135710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1358
1359# Write test pattern 0x5e
1360qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1361wrote 10485760/10485760 bytes at offset 3298534883328
136210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1363
1364# Open dev
1365sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1366# Set dev owner
1367sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1368# Read test pattern 0x91
1369qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1370read 10485760/10485760 bytes at offset 104857600
137110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1372
1373# Read test pattern 0x5e
1374qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1375read 10485760/10485760 bytes at offset 3298534883328
137610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1377
1378# Close dev
1379sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1380# Delete image
1381unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1382
1383# ================= qemu-img serpent-128-xts-plain64-sha1 =================
1384# Create image
1385qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=serpent-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 4194304M
1386Formatting 'TEST_DIR/luks-serpent-128-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=serpent-128 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
1387
1388# Open dev
1389sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1390# Set dev owner
1391sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1392# Write test pattern 0xa7
1393qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1394wrote 10485760/10485760 bytes at offset 104857600
139510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1396
1397# Write test pattern 0x13
1398qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1399wrote 10485760/10485760 bytes at offset 3298534883328
140010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1401
1402# Close dev
1403sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1404# Read test pattern 0xa7
1405qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1406read 10485760/10485760 bytes at offset 104857600
140710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1408
1409# Read test pattern 0x13
1410qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1411read 10485760/10485760 bytes at offset 3298534883328
141210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1413
1414# Write test pattern 0x91
1415qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1416wrote 10485760/10485760 bytes at offset 104857600
141710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1418
1419# Write test pattern 0x5e
1420qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1421wrote 10485760/10485760 bytes at offset 3298534883328
142210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1423
1424# Open dev
1425sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1426# Set dev owner
1427sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1428# Read test pattern 0x91
1429qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1430read 10485760/10485760 bytes at offset 104857600
143110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1432
1433# Read test pattern 0x5e
1434qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1435read 10485760/10485760 bytes at offset 3298534883328
143610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1437
1438# Close dev
1439sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1440# Delete image
1441unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1442
1443# ================= dm-crypt serpent-192-xts-plain64-sha1 =================
1444# Create image
1445truncate TEST_DIR/luks-serpent-192-xts-plain64-sha1.img --size 4194304MB
1446# Format image
1447sudo cryptsetup -q -v luksFormat --cipher serpent-xts-plain64 --key-size 384 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1448# Open dev
1449sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1450# Set dev owner
1451sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1452# Write test pattern 0xa7
1453qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1454wrote 10485760/10485760 bytes at offset 104857600
145510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1456
1457# Write test pattern 0x13
1458qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1459wrote 10485760/10485760 bytes at offset 3298534883328
146010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1461
1462# Close dev
1463sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1464# Read test pattern 0xa7
1465qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1466read 10485760/10485760 bytes at offset 104857600
146710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1468
1469# Read test pattern 0x13
1470qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1471read 10485760/10485760 bytes at offset 3298534883328
147210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1473
1474# Write test pattern 0x91
1475qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1476wrote 10485760/10485760 bytes at offset 104857600
147710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1478
1479# Write test pattern 0x5e
1480qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1481wrote 10485760/10485760 bytes at offset 3298534883328
148210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1483
1484# Open dev
1485sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1486# Set dev owner
1487sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1488# Read test pattern 0x91
1489qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1490read 10485760/10485760 bytes at offset 104857600
149110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1492
1493# Read test pattern 0x5e
1494qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1495read 10485760/10485760 bytes at offset 3298534883328
149610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1497
1498# Close dev
1499sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1500# Delete image
1501unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1502
1503# ================= qemu-img serpent-192-xts-plain64-sha1 =================
1504# Create image
1505qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=serpent-192,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 4194304M
1506Formatting 'TEST_DIR/luks-serpent-192-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=serpent-192 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
1507
1508# Open dev
1509sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1510# Set dev owner
1511sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1512# Write test pattern 0xa7
1513qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1514wrote 10485760/10485760 bytes at offset 104857600
151510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1516
1517# Write test pattern 0x13
1518qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1519wrote 10485760/10485760 bytes at offset 3298534883328
152010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1521
1522# Close dev
1523sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1524# Read test pattern 0xa7
1525qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1526read 10485760/10485760 bytes at offset 104857600
152710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1528
1529# Read test pattern 0x13
1530qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1531read 10485760/10485760 bytes at offset 3298534883328
153210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1533
1534# Write test pattern 0x91
1535qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1536wrote 10485760/10485760 bytes at offset 104857600
153710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1538
1539# Write test pattern 0x5e
1540qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1541wrote 10485760/10485760 bytes at offset 3298534883328
154210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1543
1544# Open dev
1545sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1546# Set dev owner
1547sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1548# Read test pattern 0x91
1549qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1550read 10485760/10485760 bytes at offset 104857600
155110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1552
1553# Read test pattern 0x5e
1554qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1555read 10485760/10485760 bytes at offset 3298534883328
155610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1557
1558# Close dev
1559sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1560# Delete image
1561unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1562
1563Skipping cast6-128-xts-plain64-sha1 in blacklist
1564Skipping cast6-192-xts-plain64-sha1 in blacklist
1565# ================= dm-crypt aes-256-xts-plain64-sha256 =================
1566# Create image
1567truncate TEST_DIR/luks-aes-256-xts-plain64-sha256.img --size 4194304MB
1568# Format image
1569sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 512 --hash sha256 --key-slot 0 --key-file - TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1570# Open dev
1571sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1572# Set dev owner
1573sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1574# Write test pattern 0xa7
1575qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1576wrote 10485760/10485760 bytes at offset 104857600
157710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1578
1579# Write test pattern 0x13
1580qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1581wrote 10485760/10485760 bytes at offset 3298534883328
158210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1583
1584# Close dev
1585sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1586# Read test pattern 0xa7
1587qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1588read 10485760/10485760 bytes at offset 104857600
158910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1590
1591# Read test pattern 0x13
1592qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1593read 10485760/10485760 bytes at offset 3298534883328
159410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1595
1596# Write test pattern 0x91
1597qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1598wrote 10485760/10485760 bytes at offset 104857600
159910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1600
1601# Write test pattern 0x5e
1602qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1603wrote 10485760/10485760 bytes at offset 3298534883328
160410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1605
1606# Open dev
1607sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1608# Set dev owner
1609sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1610# Read test pattern 0x91
1611qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1612read 10485760/10485760 bytes at offset 104857600
161310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1614
1615# Read test pattern 0x5e
1616qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1617read 10485760/10485760 bytes at offset 3298534883328
161810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1619
1620# Close dev
1621sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1622# Delete image
1623unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1624
1625# ================= qemu-img aes-256-xts-plain64-sha256 =================
1626# Create image
1627qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha256 TEST_DIR/luks-aes-256-xts-plain64-sha256.img 4194304M
1628Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha256.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha256
1629
1630# Open dev
1631sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1632# Set dev owner
1633sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1634# Write test pattern 0xa7
1635qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1636wrote 10485760/10485760 bytes at offset 104857600
163710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1638
1639# Write test pattern 0x13
1640qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1641wrote 10485760/10485760 bytes at offset 3298534883328
164210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1643
1644# Close dev
1645sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1646# Read test pattern 0xa7
1647qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1648read 10485760/10485760 bytes at offset 104857600
164910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1650
1651# Read test pattern 0x13
1652qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1653read 10485760/10485760 bytes at offset 3298534883328
165410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1655
1656# Write test pattern 0x91
1657qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1658wrote 10485760/10485760 bytes at offset 104857600
165910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1660
1661# Write test pattern 0x5e
1662qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1663wrote 10485760/10485760 bytes at offset 3298534883328
166410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1665
1666# Open dev
1667sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1668# Set dev owner
1669sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1670# Read test pattern 0x91
1671qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1672read 10485760/10485760 bytes at offset 104857600
167310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1674
1675# Read test pattern 0x5e
1676qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1677read 10485760/10485760 bytes at offset 3298534883328
167810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1679
1680# Close dev
1681sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1682# Delete image
1683unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1684
1685Skipping aes-256-xts-plain64-sha512 in blacklist
1686Skipping aes-256-xts-plain64-ripemd160 in blacklist
1687# ================= dm-crypt aes-256-xts-plain-sha1-pwslot3 =================
1688# Create image
1689truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img --size 4194304MB
1690# Format image
1691sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain --key-size 512 --hash sha1 --key-slot 3 --key-file - TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
1692# Open dev
1693sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
1694# Set dev owner
1695sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1696# Write test pattern 0xa7
1697qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1698wrote 10485760/10485760 bytes at offset 104857600
169910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1700
1701# Write test pattern 0x13
1702qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1703wrote 10485760/10485760 bytes at offset 3298534883328
170410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1705
1706# Close dev
1707sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
1708# Read test pattern 0xa7
1709qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=c2xvdDM=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
1710read 10485760/10485760 bytes at offset 104857600
171110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1712
1713# Read test pattern 0x13
1714qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=c2xvdDM=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
1715read 10485760/10485760 bytes at offset 3298534883328
171610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1717
1718# Write test pattern 0x91
1719qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=c2xvdDM=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
1720wrote 10485760/10485760 bytes at offset 104857600
172110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1722
1723# Write test pattern 0x5e
1724qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=c2xvdDM=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
1725wrote 10485760/10485760 bytes at offset 3298534883328
172610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1727
1728# Open dev
1729sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
1730# Set dev owner
1731sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1732# Read test pattern 0x91
1733qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1734read 10485760/10485760 bytes at offset 104857600
173510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1736
1737# Read test pattern 0x5e
1738qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1739read 10485760/10485760 bytes at offset 3298534883328
174010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1741
1742# Close dev
1743sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
1744# Delete image
1745unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
1746
1747# ================= dm-crypt aes-256-xts-plain-sha1-pwallslots =================
1748# Create image
1749truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --size 4194304MB
1750# Format image
1751sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain --key-size 512 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1752# Add password slot 1
1753sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 1 --key-file - TEST_DIR/passwd.txt
1754# Add password slot 2
1755sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 2 --key-file - TEST_DIR/passwd.txt
1756# Add password slot 3
1757sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 3 --key-file - TEST_DIR/passwd.txt
1758# Add password slot 4
1759sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 4 --key-file - TEST_DIR/passwd.txt
1760# Add password slot 5
1761sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 5 --key-file - TEST_DIR/passwd.txt
1762# Add password slot 6
1763sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 6 --key-file - TEST_DIR/passwd.txt
1764# Add password slot 7
1765sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 7 --key-file - TEST_DIR/passwd.txt
1766# Open dev
1767sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
1768# Set dev owner
1769sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1770# Write test pattern 0xa7
1771qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1772wrote 10485760/10485760 bytes at offset 104857600
177310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1774
1775# Write test pattern 0x13
1776qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1777wrote 10485760/10485760 bytes at offset 3298534883328
177810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1779
1780# Close dev
1781sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
1782# Read test pattern 0xa7
1783qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1784read 10485760/10485760 bytes at offset 104857600
178510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1786
1787# Read test pattern 0x13
1788qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1789read 10485760/10485760 bytes at offset 3298534883328
179010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1791
1792# Write test pattern 0x91
1793qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1794wrote 10485760/10485760 bytes at offset 104857600
179510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1796
1797# Write test pattern 0x5e
1798qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1799wrote 10485760/10485760 bytes at offset 3298534883328
180010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1801
1802# Open dev
1803sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
1804# Set dev owner
1805sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1806# Read test pattern 0x91
1807qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1808read 10485760/10485760 bytes at offset 104857600
180910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1810
1811# Read test pattern 0x5e
1812qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1813read 10485760/10485760 bytes at offset 3298534883328
181410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1815
1816# Close dev
1817sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
1818# Delete image
1819unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1820
1821# ================= qemu-img aes-256-xts-plain-sha1-pwallslots =================
1822# Create image
1823qemu-img create -f luks --object secret,id=sec0,data=c2xvdDE=,format=base64 -o key-secret=sec0,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain,hash-alg=sha1 TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img 4194304M
1824Formatting 'TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain hash-alg=sha1
1825
1826# Open dev
1827sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
1828# Set dev owner
1829sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1830# Write test pattern 0xa7
1831qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1832wrote 10485760/10485760 bytes at offset 104857600
183310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1834
1835# Write test pattern 0x13
1836qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1837wrote 10485760/10485760 bytes at offset 3298534883328
183810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1839
1840# Close dev
1841sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
1842# Read test pattern 0xa7
1843qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1844read 10485760/10485760 bytes at offset 104857600
184510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1846
1847# Read test pattern 0x13
1848qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1849read 10485760/10485760 bytes at offset 3298534883328
185010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1851
1852# Write test pattern 0x91
1853qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1854wrote 10485760/10485760 bytes at offset 104857600
185510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1856
1857# Write test pattern 0x5e
1858qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1859wrote 10485760/10485760 bytes at offset 3298534883328
186010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1861
1862# Open dev
1863sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
1864# Set dev owner
1865sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1866# Read test pattern 0x91
1867qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1868read 10485760/10485760 bytes at offset 104857600
186910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1870
1871# Read test pattern 0x5e
1872qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1873read 10485760/10485760 bytes at offset 3298534883328
187410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1875
1876# Close dev
1877sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
1878# Delete image
1879unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
1880
1881# ================= dm-crypt aes-256-cbc-essiv-auto-sha1 =================
1882# Create image
1883truncate TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img --size 4194304MB
1884# Format image
1885sudo cryptsetup -q -v luksFormat --cipher aes-cbc-essiv:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1886# Open dev
1887sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
1888# Set dev owner
1889sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1890# Write test pattern 0xa7
1891qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1892wrote 10485760/10485760 bytes at offset 104857600
189310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1894
1895# Write test pattern 0x13
1896qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1897wrote 10485760/10485760 bytes at offset 3298534883328
189810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1899
1900# Close dev
1901sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
1902# Read test pattern 0xa7
1903qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1904read 10485760/10485760 bytes at offset 104857600
190510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1906
1907# Read test pattern 0x13
1908qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1909read 10485760/10485760 bytes at offset 3298534883328
191010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1911
1912# Write test pattern 0x91
1913qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1914wrote 10485760/10485760 bytes at offset 104857600
191510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1916
1917# Write test pattern 0x5e
1918qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1919wrote 10485760/10485760 bytes at offset 3298534883328
192010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1921
1922# Open dev
1923sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
1924# Set dev owner
1925sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1926# Read test pattern 0x91
1927qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1928read 10485760/10485760 bytes at offset 104857600
192910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1930
1931# Read test pattern 0x5e
1932qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1933read 10485760/10485760 bytes at offset 3298534883328
193410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1935
1936# Close dev
1937sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
1938# Delete image
1939unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1940
1941# ================= qemu-img aes-256-cbc-essiv-auto-sha1 =================
1942# Create image
1943qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=essiv,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img 4194304M
1944Formatting 'TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=essiv hash-alg=sha1
1945
1946# Open dev
1947sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
1948# Set dev owner
1949sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1950# Write test pattern 0xa7
1951qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1952wrote 10485760/10485760 bytes at offset 104857600
195310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1954
1955# Write test pattern 0x13
1956qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1957wrote 10485760/10485760 bytes at offset 3298534883328
195810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1959
1960# Close dev
1961sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
1962# Read test pattern 0xa7
1963qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1964read 10485760/10485760 bytes at offset 104857600
196510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1966
1967# Read test pattern 0x13
1968qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1969read 10485760/10485760 bytes at offset 3298534883328
197010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1971
1972# Write test pattern 0x91
1973qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1974wrote 10485760/10485760 bytes at offset 104857600
197510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1976
1977# Write test pattern 0x5e
1978qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
1979wrote 10485760/10485760 bytes at offset 3298534883328
198010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1981
1982# Open dev
1983sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
1984# Set dev owner
1985sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1986# Read test pattern 0x91
1987qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1988read 10485760/10485760 bytes at offset 104857600
198910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1990
1991# Read test pattern 0x5e
1992qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1993read 10485760/10485760 bytes at offset 3298534883328
199410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1995
1996# Close dev
1997sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
1998# Delete image
1999unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
2000
2001# ================= dm-crypt aes-256-cbc-plain64-sha256-sha1 =================
2002# Create image
2003truncate TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img --size 4194304MB
2004# Format image
2005sudo cryptsetup -q -v luksFormat --cipher aes-cbc-plain64:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2006# Open dev
2007sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2008# Set dev owner
2009sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2010# Write test pattern 0xa7
2011qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2012wrote 10485760/10485760 bytes at offset 104857600
201310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2014
2015# Write test pattern 0x13
2016qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2017wrote 10485760/10485760 bytes at offset 3298534883328
201810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2019
2020# Close dev
2021sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2022# Read test pattern 0xa7
2023qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2024read 10485760/10485760 bytes at offset 104857600
202510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2026
2027# Read test pattern 0x13
2028qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2029read 10485760/10485760 bytes at offset 3298534883328
203010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2031
2032# Write test pattern 0x91
2033qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2034wrote 10485760/10485760 bytes at offset 104857600
203510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2036
2037# Write test pattern 0x5e
2038qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2039wrote 10485760/10485760 bytes at offset 3298534883328
204010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2041
2042# Open dev
2043sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2044# Set dev owner
2045sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2046# Read test pattern 0x91
2047qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2048read 10485760/10485760 bytes at offset 104857600
204910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2050
2051# Read test pattern 0x5e
2052qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2053read 10485760/10485760 bytes at offset 3298534883328
205410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2055
2056# Close dev
2057sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2058# Delete image
2059unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2060
2061# ================= qemu-img aes-256-cbc-plain64-sha256-sha1 =================
2062# Create image
2063qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1,ivgen-hash-alg=sha256 TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img 4194304M
2064Formatting 'TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=plain64 ivgen-hash-alg=sha256 hash-alg=sha1
2065
2066# Open dev
2067sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2068# Set dev owner
2069sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2070# Write test pattern 0xa7
2071qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2072wrote 10485760/10485760 bytes at offset 104857600
207310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2074
2075# Write test pattern 0x13
2076qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2077wrote 10485760/10485760 bytes at offset 3298534883328
207810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2079
2080# Close dev
2081sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2082# Read test pattern 0xa7
2083qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2084read 10485760/10485760 bytes at offset 104857600
208510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2086
2087# Read test pattern 0x13
2088qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2089read 10485760/10485760 bytes at offset 3298534883328
209010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2091
2092# Write test pattern 0x91
2093qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2094wrote 10485760/10485760 bytes at offset 104857600
209510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2096
2097# Write test pattern 0x5e
2098qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2099wrote 10485760/10485760 bytes at offset 3298534883328
210010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2101
2102# Open dev
2103sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2104# Set dev owner
2105sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2106# Read test pattern 0x91
2107qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2108read 10485760/10485760 bytes at offset 104857600
210910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2110
2111# Read test pattern 0x5e
2112qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2113read 10485760/10485760 bytes at offset 3298534883328
211410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2115
2116# Close dev
2117sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2118# Delete image
2119unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2120
2121