xref: /openbmc/qemu/tests/qemu-iotests/149.out (revision 6c3a9247)
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 --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 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# Write test pattern 0xa7
9sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
10qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
11wrote 10485760/10485760 bytes at offset 104857600
1210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
13
14# Write test pattern 0x13
15sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
16qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,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# Read test pattern 0x91
45sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
46qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
47read 10485760/10485760 bytes at offset 104857600
4810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
49
50# Read test pattern 0x5e
51sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
52qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,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,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-256-xts-plain64-sha1.img 4194304M
64
65# Open dev
66sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
67# Write test pattern 0xa7
68sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
69qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
70wrote 10485760/10485760 bytes at offset 104857600
7110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
72
73# Write test pattern 0x13
74sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
75qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
76wrote 10485760/10485760 bytes at offset 3298534883328
7710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
78
79# Close dev
80sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
81# Read test pattern 0xa7
82qemu-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
83read 10485760/10485760 bytes at offset 104857600
8410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
85
86# Read test pattern 0x13
87qemu-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
88read 10485760/10485760 bytes at offset 3298534883328
8910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
90
91# Write test pattern 0x91
92qemu-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
93wrote 10485760/10485760 bytes at offset 104857600
9410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
95
96# Write test pattern 0x5e
97qemu-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
98wrote 10485760/10485760 bytes at offset 3298534883328
9910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
100
101# Open dev
102sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
103# Read test pattern 0x91
104sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
105qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
106read 10485760/10485760 bytes at offset 104857600
10710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
108
109# Read test pattern 0x5e
110sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
111qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
112read 10485760/10485760 bytes at offset 3298534883328
11310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
114
115# Close dev
116sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
117# Delete image
118unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img
119
120# ================= dm-crypt twofish-256-xts-plain64-sha1 =================
121# Create image
122truncate TEST_DIR/luks-twofish-256-xts-plain64-sha1.img --size 4194304MB
123# Format image
124sudo cryptsetup -q -v luksFormat --type luks1 --cipher twofish-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
125# Open dev
126sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
127# Write test pattern 0xa7
128sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
129qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
130wrote 10485760/10485760 bytes at offset 104857600
13110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
132
133# Write test pattern 0x13
134sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
135qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
136wrote 10485760/10485760 bytes at offset 3298534883328
13710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
138
139# Close dev
140sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
141# Read test pattern 0xa7
142qemu-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
143read 10485760/10485760 bytes at offset 104857600
14410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
145
146# Read test pattern 0x13
147qemu-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
148read 10485760/10485760 bytes at offset 3298534883328
14910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
150
151# Write test pattern 0x91
152qemu-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
153wrote 10485760/10485760 bytes at offset 104857600
15410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
155
156# Write test pattern 0x5e
157qemu-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
158wrote 10485760/10485760 bytes at offset 3298534883328
15910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
160
161# Open dev
162sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
163# Read test pattern 0x91
164sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
165qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
166read 10485760/10485760 bytes at offset 104857600
16710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
168
169# Read test pattern 0x5e
170sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
171qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
172read 10485760/10485760 bytes at offset 3298534883328
17310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
174
175# Close dev
176sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
177# Delete image
178unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
179
180# ================= qemu-img twofish-256-xts-plain64-sha1 =================
181# Create image
182qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=twofish-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 4194304M
183
184# Open dev
185sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
186# Write test pattern 0xa7
187sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
188qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
189wrote 10485760/10485760 bytes at offset 104857600
19010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
191
192# Write test pattern 0x13
193sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
194qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
195wrote 10485760/10485760 bytes at offset 3298534883328
19610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
197
198# Close dev
199sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
200# Read test pattern 0xa7
201qemu-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
202read 10485760/10485760 bytes at offset 104857600
20310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
204
205# Read test pattern 0x13
206qemu-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
207read 10485760/10485760 bytes at offset 3298534883328
20810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
209
210# Write test pattern 0x91
211qemu-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
212wrote 10485760/10485760 bytes at offset 104857600
21310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
214
215# Write test pattern 0x5e
216qemu-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
217wrote 10485760/10485760 bytes at offset 3298534883328
21810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
219
220# Open dev
221sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
222# Read test pattern 0x91
223sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
224qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
225read 10485760/10485760 bytes at offset 104857600
22610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
227
228# Read test pattern 0x5e
229sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
230qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
231read 10485760/10485760 bytes at offset 3298534883328
23210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
233
234# Close dev
235sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
236# Delete image
237unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
238
239# ================= dm-crypt serpent-256-xts-plain64-sha1 =================
240# Create image
241truncate TEST_DIR/luks-serpent-256-xts-plain64-sha1.img --size 4194304MB
242# Format image
243sudo cryptsetup -q -v luksFormat --type luks1 --cipher serpent-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
244# Open dev
245sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
246# Write test pattern 0xa7
247sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
248qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
249wrote 10485760/10485760 bytes at offset 104857600
25010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
251
252# Write test pattern 0x13
253sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
254qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
255wrote 10485760/10485760 bytes at offset 3298534883328
25610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
257
258# Close dev
259sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
260# Read test pattern 0xa7
261qemu-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
262read 10485760/10485760 bytes at offset 104857600
26310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
264
265# Read test pattern 0x13
266qemu-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
267read 10485760/10485760 bytes at offset 3298534883328
26810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
269
270# Write test pattern 0x91
271qemu-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
272wrote 10485760/10485760 bytes at offset 104857600
27310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
274
275# Write test pattern 0x5e
276qemu-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
277wrote 10485760/10485760 bytes at offset 3298534883328
27810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
279
280# Open dev
281sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
282# Read test pattern 0x91
283sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
284qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
285read 10485760/10485760 bytes at offset 104857600
28610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
287
288# Read test pattern 0x5e
289sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
290qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
291read 10485760/10485760 bytes at offset 3298534883328
29210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
293
294# Close dev
295sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
296# Delete image
297unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
298
299# ================= qemu-img serpent-256-xts-plain64-sha1 =================
300# Create image
301qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=serpent-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 4194304M
302
303# Open dev
304sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
305# Write test pattern 0xa7
306sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
307qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
308wrote 10485760/10485760 bytes at offset 104857600
30910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
310
311# Write test pattern 0x13
312sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
313qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
314wrote 10485760/10485760 bytes at offset 3298534883328
31510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
316
317# Close dev
318sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
319# Read test pattern 0xa7
320qemu-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
321read 10485760/10485760 bytes at offset 104857600
32210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
323
324# Read test pattern 0x13
325qemu-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
326read 10485760/10485760 bytes at offset 3298534883328
32710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
328
329# Write test pattern 0x91
330qemu-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
331wrote 10485760/10485760 bytes at offset 104857600
33210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
333
334# Write test pattern 0x5e
335qemu-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
336wrote 10485760/10485760 bytes at offset 3298534883328
33710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
338
339# Open dev
340sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
341# Read test pattern 0x91
342sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
343qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
344read 10485760/10485760 bytes at offset 104857600
34510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
346
347# Read test pattern 0x5e
348sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
349qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
350read 10485760/10485760 bytes at offset 3298534883328
35110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
352
353# Close dev
354sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
355# Delete image
356unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
357
358# ================= dm-crypt cast5-128-cbc-plain64-sha1 =================
359# Create image
360truncate TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img --size 4194304MB
361# Format image
362sudo cryptsetup -q -v luksFormat --type luks1 --cipher cast5-cbc-plain64 --key-size 128 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
363# Open dev
364sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
365# Write test pattern 0xa7
366sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
367qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
368wrote 10485760/10485760 bytes at offset 104857600
36910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
370
371# Write test pattern 0x13
372sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
373qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
374wrote 10485760/10485760 bytes at offset 3298534883328
37510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
376
377# Close dev
378sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
379# Read test pattern 0xa7
380qemu-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
381read 10485760/10485760 bytes at offset 104857600
38210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
383
384# Read test pattern 0x13
385qemu-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
386read 10485760/10485760 bytes at offset 3298534883328
38710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
388
389# Write test pattern 0x91
390qemu-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
391wrote 10485760/10485760 bytes at offset 104857600
39210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
393
394# Write test pattern 0x5e
395qemu-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
396wrote 10485760/10485760 bytes at offset 3298534883328
39710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
398
399# Open dev
400sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
401# Read test pattern 0x91
402sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
403qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
404read 10485760/10485760 bytes at offset 104857600
40510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
406
407# Read test pattern 0x5e
408sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
409qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
410read 10485760/10485760 bytes at offset 3298534883328
41110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
412
413# Close dev
414sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
415# Delete image
416unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
417
418# ================= qemu-img cast5-128-cbc-plain64-sha1 =================
419# Create image
420qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=cast5-128,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 4194304M
421
422# Open dev
423sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
424# Write test pattern 0xa7
425sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
426qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
427wrote 10485760/10485760 bytes at offset 104857600
42810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
429
430# Write test pattern 0x13
431sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
432qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
433wrote 10485760/10485760 bytes at offset 3298534883328
43410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
435
436# Close dev
437sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
438# Read test pattern 0xa7
439qemu-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
440read 10485760/10485760 bytes at offset 104857600
44110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
442
443# Read test pattern 0x13
444qemu-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
445read 10485760/10485760 bytes at offset 3298534883328
44610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
447
448# Write test pattern 0x91
449qemu-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
450wrote 10485760/10485760 bytes at offset 104857600
45110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
452
453# Write test pattern 0x5e
454qemu-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
455wrote 10485760/10485760 bytes at offset 3298534883328
45610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
457
458# Open dev
459sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
460# Read test pattern 0x91
461sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
462qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
463read 10485760/10485760 bytes at offset 104857600
46410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
465
466# Read test pattern 0x5e
467sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
468qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
469read 10485760/10485760 bytes at offset 3298534883328
47010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
471
472# Close dev
473sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
474# Delete image
475unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
476
477Skipping cast6-256-xts-plain64-sha1 in blacklist
478# ================= dm-crypt aes-256-cbc-plain-sha1 =================
479# Create image
480truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB
481# Format image
482sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-plain --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-plain-sha1.img
483# Open dev
484sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
485# Write test pattern 0xa7
486sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
487qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
488wrote 10485760/10485760 bytes at offset 104857600
48910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
490
491# Write test pattern 0x13
492sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
493qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
494wrote 10485760/10485760 bytes at offset 3298534883328
49510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
496
497# Close dev
498sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
499# Read test pattern 0xa7
500qemu-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
501read 10485760/10485760 bytes at offset 104857600
50210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
503
504# Read test pattern 0x13
505qemu-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
506read 10485760/10485760 bytes at offset 3298534883328
50710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
508
509# Write test pattern 0x91
510qemu-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
511wrote 10485760/10485760 bytes at offset 104857600
51210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
513
514# Write test pattern 0x5e
515qemu-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
516wrote 10485760/10485760 bytes at offset 3298534883328
51710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
518
519# Open dev
520sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
521# Read test pattern 0x91
522sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
523qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
524read 10485760/10485760 bytes at offset 104857600
52510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
526
527# Read test pattern 0x5e
528sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
529qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
530read 10485760/10485760 bytes at offset 3298534883328
53110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
532
533# Close dev
534sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
535# Delete image
536unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
537
538# ================= qemu-img aes-256-cbc-plain-sha1 =================
539# Create image
540qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-plain-sha1.img 4194304M
541
542# Open dev
543sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
544# Write test pattern 0xa7
545sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
546qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
547wrote 10485760/10485760 bytes at offset 104857600
54810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
549
550# Write test pattern 0x13
551sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
552qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
553wrote 10485760/10485760 bytes at offset 3298534883328
55410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
555
556# Close dev
557sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
558# Read test pattern 0xa7
559qemu-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
560read 10485760/10485760 bytes at offset 104857600
56110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
562
563# Read test pattern 0x13
564qemu-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
565read 10485760/10485760 bytes at offset 3298534883328
56610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
567
568# Write test pattern 0x91
569qemu-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
570wrote 10485760/10485760 bytes at offset 104857600
57110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
572
573# Write test pattern 0x5e
574qemu-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
575wrote 10485760/10485760 bytes at offset 3298534883328
57610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
577
578# Open dev
579sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
580# Read test pattern 0x91
581sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
582qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
583read 10485760/10485760 bytes at offset 104857600
58410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
585
586# Read test pattern 0x5e
587sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
588qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
589read 10485760/10485760 bytes at offset 3298534883328
59010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
591
592# Close dev
593sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
594# Delete image
595unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
596
597# ================= dm-crypt aes-256-cbc-plain64-sha1 =================
598# Create image
599truncate TEST_DIR/luks-aes-256-cbc-plain64-sha1.img --size 4194304MB
600# Format image
601sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
602# Open dev
603sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
604# Write test pattern 0xa7
605sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
606qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
607wrote 10485760/10485760 bytes at offset 104857600
60810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
609
610# Write test pattern 0x13
611sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
612qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
613wrote 10485760/10485760 bytes at offset 3298534883328
61410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
615
616# Close dev
617sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
618# Read test pattern 0xa7
619qemu-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
620read 10485760/10485760 bytes at offset 104857600
62110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
622
623# Read test pattern 0x13
624qemu-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
625read 10485760/10485760 bytes at offset 3298534883328
62610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
627
628# Write test pattern 0x91
629qemu-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
630wrote 10485760/10485760 bytes at offset 104857600
63110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
632
633# Write test pattern 0x5e
634qemu-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
635wrote 10485760/10485760 bytes at offset 3298534883328
63610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
637
638# Open dev
639sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
640# Read test pattern 0x91
641sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
642qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
643read 10485760/10485760 bytes at offset 104857600
64410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
645
646# Read test pattern 0x5e
647sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
648qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
649read 10485760/10485760 bytes at offset 3298534883328
65010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
651
652# Close dev
653sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
654# Delete image
655unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
656
657# ================= qemu-img aes-256-cbc-plain64-sha1 =================
658# Create image
659qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 4194304M
660
661# Open dev
662sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
663# Write test pattern 0xa7
664sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
665qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
666wrote 10485760/10485760 bytes at offset 104857600
66710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
668
669# Write test pattern 0x13
670sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
671qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
672wrote 10485760/10485760 bytes at offset 3298534883328
67310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
674
675# Close dev
676sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
677# Read test pattern 0xa7
678qemu-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
679read 10485760/10485760 bytes at offset 104857600
68010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
681
682# Read test pattern 0x13
683qemu-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
684read 10485760/10485760 bytes at offset 3298534883328
68510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
686
687# Write test pattern 0x91
688qemu-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
689wrote 10485760/10485760 bytes at offset 104857600
69010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
691
692# Write test pattern 0x5e
693qemu-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
694wrote 10485760/10485760 bytes at offset 3298534883328
69510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
696
697# Open dev
698sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
699# Read test pattern 0x91
700sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
701qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
702read 10485760/10485760 bytes at offset 104857600
70310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
704
705# Read test pattern 0x5e
706sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
707qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
708read 10485760/10485760 bytes at offset 3298534883328
70910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
710
711# Close dev
712sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
713# Delete image
714unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
715
716# ================= dm-crypt aes-256-cbc-essiv-sha256-sha1 =================
717# Create image
718truncate TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img --size 4194304MB
719# Format image
720sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-essiv:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
721# Open dev
722sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
723# Write test pattern 0xa7
724sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
725qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
726wrote 10485760/10485760 bytes at offset 104857600
72710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
728
729# Write test pattern 0x13
730sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
731qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
732wrote 10485760/10485760 bytes at offset 3298534883328
73310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
734
735# Close dev
736sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
737# Read test pattern 0xa7
738qemu-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
739read 10485760/10485760 bytes at offset 104857600
74010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
741
742# Read test pattern 0x13
743qemu-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
744read 10485760/10485760 bytes at offset 3298534883328
74510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
746
747# Write test pattern 0x91
748qemu-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
749wrote 10485760/10485760 bytes at offset 104857600
75010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
751
752# Write test pattern 0x5e
753qemu-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
754wrote 10485760/10485760 bytes at offset 3298534883328
75510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
756
757# Open dev
758sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
759# Read test pattern 0x91
760sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
761qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
762read 10485760/10485760 bytes at offset 104857600
76310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
764
765# Read test pattern 0x5e
766sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
767qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
768read 10485760/10485760 bytes at offset 3298534883328
76910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
770
771# Close dev
772sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
773# Delete image
774unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
775
776# ================= qemu-img aes-256-cbc-essiv-sha256-sha1 =================
777# Create image
778qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,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
779
780# Open dev
781sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
782# Write test pattern 0xa7
783sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
784qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
785wrote 10485760/10485760 bytes at offset 104857600
78610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
787
788# Write test pattern 0x13
789sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
790qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
791wrote 10485760/10485760 bytes at offset 3298534883328
79210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
793
794# Close dev
795sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
796# Read test pattern 0xa7
797qemu-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
798read 10485760/10485760 bytes at offset 104857600
79910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
800
801# Read test pattern 0x13
802qemu-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
803read 10485760/10485760 bytes at offset 3298534883328
80410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
805
806# Write test pattern 0x91
807qemu-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
808wrote 10485760/10485760 bytes at offset 104857600
80910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
810
811# Write test pattern 0x5e
812qemu-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
813wrote 10485760/10485760 bytes at offset 3298534883328
81410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
815
816# Open dev
817sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
818# Read test pattern 0x91
819sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
820qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
821read 10485760/10485760 bytes at offset 104857600
82210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
823
824# Read test pattern 0x5e
825sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
826qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
827read 10485760/10485760 bytes at offset 3298534883328
82810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
829
830# Close dev
831sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
832# Delete image
833unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
834
835# ================= dm-crypt aes-256-xts-essiv-sha256-sha1 =================
836# Create image
837truncate TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img --size 4194304MB
838# Format image
839sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-essiv:sha256 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
840# Open dev
841sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
842# Write test pattern 0xa7
843sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
844qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
845wrote 10485760/10485760 bytes at offset 104857600
84610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
847
848# Write test pattern 0x13
849sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
850qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
851wrote 10485760/10485760 bytes at offset 3298534883328
85210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
853
854# Close dev
855sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
856# Read test pattern 0xa7
857qemu-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
858read 10485760/10485760 bytes at offset 104857600
85910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
860
861# Read test pattern 0x13
862qemu-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
863read 10485760/10485760 bytes at offset 3298534883328
86410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
865
866# Write test pattern 0x91
867qemu-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
868wrote 10485760/10485760 bytes at offset 104857600
86910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
870
871# Write test pattern 0x5e
872qemu-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
873wrote 10485760/10485760 bytes at offset 3298534883328
87410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
875
876# Open dev
877sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
878# Read test pattern 0x91
879sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
880qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
881read 10485760/10485760 bytes at offset 104857600
88210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
883
884# Read test pattern 0x5e
885sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
886qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
887read 10485760/10485760 bytes at offset 3298534883328
88810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
889
890# Close dev
891sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
892# Delete image
893unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
894
895# ================= qemu-img aes-256-xts-essiv-sha256-sha1 =================
896# Create image
897qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,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
898
899# Open dev
900sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
901# Write test pattern 0xa7
902sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
903qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
904wrote 10485760/10485760 bytes at offset 104857600
90510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
906
907# Write test pattern 0x13
908sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
909qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
910wrote 10485760/10485760 bytes at offset 3298534883328
91110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
912
913# Close dev
914sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
915# Read test pattern 0xa7
916qemu-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
917read 10485760/10485760 bytes at offset 104857600
91810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
919
920# Read test pattern 0x13
921qemu-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
922read 10485760/10485760 bytes at offset 3298534883328
92310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
924
925# Write test pattern 0x91
926qemu-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
927wrote 10485760/10485760 bytes at offset 104857600
92810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
929
930# Write test pattern 0x5e
931qemu-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
932wrote 10485760/10485760 bytes at offset 3298534883328
93310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
934
935# Open dev
936sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
937# Read test pattern 0x91
938sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
939qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
940read 10485760/10485760 bytes at offset 104857600
94110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
942
943# Read test pattern 0x5e
944sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
945qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
946read 10485760/10485760 bytes at offset 3298534883328
94710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
948
949# Close dev
950sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
951# Delete image
952unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
953
954# ================= dm-crypt aes-128-xts-plain64-sha256-sha1 =================
955# Create image
956truncate TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img --size 4194304MB
957# Format image
958sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
959# Open dev
960sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
961# Write test pattern 0xa7
962sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
963qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
964wrote 10485760/10485760 bytes at offset 104857600
96510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
966
967# Write test pattern 0x13
968sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
969qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
970wrote 10485760/10485760 bytes at offset 3298534883328
97110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
972
973# Close dev
974sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
975# Read test pattern 0xa7
976qemu-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
977read 10485760/10485760 bytes at offset 104857600
97810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
979
980# Read test pattern 0x13
981qemu-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
982read 10485760/10485760 bytes at offset 3298534883328
98310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
984
985# Write test pattern 0x91
986qemu-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
987wrote 10485760/10485760 bytes at offset 104857600
98810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
989
990# Write test pattern 0x5e
991qemu-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
992wrote 10485760/10485760 bytes at offset 3298534883328
99310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
994
995# Open dev
996sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
997# Read test pattern 0x91
998sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
999qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1000read 10485760/10485760 bytes at offset 104857600
100110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1002
1003# Read test pattern 0x5e
1004sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1005qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1006read 10485760/10485760 bytes at offset 3298534883328
100710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1008
1009# Close dev
1010sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1011# Delete image
1012unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1013
1014# ================= qemu-img aes-128-xts-plain64-sha256-sha1 =================
1015# Create image
1016qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 4194304M
1017
1018# Open dev
1019sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
1020# Write test pattern 0xa7
1021sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1022qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1023wrote 10485760/10485760 bytes at offset 104857600
102410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1025
1026# Write test pattern 0x13
1027sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1028qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1029wrote 10485760/10485760 bytes at offset 3298534883328
103010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1031
1032# Close dev
1033sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1034# Read test pattern 0xa7
1035qemu-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
1036read 10485760/10485760 bytes at offset 104857600
103710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1038
1039# Read test pattern 0x13
1040qemu-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
1041read 10485760/10485760 bytes at offset 3298534883328
104210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1043
1044# Write test pattern 0x91
1045qemu-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
1046wrote 10485760/10485760 bytes at offset 104857600
104710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1048
1049# Write test pattern 0x5e
1050qemu-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
1051wrote 10485760/10485760 bytes at offset 3298534883328
105210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1053
1054# Open dev
1055sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
1056# Read test pattern 0x91
1057sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1058qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1059read 10485760/10485760 bytes at offset 104857600
106010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1061
1062# Read test pattern 0x5e
1063sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1064qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1065read 10485760/10485760 bytes at offset 3298534883328
106610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1067
1068# Close dev
1069sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1070# Delete image
1071unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1072
1073# ================= dm-crypt aes-192-xts-plain64-sha256-sha1 =================
1074# Create image
1075truncate TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img --size 4194304MB
1076# Format image
1077sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 384 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1078# Open dev
1079sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1080# Write test pattern 0xa7
1081sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1082qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1083wrote 10485760/10485760 bytes at offset 104857600
108410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1085
1086# Write test pattern 0x13
1087sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1088qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1089wrote 10485760/10485760 bytes at offset 3298534883328
109010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1091
1092# Close dev
1093sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1094# Read test pattern 0xa7
1095qemu-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
1096read 10485760/10485760 bytes at offset 104857600
109710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1098
1099# Read test pattern 0x13
1100qemu-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
1101read 10485760/10485760 bytes at offset 3298534883328
110210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1103
1104# Write test pattern 0x91
1105qemu-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
1106wrote 10485760/10485760 bytes at offset 104857600
110710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1108
1109# Write test pattern 0x5e
1110qemu-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
1111wrote 10485760/10485760 bytes at offset 3298534883328
111210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1113
1114# Open dev
1115sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1116# Read test pattern 0x91
1117sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1118qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1119read 10485760/10485760 bytes at offset 104857600
112010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1121
1122# Read test pattern 0x5e
1123sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1124qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1125read 10485760/10485760 bytes at offset 3298534883328
112610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1127
1128# Close dev
1129sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1130# Delete image
1131unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1132
1133# ================= qemu-img aes-192-xts-plain64-sha256-sha1 =================
1134# Create image
1135qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-192,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 4194304M
1136
1137# Open dev
1138sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1139# Write test pattern 0xa7
1140sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1141qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1142wrote 10485760/10485760 bytes at offset 104857600
114310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1144
1145# Write test pattern 0x13
1146sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1147qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1148wrote 10485760/10485760 bytes at offset 3298534883328
114910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1150
1151# Close dev
1152sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1153# Read test pattern 0xa7
1154qemu-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
1155read 10485760/10485760 bytes at offset 104857600
115610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1157
1158# Read test pattern 0x13
1159qemu-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
1160read 10485760/10485760 bytes at offset 3298534883328
116110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1162
1163# Write test pattern 0x91
1164qemu-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
1165wrote 10485760/10485760 bytes at offset 104857600
116610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1167
1168# Write test pattern 0x5e
1169qemu-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
1170wrote 10485760/10485760 bytes at offset 3298534883328
117110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1172
1173# Open dev
1174sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1175# Read test pattern 0x91
1176sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1177qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1178read 10485760/10485760 bytes at offset 104857600
117910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1180
1181# Read test pattern 0x5e
1182sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1183qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1184read 10485760/10485760 bytes at offset 3298534883328
118510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1186
1187# Close dev
1188sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1189# Delete image
1190unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1191
1192# ================= dm-crypt twofish-128-xts-plain64-sha1 =================
1193# Create image
1194truncate TEST_DIR/luks-twofish-128-xts-plain64-sha1.img --size 4194304MB
1195# Format image
1196sudo cryptsetup -q -v luksFormat --type luks1 --cipher twofish-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1197# Open dev
1198sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1199# Write test pattern 0xa7
1200sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1201qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1202wrote 10485760/10485760 bytes at offset 104857600
120310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1204
1205# Write test pattern 0x13
1206sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1207qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1208wrote 10485760/10485760 bytes at offset 3298534883328
120910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1210
1211# Close dev
1212sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1213# Read test pattern 0xa7
1214qemu-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
1215read 10485760/10485760 bytes at offset 104857600
121610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1217
1218# Read test pattern 0x13
1219qemu-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
1220read 10485760/10485760 bytes at offset 3298534883328
122110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1222
1223# Write test pattern 0x91
1224qemu-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
1225wrote 10485760/10485760 bytes at offset 104857600
122610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1227
1228# Write test pattern 0x5e
1229qemu-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
1230wrote 10485760/10485760 bytes at offset 3298534883328
123110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1232
1233# Open dev
1234sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1235# Read test pattern 0x91
1236sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1237qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1238read 10485760/10485760 bytes at offset 104857600
123910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1240
1241# Read test pattern 0x5e
1242sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1243qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1244read 10485760/10485760 bytes at offset 3298534883328
124510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1246
1247# Close dev
1248sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1249# Delete image
1250unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1251
1252# ================= qemu-img twofish-128-xts-plain64-sha1 =================
1253# Create image
1254qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=twofish-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 4194304M
1255
1256# Open dev
1257sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1258# Write test pattern 0xa7
1259sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1260qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1261wrote 10485760/10485760 bytes at offset 104857600
126210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1263
1264# Write test pattern 0x13
1265sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1266qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1267wrote 10485760/10485760 bytes at offset 3298534883328
126810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1269
1270# Close dev
1271sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1272# Read test pattern 0xa7
1273qemu-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
1274read 10485760/10485760 bytes at offset 104857600
127510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1276
1277# Read test pattern 0x13
1278qemu-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
1279read 10485760/10485760 bytes at offset 3298534883328
128010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1281
1282# Write test pattern 0x91
1283qemu-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
1284wrote 10485760/10485760 bytes at offset 104857600
128510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1286
1287# Write test pattern 0x5e
1288qemu-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
1289wrote 10485760/10485760 bytes at offset 3298534883328
129010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1291
1292# Open dev
1293sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1294# Read test pattern 0x91
1295sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1296qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1297read 10485760/10485760 bytes at offset 104857600
129810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1299
1300# Read test pattern 0x5e
1301sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1302qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1303read 10485760/10485760 bytes at offset 3298534883328
130410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1305
1306# Close dev
1307sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1308# Delete image
1309unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1310
1311Skipping twofish-192-xts-plain64-sha1 in blacklist
1312# ================= dm-crypt serpent-128-xts-plain64-sha1 =================
1313# Create image
1314truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB
1315# Format image
1316sudo cryptsetup -q -v luksFormat --type luks1 --cipher serpent-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1317# Open dev
1318sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1319# Write test pattern 0xa7
1320sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1321qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1322wrote 10485760/10485760 bytes at offset 104857600
132310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1324
1325# Write test pattern 0x13
1326sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1327qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1328wrote 10485760/10485760 bytes at offset 3298534883328
132910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1330
1331# Close dev
1332sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1333# Read test pattern 0xa7
1334qemu-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
1335read 10485760/10485760 bytes at offset 104857600
133610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1337
1338# Read test pattern 0x13
1339qemu-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
1340read 10485760/10485760 bytes at offset 3298534883328
134110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1342
1343# Write test pattern 0x91
1344qemu-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
1345wrote 10485760/10485760 bytes at offset 104857600
134610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1347
1348# Write test pattern 0x5e
1349qemu-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
1350wrote 10485760/10485760 bytes at offset 3298534883328
135110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1352
1353# Open dev
1354sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1355# Read test pattern 0x91
1356sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1357qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1358read 10485760/10485760 bytes at offset 104857600
135910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1360
1361# Read test pattern 0x5e
1362sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1363qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1364read 10485760/10485760 bytes at offset 3298534883328
136510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1366
1367# Close dev
1368sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1369# Delete image
1370unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1371
1372# ================= qemu-img serpent-128-xts-plain64-sha1 =================
1373# Create image
1374qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=serpent-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 4194304M
1375
1376# Open dev
1377sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1378# Write test pattern 0xa7
1379sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1380qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1381wrote 10485760/10485760 bytes at offset 104857600
138210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1383
1384# Write test pattern 0x13
1385sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1386qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1387wrote 10485760/10485760 bytes at offset 3298534883328
138810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1389
1390# Close dev
1391sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1392# Read test pattern 0xa7
1393qemu-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
1394read 10485760/10485760 bytes at offset 104857600
139510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1396
1397# Read test pattern 0x13
1398qemu-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
1399read 10485760/10485760 bytes at offset 3298534883328
140010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1401
1402# Write test pattern 0x91
1403qemu-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
1404wrote 10485760/10485760 bytes at offset 104857600
140510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1406
1407# Write test pattern 0x5e
1408qemu-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
1409wrote 10485760/10485760 bytes at offset 3298534883328
141010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1411
1412# Open dev
1413sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1414# Read test pattern 0x91
1415sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1416qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1417read 10485760/10485760 bytes at offset 104857600
141810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1419
1420# Read test pattern 0x5e
1421sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1422qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1423read 10485760/10485760 bytes at offset 3298534883328
142410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1425
1426# Close dev
1427sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1428# Delete image
1429unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1430
1431# ================= dm-crypt serpent-192-xts-plain64-sha1 =================
1432# Create image
1433truncate TEST_DIR/luks-serpent-192-xts-plain64-sha1.img --size 4194304MB
1434# Format image
1435sudo cryptsetup -q -v luksFormat --type luks1 --cipher serpent-xts-plain64 --key-size 384 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1436# Open dev
1437sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1438# Write test pattern 0xa7
1439sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1440qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1441wrote 10485760/10485760 bytes at offset 104857600
144210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1443
1444# Write test pattern 0x13
1445sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1446qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1447wrote 10485760/10485760 bytes at offset 3298534883328
144810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1449
1450# Close dev
1451sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1452# Read test pattern 0xa7
1453qemu-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
1454read 10485760/10485760 bytes at offset 104857600
145510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1456
1457# Read test pattern 0x13
1458qemu-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
1459read 10485760/10485760 bytes at offset 3298534883328
146010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1461
1462# Write test pattern 0x91
1463qemu-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
1464wrote 10485760/10485760 bytes at offset 104857600
146510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1466
1467# Write test pattern 0x5e
1468qemu-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
1469wrote 10485760/10485760 bytes at offset 3298534883328
147010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1471
1472# Open dev
1473sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1474# Read test pattern 0x91
1475sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1476qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1477read 10485760/10485760 bytes at offset 104857600
147810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1479
1480# Read test pattern 0x5e
1481sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1482qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1483read 10485760/10485760 bytes at offset 3298534883328
148410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1485
1486# Close dev
1487sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1488# Delete image
1489unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1490
1491# ================= qemu-img serpent-192-xts-plain64-sha1 =================
1492# Create image
1493qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=serpent-192,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 4194304M
1494
1495# Open dev
1496sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1497# Write test pattern 0xa7
1498sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1499qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1500wrote 10485760/10485760 bytes at offset 104857600
150110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1502
1503# Write test pattern 0x13
1504sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1505qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1506wrote 10485760/10485760 bytes at offset 3298534883328
150710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1508
1509# Close dev
1510sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1511# Read test pattern 0xa7
1512qemu-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
1513read 10485760/10485760 bytes at offset 104857600
151410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1515
1516# Read test pattern 0x13
1517qemu-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
1518read 10485760/10485760 bytes at offset 3298534883328
151910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1520
1521# Write test pattern 0x91
1522qemu-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
1523wrote 10485760/10485760 bytes at offset 104857600
152410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1525
1526# Write test pattern 0x5e
1527qemu-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
1528wrote 10485760/10485760 bytes at offset 3298534883328
152910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1530
1531# Open dev
1532sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1533# Read test pattern 0x91
1534sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1535qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1536read 10485760/10485760 bytes at offset 104857600
153710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1538
1539# Read test pattern 0x5e
1540sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1541qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1542read 10485760/10485760 bytes at offset 3298534883328
154310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1544
1545# Close dev
1546sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1547# Delete image
1548unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1549
1550Skipping cast6-128-xts-plain64-sha1 in blacklist
1551Skipping cast6-192-xts-plain64-sha1 in blacklist
1552# ================= dm-crypt aes-256-xts-plain64-sha224 =================
1553# Create image
1554truncate TEST_DIR/luks-aes-256-xts-plain64-sha224.img --size 4194304MB
1555# Format image
1556sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha224 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha224.img
1557# Open dev
1558sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
1559# Write test pattern 0xa7
1560sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1561qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1562wrote 10485760/10485760 bytes at offset 104857600
156310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1564
1565# Write test pattern 0x13
1566sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1567qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1568wrote 10485760/10485760 bytes at offset 3298534883328
156910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1570
1571# Close dev
1572sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1573# Read test pattern 0xa7
1574qemu-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-sha224.img
1575read 10485760/10485760 bytes at offset 104857600
157610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1577
1578# Read test pattern 0x13
1579qemu-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-sha224.img
1580read 10485760/10485760 bytes at offset 3298534883328
158110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1582
1583# Write test pattern 0x91
1584qemu-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-sha224.img
1585wrote 10485760/10485760 bytes at offset 104857600
158610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1587
1588# Write test pattern 0x5e
1589qemu-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-sha224.img
1590wrote 10485760/10485760 bytes at offset 3298534883328
159110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1592
1593# Open dev
1594sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
1595# Read test pattern 0x91
1596sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1597qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1598read 10485760/10485760 bytes at offset 104857600
159910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1600
1601# Read test pattern 0x5e
1602sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1603qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1604read 10485760/10485760 bytes at offset 3298534883328
160510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1606
1607# Close dev
1608sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1609# Delete image
1610unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img
1611
1612# ================= qemu-img aes-256-xts-plain64-sha224 =================
1613# Create image
1614qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha224 TEST_DIR/luks-aes-256-xts-plain64-sha224.img 4194304M
1615
1616# Open dev
1617sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
1618# Write test pattern 0xa7
1619sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1620qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1621wrote 10485760/10485760 bytes at offset 104857600
162210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1623
1624# Write test pattern 0x13
1625sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1626qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1627wrote 10485760/10485760 bytes at offset 3298534883328
162810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1629
1630# Close dev
1631sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1632# Read test pattern 0xa7
1633qemu-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-sha224.img
1634read 10485760/10485760 bytes at offset 104857600
163510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1636
1637# Read test pattern 0x13
1638qemu-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-sha224.img
1639read 10485760/10485760 bytes at offset 3298534883328
164010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1641
1642# Write test pattern 0x91
1643qemu-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-sha224.img
1644wrote 10485760/10485760 bytes at offset 104857600
164510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1646
1647# Write test pattern 0x5e
1648qemu-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-sha224.img
1649wrote 10485760/10485760 bytes at offset 3298534883328
165010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1651
1652# Open dev
1653sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
1654# Read test pattern 0x91
1655sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1656qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1657read 10485760/10485760 bytes at offset 104857600
165810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1659
1660# Read test pattern 0x5e
1661sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1662qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1663read 10485760/10485760 bytes at offset 3298534883328
166410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1665
1666# Close dev
1667sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1668# Delete image
1669unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img
1670
1671# ================= dm-crypt aes-256-xts-plain64-sha256 =================
1672# Create image
1673truncate TEST_DIR/luks-aes-256-xts-plain64-sha256.img --size 4194304MB
1674# Format image
1675sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha256 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1676# Open dev
1677sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1678# Write test pattern 0xa7
1679sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1680qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1681wrote 10485760/10485760 bytes at offset 104857600
168210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1683
1684# Write test pattern 0x13
1685sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1686qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1687wrote 10485760/10485760 bytes at offset 3298534883328
168810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1689
1690# Close dev
1691sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1692# Read test pattern 0xa7
1693qemu-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
1694read 10485760/10485760 bytes at offset 104857600
169510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1696
1697# Read test pattern 0x13
1698qemu-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
1699read 10485760/10485760 bytes at offset 3298534883328
170010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1701
1702# Write test pattern 0x91
1703qemu-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
1704wrote 10485760/10485760 bytes at offset 104857600
170510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1706
1707# Write test pattern 0x5e
1708qemu-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
1709wrote 10485760/10485760 bytes at offset 3298534883328
171010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1711
1712# Open dev
1713sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1714# Read test pattern 0x91
1715sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1716qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1717read 10485760/10485760 bytes at offset 104857600
171810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1719
1720# Read test pattern 0x5e
1721sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1722qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1723read 10485760/10485760 bytes at offset 3298534883328
172410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1725
1726# Close dev
1727sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1728# Delete image
1729unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1730
1731# ================= qemu-img aes-256-xts-plain64-sha256 =================
1732# Create image
1733qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha256 TEST_DIR/luks-aes-256-xts-plain64-sha256.img 4194304M
1734
1735# Open dev
1736sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1737# Write test pattern 0xa7
1738sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1739qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1740wrote 10485760/10485760 bytes at offset 104857600
174110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1742
1743# Write test pattern 0x13
1744sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1745qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1746wrote 10485760/10485760 bytes at offset 3298534883328
174710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1748
1749# Close dev
1750sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1751# Read test pattern 0xa7
1752qemu-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
1753read 10485760/10485760 bytes at offset 104857600
175410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1755
1756# Read test pattern 0x13
1757qemu-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
1758read 10485760/10485760 bytes at offset 3298534883328
175910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1760
1761# Write test pattern 0x91
1762qemu-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
1763wrote 10485760/10485760 bytes at offset 104857600
176410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1765
1766# Write test pattern 0x5e
1767qemu-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
1768wrote 10485760/10485760 bytes at offset 3298534883328
176910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1770
1771# Open dev
1772sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1773# Read test pattern 0x91
1774sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1775qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1776read 10485760/10485760 bytes at offset 104857600
177710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1778
1779# Read test pattern 0x5e
1780sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1781qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1782read 10485760/10485760 bytes at offset 3298534883328
178310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1784
1785# Close dev
1786sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1787# Delete image
1788unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1789
1790# ================= dm-crypt aes-256-xts-plain64-sha384 =================
1791# Create image
1792truncate TEST_DIR/luks-aes-256-xts-plain64-sha384.img --size 4194304MB
1793# Format image
1794sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha384 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha384.img
1795# Open dev
1796sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1797# Write test pattern 0xa7
1798sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1799qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1800wrote 10485760/10485760 bytes at offset 104857600
180110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1802
1803# Write test pattern 0x13
1804sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1805qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1806wrote 10485760/10485760 bytes at offset 3298534883328
180710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1808
1809# Close dev
1810sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1811# Read test pattern 0xa7
1812qemu-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-sha384.img
1813read 10485760/10485760 bytes at offset 104857600
181410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1815
1816# Read test pattern 0x13
1817qemu-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-sha384.img
1818read 10485760/10485760 bytes at offset 3298534883328
181910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1820
1821# Write test pattern 0x91
1822qemu-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-sha384.img
1823wrote 10485760/10485760 bytes at offset 104857600
182410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1825
1826# Write test pattern 0x5e
1827qemu-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-sha384.img
1828wrote 10485760/10485760 bytes at offset 3298534883328
182910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1830
1831# Open dev
1832sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1833# Read test pattern 0x91
1834sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1835qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1836read 10485760/10485760 bytes at offset 104857600
183710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1838
1839# Read test pattern 0x5e
1840sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1841qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1842read 10485760/10485760 bytes at offset 3298534883328
184310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1844
1845# Close dev
1846sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1847# Delete image
1848unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img
1849
1850# ================= qemu-img aes-256-xts-plain64-sha384 =================
1851# Create image
1852qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha384 TEST_DIR/luks-aes-256-xts-plain64-sha384.img 4194304M
1853
1854# Open dev
1855sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1856# Write test pattern 0xa7
1857sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1858qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1859wrote 10485760/10485760 bytes at offset 104857600
186010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1861
1862# Write test pattern 0x13
1863sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1864qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1865wrote 10485760/10485760 bytes at offset 3298534883328
186610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1867
1868# Close dev
1869sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1870# Read test pattern 0xa7
1871qemu-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-sha384.img
1872read 10485760/10485760 bytes at offset 104857600
187310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1874
1875# Read test pattern 0x13
1876qemu-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-sha384.img
1877read 10485760/10485760 bytes at offset 3298534883328
187810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1879
1880# Write test pattern 0x91
1881qemu-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-sha384.img
1882wrote 10485760/10485760 bytes at offset 104857600
188310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1884
1885# Write test pattern 0x5e
1886qemu-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-sha384.img
1887wrote 10485760/10485760 bytes at offset 3298534883328
188810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1889
1890# Open dev
1891sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1892# Read test pattern 0x91
1893sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1894qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1895read 10485760/10485760 bytes at offset 104857600
189610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1897
1898# Read test pattern 0x5e
1899sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1900qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1901read 10485760/10485760 bytes at offset 3298534883328
190210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1903
1904# Close dev
1905sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1906# Delete image
1907unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img
1908
1909# ================= dm-crypt aes-256-xts-plain64-sha512 =================
1910# Create image
1911truncate TEST_DIR/luks-aes-256-xts-plain64-sha512.img --size 4194304MB
1912# Format image
1913sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha512 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha512.img
1914# Open dev
1915sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1916# Write test pattern 0xa7
1917sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1918qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1919wrote 10485760/10485760 bytes at offset 104857600
192010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1921
1922# Write test pattern 0x13
1923sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1924qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1925wrote 10485760/10485760 bytes at offset 3298534883328
192610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1927
1928# Close dev
1929sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
1930# Read test pattern 0xa7
1931qemu-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-sha512.img
1932read 10485760/10485760 bytes at offset 104857600
193310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1934
1935# Read test pattern 0x13
1936qemu-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-sha512.img
1937read 10485760/10485760 bytes at offset 3298534883328
193810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1939
1940# Write test pattern 0x91
1941qemu-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-sha512.img
1942wrote 10485760/10485760 bytes at offset 104857600
194310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1944
1945# Write test pattern 0x5e
1946qemu-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-sha512.img
1947wrote 10485760/10485760 bytes at offset 3298534883328
194810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1949
1950# Open dev
1951sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1952# Read test pattern 0x91
1953sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1954qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1955read 10485760/10485760 bytes at offset 104857600
195610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1957
1958# Read test pattern 0x5e
1959sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1960qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1961read 10485760/10485760 bytes at offset 3298534883328
196210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1963
1964# Close dev
1965sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
1966# Delete image
1967unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img
1968
1969# ================= qemu-img aes-256-xts-plain64-sha512 =================
1970# Create image
1971qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha512 TEST_DIR/luks-aes-256-xts-plain64-sha512.img 4194304M
1972
1973# Open dev
1974sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1975# Write test pattern 0xa7
1976sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1977qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1978wrote 10485760/10485760 bytes at offset 104857600
197910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1980
1981# Write test pattern 0x13
1982sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1983qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1984wrote 10485760/10485760 bytes at offset 3298534883328
198510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1986
1987# Close dev
1988sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
1989# Read test pattern 0xa7
1990qemu-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-sha512.img
1991read 10485760/10485760 bytes at offset 104857600
199210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1993
1994# Read test pattern 0x13
1995qemu-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-sha512.img
1996read 10485760/10485760 bytes at offset 3298534883328
199710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1998
1999# Write test pattern 0x91
2000qemu-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-sha512.img
2001wrote 10485760/10485760 bytes at offset 104857600
200210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2003
2004# Write test pattern 0x5e
2005qemu-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-sha512.img
2006wrote 10485760/10485760 bytes at offset 3298534883328
200710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2008
2009# Open dev
2010sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
2011# Read test pattern 0x91
2012sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
2013qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
2014read 10485760/10485760 bytes at offset 104857600
201510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2016
2017# Read test pattern 0x5e
2018sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
2019qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
2020read 10485760/10485760 bytes at offset 3298534883328
202110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2022
2023# Close dev
2024sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
2025# Delete image
2026unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img
2027
2028# ================= dm-crypt aes-256-xts-plain64-ripemd160 =================
2029# Create image
2030truncate TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img --size 4194304MB
2031# Format image
2032sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash ripemd160 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
2033# Open dev
2034sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
2035# Write test pattern 0xa7
2036sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2037qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2038wrote 10485760/10485760 bytes at offset 104857600
203910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2040
2041# Write test pattern 0x13
2042sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2043qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2044wrote 10485760/10485760 bytes at offset 3298534883328
204510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2046
2047# Close dev
2048sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2049# Read test pattern 0xa7
2050qemu-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-ripemd160.img
2051read 10485760/10485760 bytes at offset 104857600
205210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2053
2054# Read test pattern 0x13
2055qemu-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-ripemd160.img
2056read 10485760/10485760 bytes at offset 3298534883328
205710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2058
2059# Write test pattern 0x91
2060qemu-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-ripemd160.img
2061wrote 10485760/10485760 bytes at offset 104857600
206210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2063
2064# Write test pattern 0x5e
2065qemu-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-ripemd160.img
2066wrote 10485760/10485760 bytes at offset 3298534883328
206710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2068
2069# Open dev
2070sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
2071# Read test pattern 0x91
2072sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2073qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2074read 10485760/10485760 bytes at offset 104857600
207510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2076
2077# Read test pattern 0x5e
2078sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2079qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2080read 10485760/10485760 bytes at offset 3298534883328
208110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2082
2083# Close dev
2084sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2085# Delete image
2086unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
2087
2088# ================= qemu-img aes-256-xts-plain64-ripemd160 =================
2089# Create image
2090qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=ripemd160 TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img 4194304M
2091
2092# Open dev
2093sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
2094# Write test pattern 0xa7
2095sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2096qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2097wrote 10485760/10485760 bytes at offset 104857600
209810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2099
2100# Write test pattern 0x13
2101sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2102qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2103wrote 10485760/10485760 bytes at offset 3298534883328
210410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2105
2106# Close dev
2107sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2108# Read test pattern 0xa7
2109qemu-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-ripemd160.img
2110read 10485760/10485760 bytes at offset 104857600
211110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2112
2113# Read test pattern 0x13
2114qemu-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-ripemd160.img
2115read 10485760/10485760 bytes at offset 3298534883328
211610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2117
2118# Write test pattern 0x91
2119qemu-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-ripemd160.img
2120wrote 10485760/10485760 bytes at offset 104857600
212110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2122
2123# Write test pattern 0x5e
2124qemu-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-ripemd160.img
2125wrote 10485760/10485760 bytes at offset 3298534883328
212610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2127
2128# Open dev
2129sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
2130# Read test pattern 0x91
2131sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2132qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2133read 10485760/10485760 bytes at offset 104857600
213410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2135
2136# Read test pattern 0x5e
2137sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2138qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2139read 10485760/10485760 bytes at offset 3298534883328
214010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2141
2142# Close dev
2143sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2144# Delete image
2145unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
2146
2147# ================= dm-crypt aes-256-xts-plain-sha1-pwslot3 =================
2148# Create image
2149truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img --size 4194304MB
2150# Format image
2151sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain --key-size 512 --hash sha1 --key-slot 3 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
2152# Open dev
2153sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
2154# Write test pattern 0xa7
2155sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2156qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2157wrote 10485760/10485760 bytes at offset 104857600
215810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2159
2160# Write test pattern 0x13
2161sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2162qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2163wrote 10485760/10485760 bytes at offset 3298534883328
216410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2165
2166# Close dev
2167sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
2168# Read test pattern 0xa7
2169qemu-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
2170read 10485760/10485760 bytes at offset 104857600
217110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2172
2173# Read test pattern 0x13
2174qemu-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
2175read 10485760/10485760 bytes at offset 3298534883328
217610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2177
2178# Write test pattern 0x91
2179qemu-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
2180wrote 10485760/10485760 bytes at offset 104857600
218110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2182
2183# Write test pattern 0x5e
2184qemu-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
2185wrote 10485760/10485760 bytes at offset 3298534883328
218610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2187
2188# Open dev
2189sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
2190# Read test pattern 0x91
2191sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2192qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2193read 10485760/10485760 bytes at offset 104857600
219410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2195
2196# Read test pattern 0x5e
2197sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2198qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2199read 10485760/10485760 bytes at offset 3298534883328
220010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2201
2202# Close dev
2203sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
2204# Delete image
2205unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
2206
2207# ================= dm-crypt aes-256-xts-plain-sha1-pwallslots =================
2208# Create image
2209truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --size 4194304MB
2210# Format image
2211sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
2212# Add password slot 1
2213sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 1 --key-file - --iter-time 10 TEST_DIR/passwd.txt
2214# Add password slot 2
2215sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 2 --key-file - --iter-time 10 TEST_DIR/passwd.txt
2216# Add password slot 3
2217sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 3 --key-file - --iter-time 10 TEST_DIR/passwd.txt
2218# Add password slot 4
2219sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 4 --key-file - --iter-time 10 TEST_DIR/passwd.txt
2220# Add password slot 5
2221sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 5 --key-file - --iter-time 10 TEST_DIR/passwd.txt
2222# Add password slot 6
2223sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 6 --key-file - --iter-time 10 TEST_DIR/passwd.txt
2224# Add password slot 7
2225sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 7 --key-file - --iter-time 10 TEST_DIR/passwd.txt
2226# Open dev
2227sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
2228# Write test pattern 0xa7
2229sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2230qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2231wrote 10485760/10485760 bytes at offset 104857600
223210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2233
2234# Write test pattern 0x13
2235sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2236qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2237wrote 10485760/10485760 bytes at offset 3298534883328
223810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2239
2240# Close dev
2241sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2242# Read test pattern 0xa7
2243qemu-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
2244read 10485760/10485760 bytes at offset 104857600
224510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2246
2247# Read test pattern 0x13
2248qemu-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
2249read 10485760/10485760 bytes at offset 3298534883328
225010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2251
2252# Write test pattern 0x91
2253qemu-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
2254wrote 10485760/10485760 bytes at offset 104857600
225510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2256
2257# Write test pattern 0x5e
2258qemu-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
2259wrote 10485760/10485760 bytes at offset 3298534883328
226010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2261
2262# Open dev
2263sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
2264# Read test pattern 0x91
2265sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2266qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2267read 10485760/10485760 bytes at offset 104857600
226810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2269
2270# Read test pattern 0x5e
2271sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2272qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2273read 10485760/10485760 bytes at offset 3298534883328
227410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2275
2276# Close dev
2277sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2278# Delete image
2279unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
2280
2281# ================= qemu-img aes-256-xts-plain-sha1-pwallslots =================
2282# Create image
2283qemu-img create -f luks --object secret,id=sec0,data=c2xvdDE=,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain,hash-alg=sha1 TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img 4194304M
2284
2285# Open dev
2286sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
2287# Write test pattern 0xa7
2288sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2289qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2290wrote 10485760/10485760 bytes at offset 104857600
229110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2292
2293# Write test pattern 0x13
2294sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2295qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2296wrote 10485760/10485760 bytes at offset 3298534883328
229710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2298
2299# Close dev
2300sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2301# Read test pattern 0xa7
2302qemu-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
2303read 10485760/10485760 bytes at offset 104857600
230410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2305
2306# Read test pattern 0x13
2307qemu-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
2308read 10485760/10485760 bytes at offset 3298534883328
230910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2310
2311# Write test pattern 0x91
2312qemu-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
2313wrote 10485760/10485760 bytes at offset 104857600
231410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2315
2316# Write test pattern 0x5e
2317qemu-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
2318wrote 10485760/10485760 bytes at offset 3298534883328
231910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2320
2321# Open dev
2322sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
2323# Read test pattern 0x91
2324sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2325qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2326read 10485760/10485760 bytes at offset 104857600
232710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2328
2329# Read test pattern 0x5e
2330sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2331qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2332read 10485760/10485760 bytes at offset 3298534883328
233310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2334
2335# Close dev
2336sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2337# Delete image
2338unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
2339
2340# ================= dm-crypt aes-256-cbc-essiv-auto-sha1 =================
2341# Create image
2342truncate TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img --size 4194304MB
2343# Format image
2344sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-essiv:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
2345# Open dev
2346sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
2347# Write test pattern 0xa7
2348sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2349qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2350wrote 10485760/10485760 bytes at offset 104857600
235110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2352
2353# Write test pattern 0x13
2354sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2355qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2356wrote 10485760/10485760 bytes at offset 3298534883328
235710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2358
2359# Close dev
2360sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2361# Read test pattern 0xa7
2362qemu-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
2363read 10485760/10485760 bytes at offset 104857600
236410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2365
2366# Read test pattern 0x13
2367qemu-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
2368read 10485760/10485760 bytes at offset 3298534883328
236910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2370
2371# Write test pattern 0x91
2372qemu-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
2373wrote 10485760/10485760 bytes at offset 104857600
237410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2375
2376# Write test pattern 0x5e
2377qemu-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
2378wrote 10485760/10485760 bytes at offset 3298534883328
237910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2380
2381# Open dev
2382sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
2383# Read test pattern 0x91
2384sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2385qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2386read 10485760/10485760 bytes at offset 104857600
238710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2388
2389# Read test pattern 0x5e
2390sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2391qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2392read 10485760/10485760 bytes at offset 3298534883328
239310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2394
2395# Close dev
2396sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2397# Delete image
2398unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
2399
2400# ================= qemu-img aes-256-cbc-essiv-auto-sha1 =================
2401# Create image
2402qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=essiv,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img 4194304M
2403
2404# Open dev
2405sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
2406# Write test pattern 0xa7
2407sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2408qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2409wrote 10485760/10485760 bytes at offset 104857600
241010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2411
2412# Write test pattern 0x13
2413sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2414qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2415wrote 10485760/10485760 bytes at offset 3298534883328
241610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2417
2418# Close dev
2419sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2420# Read test pattern 0xa7
2421qemu-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
2422read 10485760/10485760 bytes at offset 104857600
242310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2424
2425# Read test pattern 0x13
2426qemu-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
2427read 10485760/10485760 bytes at offset 3298534883328
242810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2429
2430# Write test pattern 0x91
2431qemu-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
2432wrote 10485760/10485760 bytes at offset 104857600
243310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2434
2435# Write test pattern 0x5e
2436qemu-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
2437wrote 10485760/10485760 bytes at offset 3298534883328
243810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2439
2440# Open dev
2441sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
2442# Read test pattern 0x91
2443sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2444qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2445read 10485760/10485760 bytes at offset 104857600
244610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2447
2448# Read test pattern 0x5e
2449sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2450qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2451read 10485760/10485760 bytes at offset 3298534883328
245210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2453
2454# Close dev
2455sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2456# Delete image
2457unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
2458
2459# ================= dm-crypt aes-256-cbc-plain64-sha256-sha1 =================
2460# Create image
2461truncate TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img --size 4194304MB
2462# Format image
2463sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-plain64:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2464# Open dev
2465sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2466# Write test pattern 0xa7
2467sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2468qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2469wrote 10485760/10485760 bytes at offset 104857600
247010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2471
2472# Write test pattern 0x13
2473sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2474qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2475wrote 10485760/10485760 bytes at offset 3298534883328
247610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2477
2478# Close dev
2479sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2480# Read test pattern 0xa7
2481qemu-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
2482read 10485760/10485760 bytes at offset 104857600
248310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2484
2485# Read test pattern 0x13
2486qemu-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
2487read 10485760/10485760 bytes at offset 3298534883328
248810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2489
2490# Write test pattern 0x91
2491qemu-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
2492wrote 10485760/10485760 bytes at offset 104857600
249310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2494
2495# Write test pattern 0x5e
2496qemu-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
2497wrote 10485760/10485760 bytes at offset 3298534883328
249810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2499
2500# Open dev
2501sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2502# Read test pattern 0x91
2503sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2504qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2505read 10485760/10485760 bytes at offset 104857600
250610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2507
2508# Read test pattern 0x5e
2509sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2510qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2511read 10485760/10485760 bytes at offset 3298534883328
251210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2513
2514# Close dev
2515sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2516# Delete image
2517unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2518
2519# ================= qemu-img aes-256-cbc-plain64-sha256-sha1 =================
2520# Create image
2521qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,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
2522
2523# Open dev
2524sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2525# Write test pattern 0xa7
2526sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2527qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2528wrote 10485760/10485760 bytes at offset 104857600
252910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2530
2531# Write test pattern 0x13
2532sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2533qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2534wrote 10485760/10485760 bytes at offset 3298534883328
253510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2536
2537# Close dev
2538sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2539# Read test pattern 0xa7
2540qemu-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
2541read 10485760/10485760 bytes at offset 104857600
254210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2543
2544# Read test pattern 0x13
2545qemu-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
2546read 10485760/10485760 bytes at offset 3298534883328
254710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2548
2549# Write test pattern 0x91
2550qemu-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
2551wrote 10485760/10485760 bytes at offset 104857600
255210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2553
2554# Write test pattern 0x5e
2555qemu-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
2556wrote 10485760/10485760 bytes at offset 3298534883328
255710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2558
2559# Open dev
2560sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2561# Read test pattern 0x91
2562sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2563qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2564read 10485760/10485760 bytes at offset 104857600
256510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2566
2567# Read test pattern 0x5e
2568sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2569qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2570read 10485760/10485760 bytes at offset 3298534883328
257110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2572
2573# Close dev
2574sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2575# Delete image
2576unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2577
2578