xref: /openbmc/qemu/tests/qemu-iotests/149.out (revision effd60c8)
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# Open dev
65sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
66# Write test pattern 0xa7
67sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
68qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
69wrote 10485760/10485760 bytes at offset 104857600
7010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
71
72# Write test pattern 0x13
73sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
74qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
75wrote 10485760/10485760 bytes at offset 3298534883328
7610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
77
78# Close dev
79sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
80# Read test pattern 0xa7
81qemu-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
82read 10485760/10485760 bytes at offset 104857600
8310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
84
85# Read test pattern 0x13
86qemu-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
87read 10485760/10485760 bytes at offset 3298534883328
8810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
89
90# Write test pattern 0x91
91qemu-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
92wrote 10485760/10485760 bytes at offset 104857600
9310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
94
95# Write test pattern 0x5e
96qemu-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
97wrote 10485760/10485760 bytes at offset 3298534883328
9810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
99
100# Open dev
101sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
102# Read test pattern 0x91
103sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
104qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
105read 10485760/10485760 bytes at offset 104857600
10610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
107
108# Read test pattern 0x5e
109sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
110qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
111read 10485760/10485760 bytes at offset 3298534883328
11210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
113
114# Close dev
115sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
116# Delete image
117unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img
118
119# ================= dm-crypt twofish-256-xts-plain64-sha1 =================
120# Create image
121truncate TEST_DIR/luks-twofish-256-xts-plain64-sha1.img --size 4194304MB
122# Format image
123sudo 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
124# Open dev
125sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
126# Write test pattern 0xa7
127sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
128qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
129wrote 10485760/10485760 bytes at offset 104857600
13010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
131
132# Write test pattern 0x13
133sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
134qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
135wrote 10485760/10485760 bytes at offset 3298534883328
13610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
137
138# Close dev
139sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
140# Read test pattern 0xa7
141qemu-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
142read 10485760/10485760 bytes at offset 104857600
14310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
144
145# Read test pattern 0x13
146qemu-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
147read 10485760/10485760 bytes at offset 3298534883328
14810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
149
150# Write test pattern 0x91
151qemu-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
152wrote 10485760/10485760 bytes at offset 104857600
15310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
154
155# Write test pattern 0x5e
156qemu-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
157wrote 10485760/10485760 bytes at offset 3298534883328
15810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
159
160# Open dev
161sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
162# Read test pattern 0x91
163sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
164qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
165read 10485760/10485760 bytes at offset 104857600
16610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
167
168# Read test pattern 0x5e
169sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
170qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
171read 10485760/10485760 bytes at offset 3298534883328
17210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
173
174# Close dev
175sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
176# Delete image
177unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
178
179# ================= qemu-img twofish-256-xts-plain64-sha1 =================
180# Create image
181qemu-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
182# Open dev
183sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
184# Write test pattern 0xa7
185sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
186qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
187wrote 10485760/10485760 bytes at offset 104857600
18810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
189
190# Write test pattern 0x13
191sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
192qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
193wrote 10485760/10485760 bytes at offset 3298534883328
19410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
195
196# Close dev
197sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
198# Read test pattern 0xa7
199qemu-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
200read 10485760/10485760 bytes at offset 104857600
20110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
202
203# Read test pattern 0x13
204qemu-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
205read 10485760/10485760 bytes at offset 3298534883328
20610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
207
208# Write test pattern 0x91
209qemu-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
210wrote 10485760/10485760 bytes at offset 104857600
21110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
212
213# Write test pattern 0x5e
214qemu-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
215wrote 10485760/10485760 bytes at offset 3298534883328
21610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
217
218# Open dev
219sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
220# Read test pattern 0x91
221sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
222qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
223read 10485760/10485760 bytes at offset 104857600
22410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
225
226# Read test pattern 0x5e
227sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
228qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
229read 10485760/10485760 bytes at offset 3298534883328
23010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
231
232# Close dev
233sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
234# Delete image
235unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
236
237# ================= dm-crypt serpent-256-xts-plain64-sha1 =================
238# Create image
239truncate TEST_DIR/luks-serpent-256-xts-plain64-sha1.img --size 4194304MB
240# Format image
241sudo 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
242# Open dev
243sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
244# Write test pattern 0xa7
245sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
246qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
247wrote 10485760/10485760 bytes at offset 104857600
24810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
249
250# Write test pattern 0x13
251sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
252qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
253wrote 10485760/10485760 bytes at offset 3298534883328
25410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
255
256# Close dev
257sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
258# Read test pattern 0xa7
259qemu-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
260read 10485760/10485760 bytes at offset 104857600
26110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
262
263# Read test pattern 0x13
264qemu-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
265read 10485760/10485760 bytes at offset 3298534883328
26610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
267
268# Write test pattern 0x91
269qemu-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
270wrote 10485760/10485760 bytes at offset 104857600
27110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
272
273# Write test pattern 0x5e
274qemu-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
275wrote 10485760/10485760 bytes at offset 3298534883328
27610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
277
278# Open dev
279sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
280# Read test pattern 0x91
281sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
282qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
283read 10485760/10485760 bytes at offset 104857600
28410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
285
286# Read test pattern 0x5e
287sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
288qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
289read 10485760/10485760 bytes at offset 3298534883328
29010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
291
292# Close dev
293sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
294# Delete image
295unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
296
297# ================= qemu-img serpent-256-xts-plain64-sha1 =================
298# Create image
299qemu-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
300# Open dev
301sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
302# Write test pattern 0xa7
303sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
304qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
305wrote 10485760/10485760 bytes at offset 104857600
30610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
307
308# Write test pattern 0x13
309sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
310qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
311wrote 10485760/10485760 bytes at offset 3298534883328
31210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
313
314# Close dev
315sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
316# Read test pattern 0xa7
317qemu-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
318read 10485760/10485760 bytes at offset 104857600
31910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
320
321# Read test pattern 0x13
322qemu-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
323read 10485760/10485760 bytes at offset 3298534883328
32410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
325
326# Write test pattern 0x91
327qemu-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
328wrote 10485760/10485760 bytes at offset 104857600
32910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
330
331# Write test pattern 0x5e
332qemu-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
333wrote 10485760/10485760 bytes at offset 3298534883328
33410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
335
336# Open dev
337sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
338# Read test pattern 0x91
339sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
340qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
341read 10485760/10485760 bytes at offset 104857600
34210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
343
344# Read test pattern 0x5e
345sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
346qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
347read 10485760/10485760 bytes at offset 3298534883328
34810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
349
350# Close dev
351sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
352# Delete image
353unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
354
355# ================= dm-crypt cast5-128-cbc-plain64-sha1 =================
356# Create image
357truncate TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img --size 4194304MB
358# Format image
359sudo 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
360# Open dev
361sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
362# Write test pattern 0xa7
363sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
364qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
365wrote 10485760/10485760 bytes at offset 104857600
36610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
367
368# Write test pattern 0x13
369sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
370qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
371wrote 10485760/10485760 bytes at offset 3298534883328
37210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
373
374# Close dev
375sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
376# Read test pattern 0xa7
377qemu-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
378read 10485760/10485760 bytes at offset 104857600
37910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
380
381# Read test pattern 0x13
382qemu-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
383read 10485760/10485760 bytes at offset 3298534883328
38410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
385
386# Write test pattern 0x91
387qemu-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
388wrote 10485760/10485760 bytes at offset 104857600
38910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
390
391# Write test pattern 0x5e
392qemu-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
393wrote 10485760/10485760 bytes at offset 3298534883328
39410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
395
396# Open dev
397sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
398# Read test pattern 0x91
399sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
400qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
401read 10485760/10485760 bytes at offset 104857600
40210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
403
404# Read test pattern 0x5e
405sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
406qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
407read 10485760/10485760 bytes at offset 3298534883328
40810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
409
410# Close dev
411sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
412# Delete image
413unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
414
415# ================= qemu-img cast5-128-cbc-plain64-sha1 =================
416# Create image
417qemu-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
418# Open dev
419sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
420# Write test pattern 0xa7
421sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
422qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
423wrote 10485760/10485760 bytes at offset 104857600
42410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
425
426# Write test pattern 0x13
427sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
428qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
429wrote 10485760/10485760 bytes at offset 3298534883328
43010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
431
432# Close dev
433sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
434# Read test pattern 0xa7
435qemu-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
436read 10485760/10485760 bytes at offset 104857600
43710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
438
439# Read test pattern 0x13
440qemu-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
441read 10485760/10485760 bytes at offset 3298534883328
44210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
443
444# Write test pattern 0x91
445qemu-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
446wrote 10485760/10485760 bytes at offset 104857600
44710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
448
449# Write test pattern 0x5e
450qemu-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
451wrote 10485760/10485760 bytes at offset 3298534883328
45210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
453
454# Open dev
455sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
456# Read test pattern 0x91
457sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
458qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
459read 10485760/10485760 bytes at offset 104857600
46010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
461
462# Read test pattern 0x5e
463sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
464qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
465read 10485760/10485760 bytes at offset 3298534883328
46610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
467
468# Close dev
469sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
470# Delete image
471unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
472
473Skipping cast6-256-xts-plain64-sha1 (config not supported)
474# ================= dm-crypt aes-256-cbc-plain-sha1 =================
475# Create image
476truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB
477# Format image
478sudo 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
479# Open dev
480sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
481# Write test pattern 0xa7
482sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
483qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
484wrote 10485760/10485760 bytes at offset 104857600
48510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
486
487# Write test pattern 0x13
488sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
489qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
490wrote 10485760/10485760 bytes at offset 3298534883328
49110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
492
493# Close dev
494sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
495# Read test pattern 0xa7
496qemu-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
497read 10485760/10485760 bytes at offset 104857600
49810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
499
500# Read test pattern 0x13
501qemu-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
502read 10485760/10485760 bytes at offset 3298534883328
50310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
504
505# Write test pattern 0x91
506qemu-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
507wrote 10485760/10485760 bytes at offset 104857600
50810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
509
510# Write test pattern 0x5e
511qemu-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
512wrote 10485760/10485760 bytes at offset 3298534883328
51310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
514
515# Open dev
516sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
517# Read test pattern 0x91
518sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
519qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
520read 10485760/10485760 bytes at offset 104857600
52110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
522
523# Read test pattern 0x5e
524sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
525qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
526read 10485760/10485760 bytes at offset 3298534883328
52710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
528
529# Close dev
530sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
531# Delete image
532unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
533
534# ================= qemu-img aes-256-cbc-plain-sha1 =================
535# Create image
536qemu-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
537# Open dev
538sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
539# Write test pattern 0xa7
540sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
541qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
542wrote 10485760/10485760 bytes at offset 104857600
54310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
544
545# Write test pattern 0x13
546sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
547qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
548wrote 10485760/10485760 bytes at offset 3298534883328
54910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
550
551# Close dev
552sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
553# Read test pattern 0xa7
554qemu-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
555read 10485760/10485760 bytes at offset 104857600
55610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
557
558# Read test pattern 0x13
559qemu-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
560read 10485760/10485760 bytes at offset 3298534883328
56110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
562
563# Write test pattern 0x91
564qemu-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
565wrote 10485760/10485760 bytes at offset 104857600
56610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
567
568# Write test pattern 0x5e
569qemu-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
570wrote 10485760/10485760 bytes at offset 3298534883328
57110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
572
573# Open dev
574sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
575# Read test pattern 0x91
576sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
577qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
578read 10485760/10485760 bytes at offset 104857600
57910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
580
581# Read test pattern 0x5e
582sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
583qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
584read 10485760/10485760 bytes at offset 3298534883328
58510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
586
587# Close dev
588sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
589# Delete image
590unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
591
592# ================= dm-crypt aes-256-cbc-plain64-sha1 =================
593# Create image
594truncate TEST_DIR/luks-aes-256-cbc-plain64-sha1.img --size 4194304MB
595# Format image
596sudo 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
597# Open dev
598sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
599# Write test pattern 0xa7
600sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
601qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
602wrote 10485760/10485760 bytes at offset 104857600
60310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
604
605# Write test pattern 0x13
606sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
607qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
608wrote 10485760/10485760 bytes at offset 3298534883328
60910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
610
611# Close dev
612sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
613# Read test pattern 0xa7
614qemu-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
615read 10485760/10485760 bytes at offset 104857600
61610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
617
618# Read test pattern 0x13
619qemu-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
620read 10485760/10485760 bytes at offset 3298534883328
62110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
622
623# Write test pattern 0x91
624qemu-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
625wrote 10485760/10485760 bytes at offset 104857600
62610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
627
628# Write test pattern 0x5e
629qemu-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
630wrote 10485760/10485760 bytes at offset 3298534883328
63110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
632
633# Open dev
634sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
635# Read test pattern 0x91
636sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
637qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
638read 10485760/10485760 bytes at offset 104857600
63910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
640
641# Read test pattern 0x5e
642sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
643qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
644read 10485760/10485760 bytes at offset 3298534883328
64510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
646
647# Close dev
648sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
649# Delete image
650unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
651
652# ================= qemu-img aes-256-cbc-plain64-sha1 =================
653# Create image
654qemu-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
655# Open dev
656sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
657# Write test pattern 0xa7
658sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
659qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
660wrote 10485760/10485760 bytes at offset 104857600
66110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
662
663# Write test pattern 0x13
664sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
665qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
666wrote 10485760/10485760 bytes at offset 3298534883328
66710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
668
669# Close dev
670sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
671# Read test pattern 0xa7
672qemu-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
673read 10485760/10485760 bytes at offset 104857600
67410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
675
676# Read test pattern 0x13
677qemu-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
678read 10485760/10485760 bytes at offset 3298534883328
67910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
680
681# Write test pattern 0x91
682qemu-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
683wrote 10485760/10485760 bytes at offset 104857600
68410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
685
686# Write test pattern 0x5e
687qemu-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
688wrote 10485760/10485760 bytes at offset 3298534883328
68910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
690
691# Open dev
692sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
693# Read test pattern 0x91
694sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
695qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
696read 10485760/10485760 bytes at offset 104857600
69710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
698
699# Read test pattern 0x5e
700sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
701qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
702read 10485760/10485760 bytes at offset 3298534883328
70310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
704
705# Close dev
706sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
707# Delete image
708unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
709
710# ================= dm-crypt aes-256-cbc-essiv-sha256-sha1 =================
711# Create image
712truncate TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img --size 4194304MB
713# Format image
714sudo 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
715# Open dev
716sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
717# Write test pattern 0xa7
718sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
719qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
720wrote 10485760/10485760 bytes at offset 104857600
72110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
722
723# Write test pattern 0x13
724sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
725qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
726wrote 10485760/10485760 bytes at offset 3298534883328
72710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
728
729# Close dev
730sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
731# Read test pattern 0xa7
732qemu-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
733read 10485760/10485760 bytes at offset 104857600
73410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
735
736# Read test pattern 0x13
737qemu-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
738read 10485760/10485760 bytes at offset 3298534883328
73910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
740
741# Write test pattern 0x91
742qemu-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
743wrote 10485760/10485760 bytes at offset 104857600
74410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
745
746# Write test pattern 0x5e
747qemu-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
748wrote 10485760/10485760 bytes at offset 3298534883328
74910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
750
751# Open dev
752sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
753# Read test pattern 0x91
754sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
755qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
756read 10485760/10485760 bytes at offset 104857600
75710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
758
759# Read test pattern 0x5e
760sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
761qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
762read 10485760/10485760 bytes at offset 3298534883328
76310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
764
765# Close dev
766sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
767# Delete image
768unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
769
770# ================= qemu-img aes-256-cbc-essiv-sha256-sha1 =================
771# Create image
772qemu-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
773# Open dev
774sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
775# Write test pattern 0xa7
776sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
777qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
778wrote 10485760/10485760 bytes at offset 104857600
77910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
780
781# Write test pattern 0x13
782sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
783qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
784wrote 10485760/10485760 bytes at offset 3298534883328
78510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
786
787# Close dev
788sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
789# Read test pattern 0xa7
790qemu-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
791read 10485760/10485760 bytes at offset 104857600
79210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
793
794# Read test pattern 0x13
795qemu-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
796read 10485760/10485760 bytes at offset 3298534883328
79710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
798
799# Write test pattern 0x91
800qemu-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
801wrote 10485760/10485760 bytes at offset 104857600
80210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
803
804# Write test pattern 0x5e
805qemu-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
806wrote 10485760/10485760 bytes at offset 3298534883328
80710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
808
809# Open dev
810sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
811# Read test pattern 0x91
812sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
813qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
814read 10485760/10485760 bytes at offset 104857600
81510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
816
817# Read test pattern 0x5e
818sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
819qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
820read 10485760/10485760 bytes at offset 3298534883328
82110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
822
823# Close dev
824sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
825# Delete image
826unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
827
828# ================= dm-crypt aes-256-xts-essiv-sha256-sha1 =================
829# Create image
830truncate TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img --size 4194304MB
831# Format image
832sudo 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
833# Open dev
834sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
835# Write test pattern 0xa7
836sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
837qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
838wrote 10485760/10485760 bytes at offset 104857600
83910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
840
841# Write test pattern 0x13
842sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
843qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
844wrote 10485760/10485760 bytes at offset 3298534883328
84510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
846
847# Close dev
848sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
849# Read test pattern 0xa7
850qemu-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
851read 10485760/10485760 bytes at offset 104857600
85210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
853
854# Read test pattern 0x13
855qemu-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
856read 10485760/10485760 bytes at offset 3298534883328
85710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
858
859# Write test pattern 0x91
860qemu-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
861wrote 10485760/10485760 bytes at offset 104857600
86210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
863
864# Write test pattern 0x5e
865qemu-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
866wrote 10485760/10485760 bytes at offset 3298534883328
86710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
868
869# Open dev
870sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
871# Read test pattern 0x91
872sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
873qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
874read 10485760/10485760 bytes at offset 104857600
87510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
876
877# Read test pattern 0x5e
878sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
879qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
880read 10485760/10485760 bytes at offset 3298534883328
88110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
882
883# Close dev
884sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
885# Delete image
886unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
887
888# ================= qemu-img aes-256-xts-essiv-sha256-sha1 =================
889# Create image
890qemu-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
891# Open dev
892sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
893# Write test pattern 0xa7
894sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
895qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
896wrote 10485760/10485760 bytes at offset 104857600
89710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
898
899# Write test pattern 0x13
900sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
901qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
902wrote 10485760/10485760 bytes at offset 3298534883328
90310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
904
905# Close dev
906sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
907# Read test pattern 0xa7
908qemu-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
909read 10485760/10485760 bytes at offset 104857600
91010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
911
912# Read test pattern 0x13
913qemu-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
914read 10485760/10485760 bytes at offset 3298534883328
91510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
916
917# Write test pattern 0x91
918qemu-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
919wrote 10485760/10485760 bytes at offset 104857600
92010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
921
922# Write test pattern 0x5e
923qemu-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
924wrote 10485760/10485760 bytes at offset 3298534883328
92510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
926
927# Open dev
928sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
929# Read test pattern 0x91
930sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
931qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
932read 10485760/10485760 bytes at offset 104857600
93310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
934
935# Read test pattern 0x5e
936sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
937qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
938read 10485760/10485760 bytes at offset 3298534883328
93910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
940
941# Close dev
942sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
943# Delete image
944unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
945
946# ================= dm-crypt aes-128-xts-plain64-sha256-sha1 =================
947# Create image
948truncate TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img --size 4194304MB
949# Format image
950sudo 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
951# Open dev
952sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
953# Write test pattern 0xa7
954sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
955qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
956wrote 10485760/10485760 bytes at offset 104857600
95710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
958
959# Write test pattern 0x13
960sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
961qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
962wrote 10485760/10485760 bytes at offset 3298534883328
96310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
964
965# Close dev
966sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
967# Read test pattern 0xa7
968qemu-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
969read 10485760/10485760 bytes at offset 104857600
97010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
971
972# Read test pattern 0x13
973qemu-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
974read 10485760/10485760 bytes at offset 3298534883328
97510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
976
977# Write test pattern 0x91
978qemu-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
979wrote 10485760/10485760 bytes at offset 104857600
98010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
981
982# Write test pattern 0x5e
983qemu-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
984wrote 10485760/10485760 bytes at offset 3298534883328
98510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
986
987# Open dev
988sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
989# Read test pattern 0x91
990sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
991qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
992read 10485760/10485760 bytes at offset 104857600
99310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
994
995# Read test pattern 0x5e
996sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
997qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
998read 10485760/10485760 bytes at offset 3298534883328
99910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1000
1001# Close dev
1002sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1003# Delete image
1004unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1005
1006# ================= qemu-img aes-128-xts-plain64-sha256-sha1 =================
1007# Create image
1008qemu-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
1009# Open dev
1010sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
1011# Write test pattern 0xa7
1012sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1013qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1014wrote 10485760/10485760 bytes at offset 104857600
101510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1016
1017# Write test pattern 0x13
1018sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1019qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1020wrote 10485760/10485760 bytes at offset 3298534883328
102110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1022
1023# Close dev
1024sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1025# Read test pattern 0xa7
1026qemu-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
1027read 10485760/10485760 bytes at offset 104857600
102810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1029
1030# Read test pattern 0x13
1031qemu-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
1032read 10485760/10485760 bytes at offset 3298534883328
103310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1034
1035# Write test pattern 0x91
1036qemu-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
1037wrote 10485760/10485760 bytes at offset 104857600
103810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1039
1040# Write test pattern 0x5e
1041qemu-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
1042wrote 10485760/10485760 bytes at offset 3298534883328
104310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1044
1045# Open dev
1046sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
1047# Read test pattern 0x91
1048sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1049qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1050read 10485760/10485760 bytes at offset 104857600
105110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1052
1053# Read test pattern 0x5e
1054sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1055qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1056read 10485760/10485760 bytes at offset 3298534883328
105710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1058
1059# Close dev
1060sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1061# Delete image
1062unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1063
1064# ================= dm-crypt aes-192-xts-plain64-sha256-sha1 =================
1065# Create image
1066truncate TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img --size 4194304MB
1067# Format image
1068sudo 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
1069# Open dev
1070sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1071# Write test pattern 0xa7
1072sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1073qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1074wrote 10485760/10485760 bytes at offset 104857600
107510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1076
1077# Write test pattern 0x13
1078sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1079qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1080wrote 10485760/10485760 bytes at offset 3298534883328
108110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1082
1083# Close dev
1084sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1085# Read test pattern 0xa7
1086qemu-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
1087read 10485760/10485760 bytes at offset 104857600
108810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1089
1090# Read test pattern 0x13
1091qemu-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
1092read 10485760/10485760 bytes at offset 3298534883328
109310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1094
1095# Write test pattern 0x91
1096qemu-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
1097wrote 10485760/10485760 bytes at offset 104857600
109810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1099
1100# Write test pattern 0x5e
1101qemu-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
1102wrote 10485760/10485760 bytes at offset 3298534883328
110310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1104
1105# Open dev
1106sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1107# Read test pattern 0x91
1108sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1109qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1110read 10485760/10485760 bytes at offset 104857600
111110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1112
1113# Read test pattern 0x5e
1114sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1115qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1116read 10485760/10485760 bytes at offset 3298534883328
111710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1118
1119# Close dev
1120sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1121# Delete image
1122unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1123
1124# ================= qemu-img aes-192-xts-plain64-sha256-sha1 =================
1125# Create image
1126qemu-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
1127# Open dev
1128sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1129# Write test pattern 0xa7
1130sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1131qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1132wrote 10485760/10485760 bytes at offset 104857600
113310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1134
1135# Write test pattern 0x13
1136sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1137qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1138wrote 10485760/10485760 bytes at offset 3298534883328
113910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1140
1141# Close dev
1142sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1143# Read test pattern 0xa7
1144qemu-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
1145read 10485760/10485760 bytes at offset 104857600
114610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1147
1148# Read test pattern 0x13
1149qemu-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
1150read 10485760/10485760 bytes at offset 3298534883328
115110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1152
1153# Write test pattern 0x91
1154qemu-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
1155wrote 10485760/10485760 bytes at offset 104857600
115610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1157
1158# Write test pattern 0x5e
1159qemu-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
1160wrote 10485760/10485760 bytes at offset 3298534883328
116110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1162
1163# Open dev
1164sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
1165# Read test pattern 0x91
1166sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1167qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1168read 10485760/10485760 bytes at offset 104857600
116910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1170
1171# Read test pattern 0x5e
1172sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1173qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1174read 10485760/10485760 bytes at offset 3298534883328
117510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1176
1177# Close dev
1178sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1179# Delete image
1180unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1181
1182# ================= dm-crypt twofish-128-xts-plain64-sha1 =================
1183# Create image
1184truncate TEST_DIR/luks-twofish-128-xts-plain64-sha1.img --size 4194304MB
1185# Format image
1186sudo 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
1187# Open dev
1188sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1189# Write test pattern 0xa7
1190sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1191qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1192wrote 10485760/10485760 bytes at offset 104857600
119310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1194
1195# Write test pattern 0x13
1196sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1197qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1198wrote 10485760/10485760 bytes at offset 3298534883328
119910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1200
1201# Close dev
1202sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1203# Read test pattern 0xa7
1204qemu-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
1205read 10485760/10485760 bytes at offset 104857600
120610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1207
1208# Read test pattern 0x13
1209qemu-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
1210read 10485760/10485760 bytes at offset 3298534883328
121110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1212
1213# Write test pattern 0x91
1214qemu-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
1215wrote 10485760/10485760 bytes at offset 104857600
121610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1217
1218# Write test pattern 0x5e
1219qemu-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
1220wrote 10485760/10485760 bytes at offset 3298534883328
122110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1222
1223# Open dev
1224sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1225# Read test pattern 0x91
1226sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1227qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1228read 10485760/10485760 bytes at offset 104857600
122910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1230
1231# Read test pattern 0x5e
1232sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1233qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1234read 10485760/10485760 bytes at offset 3298534883328
123510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1236
1237# Close dev
1238sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1239# Delete image
1240unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1241
1242# ================= qemu-img twofish-128-xts-plain64-sha1 =================
1243# Create image
1244qemu-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
1245# Open dev
1246sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1247# Write test pattern 0xa7
1248sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1249qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1250wrote 10485760/10485760 bytes at offset 104857600
125110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1252
1253# Write test pattern 0x13
1254sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1255qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1256wrote 10485760/10485760 bytes at offset 3298534883328
125710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1258
1259# Close dev
1260sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1261# Read test pattern 0xa7
1262qemu-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
1263read 10485760/10485760 bytes at offset 104857600
126410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1265
1266# Read test pattern 0x13
1267qemu-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
1268read 10485760/10485760 bytes at offset 3298534883328
126910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1270
1271# Write test pattern 0x91
1272qemu-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
1273wrote 10485760/10485760 bytes at offset 104857600
127410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1275
1276# Write test pattern 0x5e
1277qemu-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
1278wrote 10485760/10485760 bytes at offset 3298534883328
127910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1280
1281# Open dev
1282sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
1283# Read test pattern 0x91
1284sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1285qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1286read 10485760/10485760 bytes at offset 104857600
128710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1288
1289# Read test pattern 0x5e
1290sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1291qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1292read 10485760/10485760 bytes at offset 3298534883328
129310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1294
1295# Close dev
1296sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1297# Delete image
1298unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1299
1300Skipping twofish-192-xts-plain64-sha1 (config not supported)
1301# ================= dm-crypt serpent-128-xts-plain64-sha1 =================
1302# Create image
1303truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB
1304# Format image
1305sudo 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
1306# Open dev
1307sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1308# Write test pattern 0xa7
1309sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1310qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1311wrote 10485760/10485760 bytes at offset 104857600
131210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1313
1314# Write test pattern 0x13
1315sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1316qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1317wrote 10485760/10485760 bytes at offset 3298534883328
131810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1319
1320# Close dev
1321sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1322# Read test pattern 0xa7
1323qemu-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
1324read 10485760/10485760 bytes at offset 104857600
132510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1326
1327# Read test pattern 0x13
1328qemu-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
1329read 10485760/10485760 bytes at offset 3298534883328
133010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1331
1332# Write test pattern 0x91
1333qemu-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
1334wrote 10485760/10485760 bytes at offset 104857600
133510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1336
1337# Write test pattern 0x5e
1338qemu-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
1339wrote 10485760/10485760 bytes at offset 3298534883328
134010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1341
1342# Open dev
1343sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1344# Read test pattern 0x91
1345sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1346qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1347read 10485760/10485760 bytes at offset 104857600
134810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1349
1350# Read test pattern 0x5e
1351sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1352qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1353read 10485760/10485760 bytes at offset 3298534883328
135410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1355
1356# Close dev
1357sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1358# Delete image
1359unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1360
1361# ================= qemu-img serpent-128-xts-plain64-sha1 =================
1362# Create image
1363qemu-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
1364# Open dev
1365sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1366# Write test pattern 0xa7
1367sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1368qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1369wrote 10485760/10485760 bytes at offset 104857600
137010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1371
1372# Write test pattern 0x13
1373sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1374qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1375wrote 10485760/10485760 bytes at offset 3298534883328
137610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1377
1378# Close dev
1379sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1380# Read test pattern 0xa7
1381qemu-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
1382read 10485760/10485760 bytes at offset 104857600
138310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1384
1385# Read test pattern 0x13
1386qemu-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
1387read 10485760/10485760 bytes at offset 3298534883328
138810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1389
1390# Write test pattern 0x91
1391qemu-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
1392wrote 10485760/10485760 bytes at offset 104857600
139310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1394
1395# Write test pattern 0x5e
1396qemu-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
1397wrote 10485760/10485760 bytes at offset 3298534883328
139810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1399
1400# Open dev
1401sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
1402# Read test pattern 0x91
1403sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1404qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1405read 10485760/10485760 bytes at offset 104857600
140610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1407
1408# Read test pattern 0x5e
1409sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1410qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1411read 10485760/10485760 bytes at offset 3298534883328
141210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1413
1414# Close dev
1415sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1416# Delete image
1417unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1418
1419# ================= dm-crypt serpent-192-xts-plain64-sha1 =================
1420# Create image
1421truncate TEST_DIR/luks-serpent-192-xts-plain64-sha1.img --size 4194304MB
1422# Format image
1423sudo 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
1424# Open dev
1425sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1426# Write test pattern 0xa7
1427sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1428qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1429wrote 10485760/10485760 bytes at offset 104857600
143010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1431
1432# Write test pattern 0x13
1433sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1434qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1435wrote 10485760/10485760 bytes at offset 3298534883328
143610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1437
1438# Close dev
1439sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1440# Read test pattern 0xa7
1441qemu-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
1442read 10485760/10485760 bytes at offset 104857600
144310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1444
1445# Read test pattern 0x13
1446qemu-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
1447read 10485760/10485760 bytes at offset 3298534883328
144810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1449
1450# Write test pattern 0x91
1451qemu-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
1452wrote 10485760/10485760 bytes at offset 104857600
145310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1454
1455# Write test pattern 0x5e
1456qemu-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
1457wrote 10485760/10485760 bytes at offset 3298534883328
145810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1459
1460# Open dev
1461sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1462# Read test pattern 0x91
1463sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1464qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1465read 10485760/10485760 bytes at offset 104857600
146610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1467
1468# Read test pattern 0x5e
1469sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1470qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1471read 10485760/10485760 bytes at offset 3298534883328
147210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1473
1474# Close dev
1475sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1476# Delete image
1477unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1478
1479# ================= qemu-img serpent-192-xts-plain64-sha1 =================
1480# Create image
1481qemu-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
1482# Open dev
1483sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1484# Write test pattern 0xa7
1485sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1486qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1487wrote 10485760/10485760 bytes at offset 104857600
148810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1489
1490# Write test pattern 0x13
1491sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1492qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1493wrote 10485760/10485760 bytes at offset 3298534883328
149410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1495
1496# Close dev
1497sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1498# Read test pattern 0xa7
1499qemu-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
1500read 10485760/10485760 bytes at offset 104857600
150110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1502
1503# Read test pattern 0x13
1504qemu-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
1505read 10485760/10485760 bytes at offset 3298534883328
150610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1507
1508# Write test pattern 0x91
1509qemu-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
1510wrote 10485760/10485760 bytes at offset 104857600
151110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1512
1513# Write test pattern 0x5e
1514qemu-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
1515wrote 10485760/10485760 bytes at offset 3298534883328
151610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1517
1518# Open dev
1519sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
1520# Read test pattern 0x91
1521sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1522qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1523read 10485760/10485760 bytes at offset 104857600
152410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1525
1526# Read test pattern 0x5e
1527sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1528qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1529read 10485760/10485760 bytes at offset 3298534883328
153010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1531
1532# Close dev
1533sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1534# Delete image
1535unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1536
1537Skipping cast6-128-xts-plain64-sha1 (config not supported)
1538Skipping cast6-192-xts-plain64-sha1 (config not supported)
1539# ================= dm-crypt aes-256-xts-plain64-sha224 =================
1540# Create image
1541truncate TEST_DIR/luks-aes-256-xts-plain64-sha224.img --size 4194304MB
1542# Format image
1543sudo 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
1544# Open dev
1545sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
1546# Write test pattern 0xa7
1547sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1548qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1549wrote 10485760/10485760 bytes at offset 104857600
155010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1551
1552# Write test pattern 0x13
1553sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1554qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1555wrote 10485760/10485760 bytes at offset 3298534883328
155610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1557
1558# Close dev
1559sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1560# Read test pattern 0xa7
1561qemu-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
1562read 10485760/10485760 bytes at offset 104857600
156310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1564
1565# Read test pattern 0x13
1566qemu-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
1567read 10485760/10485760 bytes at offset 3298534883328
156810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1569
1570# Write test pattern 0x91
1571qemu-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
1572wrote 10485760/10485760 bytes at offset 104857600
157310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1574
1575# Write test pattern 0x5e
1576qemu-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
1577wrote 10485760/10485760 bytes at offset 3298534883328
157810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1579
1580# Open dev
1581sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
1582# Read test pattern 0x91
1583sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1584qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1585read 10485760/10485760 bytes at offset 104857600
158610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1587
1588# Read test pattern 0x5e
1589sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1590qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1591read 10485760/10485760 bytes at offset 3298534883328
159210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1593
1594# Close dev
1595sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1596# Delete image
1597unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img
1598
1599# ================= qemu-img aes-256-xts-plain64-sha224 =================
1600# Create image
1601qemu-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
1602# Open dev
1603sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
1604# Write test pattern 0xa7
1605sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1606qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1607wrote 10485760/10485760 bytes at offset 104857600
160810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1609
1610# Write test pattern 0x13
1611sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1612qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1613wrote 10485760/10485760 bytes at offset 3298534883328
161410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1615
1616# Close dev
1617sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1618# Read test pattern 0xa7
1619qemu-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
1620read 10485760/10485760 bytes at offset 104857600
162110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1622
1623# Read test pattern 0x13
1624qemu-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
1625read 10485760/10485760 bytes at offset 3298534883328
162610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1627
1628# Write test pattern 0x91
1629qemu-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
1630wrote 10485760/10485760 bytes at offset 104857600
163110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1632
1633# Write test pattern 0x5e
1634qemu-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
1635wrote 10485760/10485760 bytes at offset 3298534883328
163610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1637
1638# Open dev
1639sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
1640# Read test pattern 0x91
1641sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1642qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1643read 10485760/10485760 bytes at offset 104857600
164410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1645
1646# Read test pattern 0x5e
1647sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1648qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1649read 10485760/10485760 bytes at offset 3298534883328
165010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1651
1652# Close dev
1653sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1654# Delete image
1655unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img
1656
1657# ================= dm-crypt aes-256-xts-plain64-sha256 =================
1658# Create image
1659truncate TEST_DIR/luks-aes-256-xts-plain64-sha256.img --size 4194304MB
1660# Format image
1661sudo 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
1662# Open dev
1663sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1664# Write test pattern 0xa7
1665sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1666qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1667wrote 10485760/10485760 bytes at offset 104857600
166810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1669
1670# Write test pattern 0x13
1671sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1672qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1673wrote 10485760/10485760 bytes at offset 3298534883328
167410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1675
1676# Close dev
1677sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1678# Read test pattern 0xa7
1679qemu-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
1680read 10485760/10485760 bytes at offset 104857600
168110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1682
1683# Read test pattern 0x13
1684qemu-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
1685read 10485760/10485760 bytes at offset 3298534883328
168610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1687
1688# Write test pattern 0x91
1689qemu-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
1690wrote 10485760/10485760 bytes at offset 104857600
169110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1692
1693# Write test pattern 0x5e
1694qemu-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
1695wrote 10485760/10485760 bytes at offset 3298534883328
169610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1697
1698# Open dev
1699sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1700# Read test pattern 0x91
1701sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1702qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1703read 10485760/10485760 bytes at offset 104857600
170410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1705
1706# Read test pattern 0x5e
1707sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1708qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1709read 10485760/10485760 bytes at offset 3298534883328
171010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1711
1712# Close dev
1713sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1714# Delete image
1715unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1716
1717# ================= qemu-img aes-256-xts-plain64-sha256 =================
1718# Create image
1719qemu-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
1720# Open dev
1721sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1722# Write test pattern 0xa7
1723sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1724qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1725wrote 10485760/10485760 bytes at offset 104857600
172610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1727
1728# Write test pattern 0x13
1729sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1730qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1731wrote 10485760/10485760 bytes at offset 3298534883328
173210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1733
1734# Close dev
1735sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1736# Read test pattern 0xa7
1737qemu-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
1738read 10485760/10485760 bytes at offset 104857600
173910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1740
1741# Read test pattern 0x13
1742qemu-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
1743read 10485760/10485760 bytes at offset 3298534883328
174410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1745
1746# Write test pattern 0x91
1747qemu-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
1748wrote 10485760/10485760 bytes at offset 104857600
174910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1750
1751# Write test pattern 0x5e
1752qemu-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
1753wrote 10485760/10485760 bytes at offset 3298534883328
175410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1755
1756# Open dev
1757sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
1758# Read test pattern 0x91
1759sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1760qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1761read 10485760/10485760 bytes at offset 104857600
176210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1763
1764# Read test pattern 0x5e
1765sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1766qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1767read 10485760/10485760 bytes at offset 3298534883328
176810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1769
1770# Close dev
1771sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1772# Delete image
1773unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1774
1775# ================= dm-crypt aes-256-xts-plain64-sha384 =================
1776# Create image
1777truncate TEST_DIR/luks-aes-256-xts-plain64-sha384.img --size 4194304MB
1778# Format image
1779sudo 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
1780# Open dev
1781sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1782# Write test pattern 0xa7
1783sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1784qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1785wrote 10485760/10485760 bytes at offset 104857600
178610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1787
1788# Write test pattern 0x13
1789sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1790qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1791wrote 10485760/10485760 bytes at offset 3298534883328
179210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1793
1794# Close dev
1795sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1796# Read test pattern 0xa7
1797qemu-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
1798read 10485760/10485760 bytes at offset 104857600
179910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1800
1801# Read test pattern 0x13
1802qemu-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
1803read 10485760/10485760 bytes at offset 3298534883328
180410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1805
1806# Write test pattern 0x91
1807qemu-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
1808wrote 10485760/10485760 bytes at offset 104857600
180910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1810
1811# Write test pattern 0x5e
1812qemu-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
1813wrote 10485760/10485760 bytes at offset 3298534883328
181410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1815
1816# Open dev
1817sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1818# Read test pattern 0x91
1819sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1820qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1821read 10485760/10485760 bytes at offset 104857600
182210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1823
1824# Read test pattern 0x5e
1825sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1826qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1827read 10485760/10485760 bytes at offset 3298534883328
182810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1829
1830# Close dev
1831sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1832# Delete image
1833unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img
1834
1835# ================= qemu-img aes-256-xts-plain64-sha384 =================
1836# Create image
1837qemu-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
1838# Open dev
1839sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1840# Write test pattern 0xa7
1841sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1842qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1843wrote 10485760/10485760 bytes at offset 104857600
184410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1845
1846# Write test pattern 0x13
1847sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1848qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1849wrote 10485760/10485760 bytes at offset 3298534883328
185010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1851
1852# Close dev
1853sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1854# Read test pattern 0xa7
1855qemu-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
1856read 10485760/10485760 bytes at offset 104857600
185710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1858
1859# Read test pattern 0x13
1860qemu-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
1861read 10485760/10485760 bytes at offset 3298534883328
186210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1863
1864# Write test pattern 0x91
1865qemu-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
1866wrote 10485760/10485760 bytes at offset 104857600
186710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1868
1869# Write test pattern 0x5e
1870qemu-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
1871wrote 10485760/10485760 bytes at offset 3298534883328
187210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1873
1874# Open dev
1875sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1876# Read test pattern 0x91
1877sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1878qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1879read 10485760/10485760 bytes at offset 104857600
188010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1881
1882# Read test pattern 0x5e
1883sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1884qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1885read 10485760/10485760 bytes at offset 3298534883328
188610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1887
1888# Close dev
1889sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1890# Delete image
1891unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img
1892
1893# ================= dm-crypt aes-256-xts-plain64-sha512 =================
1894# Create image
1895truncate TEST_DIR/luks-aes-256-xts-plain64-sha512.img --size 4194304MB
1896# Format image
1897sudo 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
1898# Open dev
1899sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1900# Write test pattern 0xa7
1901sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1902qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1903wrote 10485760/10485760 bytes at offset 104857600
190410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1905
1906# Write test pattern 0x13
1907sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1908qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1909wrote 10485760/10485760 bytes at offset 3298534883328
191010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1911
1912# Close dev
1913sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
1914# Read test pattern 0xa7
1915qemu-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
1916read 10485760/10485760 bytes at offset 104857600
191710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1918
1919# Read test pattern 0x13
1920qemu-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
1921read 10485760/10485760 bytes at offset 3298534883328
192210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1923
1924# Write test pattern 0x91
1925qemu-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
1926wrote 10485760/10485760 bytes at offset 104857600
192710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1928
1929# Write test pattern 0x5e
1930qemu-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
1931wrote 10485760/10485760 bytes at offset 3298534883328
193210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1933
1934# Open dev
1935sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1936# Read test pattern 0x91
1937sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1938qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1939read 10485760/10485760 bytes at offset 104857600
194010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1941
1942# Read test pattern 0x5e
1943sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1944qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1945read 10485760/10485760 bytes at offset 3298534883328
194610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1947
1948# Close dev
1949sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
1950# Delete image
1951unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img
1952
1953# ================= qemu-img aes-256-xts-plain64-sha512 =================
1954# Create image
1955qemu-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
1956# Open dev
1957sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1958# Write test pattern 0xa7
1959sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1960qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1961wrote 10485760/10485760 bytes at offset 104857600
196210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1963
1964# Write test pattern 0x13
1965sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1966qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1967wrote 10485760/10485760 bytes at offset 3298534883328
196810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1969
1970# Close dev
1971sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
1972# Read test pattern 0xa7
1973qemu-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
1974read 10485760/10485760 bytes at offset 104857600
197510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1976
1977# Read test pattern 0x13
1978qemu-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
1979read 10485760/10485760 bytes at offset 3298534883328
198010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1981
1982# Write test pattern 0x91
1983qemu-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
1984wrote 10485760/10485760 bytes at offset 104857600
198510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1986
1987# Write test pattern 0x5e
1988qemu-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
1989wrote 10485760/10485760 bytes at offset 3298534883328
199010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1991
1992# Open dev
1993sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1994# Read test pattern 0x91
1995sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1996qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1997read 10485760/10485760 bytes at offset 104857600
199810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1999
2000# Read test pattern 0x5e
2001sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
2002qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
2003read 10485760/10485760 bytes at offset 3298534883328
200410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2005
2006# Close dev
2007sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
2008# Delete image
2009unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img
2010
2011# ================= dm-crypt aes-256-xts-plain64-ripemd160 =================
2012# Create image
2013truncate TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img --size 4194304MB
2014# Format image
2015sudo 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
2016# Open dev
2017sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
2018# Write test pattern 0xa7
2019sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2020qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2021wrote 10485760/10485760 bytes at offset 104857600
202210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2023
2024# Write test pattern 0x13
2025sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2026qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2027wrote 10485760/10485760 bytes at offset 3298534883328
202810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2029
2030# Close dev
2031sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2032# Read test pattern 0xa7
2033qemu-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
2034read 10485760/10485760 bytes at offset 104857600
203510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2036
2037# Read test pattern 0x13
2038qemu-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
2039read 10485760/10485760 bytes at offset 3298534883328
204010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2041
2042# Write test pattern 0x91
2043qemu-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
2044wrote 10485760/10485760 bytes at offset 104857600
204510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2046
2047# Write test pattern 0x5e
2048qemu-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
2049wrote 10485760/10485760 bytes at offset 3298534883328
205010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2051
2052# Open dev
2053sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
2054# Read test pattern 0x91
2055sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2056qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2057read 10485760/10485760 bytes at offset 104857600
205810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2059
2060# Read test pattern 0x5e
2061sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2062qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2063read 10485760/10485760 bytes at offset 3298534883328
206410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2065
2066# Close dev
2067sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2068# Delete image
2069unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
2070
2071# ================= qemu-img aes-256-xts-plain64-ripemd160 =================
2072# Create image
2073qemu-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
2074# Open dev
2075sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
2076# Write test pattern 0xa7
2077sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2078qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2079wrote 10485760/10485760 bytes at offset 104857600
208010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2081
2082# Write test pattern 0x13
2083sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2084qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2085wrote 10485760/10485760 bytes at offset 3298534883328
208610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2087
2088# Close dev
2089sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2090# Read test pattern 0xa7
2091qemu-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
2092read 10485760/10485760 bytes at offset 104857600
209310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2094
2095# Read test pattern 0x13
2096qemu-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
2097read 10485760/10485760 bytes at offset 3298534883328
209810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2099
2100# Write test pattern 0x91
2101qemu-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
2102wrote 10485760/10485760 bytes at offset 104857600
210310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2104
2105# Write test pattern 0x5e
2106qemu-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
2107wrote 10485760/10485760 bytes at offset 3298534883328
210810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2109
2110# Open dev
2111sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
2112# Read test pattern 0x91
2113sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2114qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2115read 10485760/10485760 bytes at offset 104857600
211610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2117
2118# Read test pattern 0x5e
2119sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2120qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2121read 10485760/10485760 bytes at offset 3298534883328
212210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2123
2124# Close dev
2125sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2126# Delete image
2127unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
2128
2129# ================= dm-crypt aes-256-xts-plain-sha1-pwslot3 =================
2130# Create image
2131truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img --size 4194304MB
2132# Format image
2133sudo 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
2134# Open dev
2135sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
2136# Write test pattern 0xa7
2137sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2138qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2139wrote 10485760/10485760 bytes at offset 104857600
214010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2141
2142# Write test pattern 0x13
2143sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2144qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2145wrote 10485760/10485760 bytes at offset 3298534883328
214610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2147
2148# Close dev
2149sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
2150# Read test pattern 0xa7
2151qemu-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
2152read 10485760/10485760 bytes at offset 104857600
215310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2154
2155# Read test pattern 0x13
2156qemu-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
2157read 10485760/10485760 bytes at offset 3298534883328
215810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2159
2160# Write test pattern 0x91
2161qemu-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
2162wrote 10485760/10485760 bytes at offset 104857600
216310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2164
2165# Write test pattern 0x5e
2166qemu-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
2167wrote 10485760/10485760 bytes at offset 3298534883328
216810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2169
2170# Open dev
2171sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
2172# Read test pattern 0x91
2173sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2174qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2175read 10485760/10485760 bytes at offset 104857600
217610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2177
2178# Read test pattern 0x5e
2179sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2180qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2181read 10485760/10485760 bytes at offset 3298534883328
218210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2183
2184# Close dev
2185sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
2186# Delete image
2187unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
2188
2189# ================= dm-crypt aes-256-xts-plain-sha1-pwallslots =================
2190# Create image
2191truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --size 4194304MB
2192# Format image
2193sudo 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
2194# Add password slot 1
2195sudo 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
2196# Add password slot 2
2197sudo 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
2198# Add password slot 3
2199sudo 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
2200# Add password slot 4
2201sudo 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
2202# Add password slot 5
2203sudo 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
2204# Add password slot 6
2205sudo 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
2206# Add password slot 7
2207sudo 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
2208# Open dev
2209sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
2210# Write test pattern 0xa7
2211sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2212qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2213wrote 10485760/10485760 bytes at offset 104857600
221410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2215
2216# Write test pattern 0x13
2217sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2218qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2219wrote 10485760/10485760 bytes at offset 3298534883328
222010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2221
2222# Close dev
2223sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2224# Read test pattern 0xa7
2225qemu-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
2226read 10485760/10485760 bytes at offset 104857600
222710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2228
2229# Read test pattern 0x13
2230qemu-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
2231read 10485760/10485760 bytes at offset 3298534883328
223210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2233
2234# Write test pattern 0x91
2235qemu-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
2236wrote 10485760/10485760 bytes at offset 104857600
223710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2238
2239# Write test pattern 0x5e
2240qemu-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
2241wrote 10485760/10485760 bytes at offset 3298534883328
224210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2243
2244# Open dev
2245sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
2246# Read test pattern 0x91
2247sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2248qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2249read 10485760/10485760 bytes at offset 104857600
225010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2251
2252# Read test pattern 0x5e
2253sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2254qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2255read 10485760/10485760 bytes at offset 3298534883328
225610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2257
2258# Close dev
2259sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2260# Delete image
2261unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
2262
2263# ================= qemu-img aes-256-xts-plain-sha1-pwallslots =================
2264# Create image
2265qemu-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
2266# Open dev
2267sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
2268# Write test pattern 0xa7
2269sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2270qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2271wrote 10485760/10485760 bytes at offset 104857600
227210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2273
2274# Write test pattern 0x13
2275sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2276qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2277wrote 10485760/10485760 bytes at offset 3298534883328
227810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2279
2280# Close dev
2281sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2282# Read test pattern 0xa7
2283qemu-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
2284read 10485760/10485760 bytes at offset 104857600
228510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2286
2287# Read test pattern 0x13
2288qemu-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
2289read 10485760/10485760 bytes at offset 3298534883328
229010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2291
2292# Write test pattern 0x91
2293qemu-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
2294wrote 10485760/10485760 bytes at offset 104857600
229510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2296
2297# Write test pattern 0x5e
2298qemu-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
2299wrote 10485760/10485760 bytes at offset 3298534883328
230010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2301
2302# Open dev
2303sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
2304# Read test pattern 0x91
2305sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2306qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2307read 10485760/10485760 bytes at offset 104857600
230810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2309
2310# Read test pattern 0x5e
2311sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2312qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2313read 10485760/10485760 bytes at offset 3298534883328
231410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2315
2316# Close dev
2317sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2318# Delete image
2319unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
2320
2321# ================= dm-crypt aes-256-cbc-essiv-auto-sha1 =================
2322# Create image
2323truncate TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img --size 4194304MB
2324# Format image
2325sudo 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
2326# Open dev
2327sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
2328# Write test pattern 0xa7
2329sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2330qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2331wrote 10485760/10485760 bytes at offset 104857600
233210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2333
2334# Write test pattern 0x13
2335sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2336qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2337wrote 10485760/10485760 bytes at offset 3298534883328
233810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2339
2340# Close dev
2341sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2342# Read test pattern 0xa7
2343qemu-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
2344read 10485760/10485760 bytes at offset 104857600
234510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2346
2347# Read test pattern 0x13
2348qemu-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
2349read 10485760/10485760 bytes at offset 3298534883328
235010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2351
2352# Write test pattern 0x91
2353qemu-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
2354wrote 10485760/10485760 bytes at offset 104857600
235510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2356
2357# Write test pattern 0x5e
2358qemu-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
2359wrote 10485760/10485760 bytes at offset 3298534883328
236010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2361
2362# Open dev
2363sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
2364# Read test pattern 0x91
2365sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2366qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2367read 10485760/10485760 bytes at offset 104857600
236810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2369
2370# Read test pattern 0x5e
2371sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2372qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2373read 10485760/10485760 bytes at offset 3298534883328
237410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2375
2376# Close dev
2377sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2378# Delete image
2379unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
2380
2381# ================= qemu-img aes-256-cbc-essiv-auto-sha1 =================
2382# Create image
2383qemu-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
2384# Open dev
2385sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
2386# Write test pattern 0xa7
2387sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2388qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2389wrote 10485760/10485760 bytes at offset 104857600
239010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2391
2392# Write test pattern 0x13
2393sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2394qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2395wrote 10485760/10485760 bytes at offset 3298534883328
239610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2397
2398# Close dev
2399sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2400# Read test pattern 0xa7
2401qemu-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
2402read 10485760/10485760 bytes at offset 104857600
240310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2404
2405# Read test pattern 0x13
2406qemu-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
2407read 10485760/10485760 bytes at offset 3298534883328
240810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2409
2410# Write test pattern 0x91
2411qemu-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
2412wrote 10485760/10485760 bytes at offset 104857600
241310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2414
2415# Write test pattern 0x5e
2416qemu-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
2417wrote 10485760/10485760 bytes at offset 3298534883328
241810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2419
2420# Open dev
2421sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
2422# Read test pattern 0x91
2423sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2424qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2425read 10485760/10485760 bytes at offset 104857600
242610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2427
2428# Read test pattern 0x5e
2429sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2430qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2431read 10485760/10485760 bytes at offset 3298534883328
243210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2433
2434# Close dev
2435sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2436# Delete image
2437unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
2438
2439# ================= dm-crypt aes-256-cbc-plain64-sha256-sha1 =================
2440# Create image
2441truncate TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img --size 4194304MB
2442# Format image
2443sudo 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
2444# Open dev
2445sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2446# Write test pattern 0xa7
2447sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2448qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2449wrote 10485760/10485760 bytes at offset 104857600
245010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2451
2452# Write test pattern 0x13
2453sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2454qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2455wrote 10485760/10485760 bytes at offset 3298534883328
245610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2457
2458# Close dev
2459sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2460# Read test pattern 0xa7
2461qemu-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
2462read 10485760/10485760 bytes at offset 104857600
246310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2464
2465# Read test pattern 0x13
2466qemu-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
2467read 10485760/10485760 bytes at offset 3298534883328
246810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2469
2470# Write test pattern 0x91
2471qemu-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
2472wrote 10485760/10485760 bytes at offset 104857600
247310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2474
2475# Write test pattern 0x5e
2476qemu-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
2477wrote 10485760/10485760 bytes at offset 3298534883328
247810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2479
2480# Open dev
2481sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2482# Read test pattern 0x91
2483sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2484qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2485read 10485760/10485760 bytes at offset 104857600
248610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2487
2488# Read test pattern 0x5e
2489sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2490qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2491read 10485760/10485760 bytes at offset 3298534883328
249210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2493
2494# Close dev
2495sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2496# Delete image
2497unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2498
2499# ================= qemu-img aes-256-cbc-plain64-sha256-sha1 =================
2500# Create image
2501qemu-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
2502# Open dev
2503sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2504# Write test pattern 0xa7
2505sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2506qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2507wrote 10485760/10485760 bytes at offset 104857600
250810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2509
2510# Write test pattern 0x13
2511sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2512qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2513wrote 10485760/10485760 bytes at offset 3298534883328
251410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2515
2516# Close dev
2517sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2518# Read test pattern 0xa7
2519qemu-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
2520read 10485760/10485760 bytes at offset 104857600
252110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2522
2523# Read test pattern 0x13
2524qemu-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
2525read 10485760/10485760 bytes at offset 3298534883328
252610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2527
2528# Write test pattern 0x91
2529qemu-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
2530wrote 10485760/10485760 bytes at offset 104857600
253110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2532
2533# Write test pattern 0x5e
2534qemu-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
2535wrote 10485760/10485760 bytes at offset 3298534883328
253610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2537
2538# Open dev
2539sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
2540# Read test pattern 0x91
2541sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2542qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2543read 10485760/10485760 bytes at offset 104857600
254410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2545
2546# Read test pattern 0x5e
2547sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2548qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2549read 10485760/10485760 bytes at offset 3298534883328
255010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2551
2552# Close dev
2553sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2554# Delete image
2555unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2556
2557