1 # ================= dm-crypt aes-256-xts-plain64-sha1 =================
3 truncate TEST_DIR/luks-aes-256-xts-plain64-sha1.img --size 4194304MB
5 sudo 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
7 sudo 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
9 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
10 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
11 wrote 10485760/10485760 bytes at offset 104857600
12 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
14 # Write test pattern 0x13
15 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
16 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
17 wrote 10485760/10485760 bytes at offset 3298534883328
18 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
21 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
22 # Read test pattern 0xa7
23 qemu-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
24 read 10485760/10485760 bytes at offset 104857600
25 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
27 # Read test pattern 0x13
28 qemu-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
29 read 10485760/10485760 bytes at offset 3298534883328
30 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
32 # Write test pattern 0x91
33 qemu-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
34 wrote 10485760/10485760 bytes at offset 104857600
35 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
37 # Write test pattern 0x5e
38 qemu-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
39 wrote 10485760/10485760 bytes at offset 3298534883328
40 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
43 sudo 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
45 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
46 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
47 read 10485760/10485760 bytes at offset 104857600
48 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
50 # Read test pattern 0x5e
51 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
52 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
53 read 10485760/10485760 bytes at offset 3298534883328
54 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
57 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
59 unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img
61 # ================= qemu-img aes-256-xts-plain64-sha1 =================
63 qemu-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
65 sudo 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
67 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
68 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
69 wrote 10485760/10485760 bytes at offset 104857600
70 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
72 # Write test pattern 0x13
73 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
74 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
75 wrote 10485760/10485760 bytes at offset 3298534883328
76 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
79 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
80 # Read test pattern 0xa7
81 qemu-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
82 read 10485760/10485760 bytes at offset 104857600
83 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
85 # Read test pattern 0x13
86 qemu-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
87 read 10485760/10485760 bytes at offset 3298534883328
88 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
90 # Write test pattern 0x91
91 qemu-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
92 wrote 10485760/10485760 bytes at offset 104857600
93 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
95 # Write test pattern 0x5e
96 qemu-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
97 wrote 10485760/10485760 bytes at offset 3298534883328
98 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
101 sudo 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
103 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
104 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
105 read 10485760/10485760 bytes at offset 104857600
106 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
108 # Read test pattern 0x5e
109 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
110 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
111 read 10485760/10485760 bytes at offset 3298534883328
112 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
115 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
117 unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img
119 # ================= dm-crypt twofish-256-xts-plain64-sha1 =================
121 truncate TEST_DIR/luks-twofish-256-xts-plain64-sha1.img --size 4194304MB
123 sudo cryptsetup -q -v luksFormat --type luks1 --cipher twofish-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
125 sudo 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
127 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
128 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
129 wrote 10485760/10485760 bytes at offset 104857600
130 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
132 # Write test pattern 0x13
133 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
134 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
135 wrote 10485760/10485760 bytes at offset 3298534883328
136 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
139 sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
140 # Read test pattern 0xa7
141 qemu-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
142 read 10485760/10485760 bytes at offset 104857600
143 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
145 # Read test pattern 0x13
146 qemu-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
147 read 10485760/10485760 bytes at offset 3298534883328
148 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
150 # Write test pattern 0x91
151 qemu-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
152 wrote 10485760/10485760 bytes at offset 104857600
153 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
155 # Write test pattern 0x5e
156 qemu-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
157 wrote 10485760/10485760 bytes at offset 3298534883328
158 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
161 sudo 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
163 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
164 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
165 read 10485760/10485760 bytes at offset 104857600
166 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
168 # Read test pattern 0x5e
169 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
170 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
171 read 10485760/10485760 bytes at offset 3298534883328
172 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
175 sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
177 unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
179 # ================= qemu-img twofish-256-xts-plain64-sha1 =================
181 qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=twofish-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 4194304M
183 sudo 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
185 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
186 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
187 wrote 10485760/10485760 bytes at offset 104857600
188 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
190 # Write test pattern 0x13
191 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
192 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
193 wrote 10485760/10485760 bytes at offset 3298534883328
194 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
197 sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
198 # Read test pattern 0xa7
199 qemu-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
200 read 10485760/10485760 bytes at offset 104857600
201 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
203 # Read test pattern 0x13
204 qemu-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
205 read 10485760/10485760 bytes at offset 3298534883328
206 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
208 # Write test pattern 0x91
209 qemu-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
210 wrote 10485760/10485760 bytes at offset 104857600
211 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
213 # Write test pattern 0x5e
214 qemu-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
215 wrote 10485760/10485760 bytes at offset 3298534883328
216 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
219 sudo 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
221 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
222 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
223 read 10485760/10485760 bytes at offset 104857600
224 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
226 # Read test pattern 0x5e
227 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
228 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
229 read 10485760/10485760 bytes at offset 3298534883328
230 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
233 sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
235 unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
237 # ================= dm-crypt serpent-256-xts-plain64-sha1 =================
239 truncate TEST_DIR/luks-serpent-256-xts-plain64-sha1.img --size 4194304MB
241 sudo 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
243 sudo 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
245 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
246 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
247 wrote 10485760/10485760 bytes at offset 104857600
248 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
250 # Write test pattern 0x13
251 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
252 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
253 wrote 10485760/10485760 bytes at offset 3298534883328
254 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
257 sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
258 # Read test pattern 0xa7
259 qemu-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
260 read 10485760/10485760 bytes at offset 104857600
261 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
263 # Read test pattern 0x13
264 qemu-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
265 read 10485760/10485760 bytes at offset 3298534883328
266 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
268 # Write test pattern 0x91
269 qemu-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
270 wrote 10485760/10485760 bytes at offset 104857600
271 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
273 # Write test pattern 0x5e
274 qemu-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
275 wrote 10485760/10485760 bytes at offset 3298534883328
276 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
279 sudo 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
281 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
282 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
283 read 10485760/10485760 bytes at offset 104857600
284 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
286 # Read test pattern 0x5e
287 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
288 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
289 read 10485760/10485760 bytes at offset 3298534883328
290 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
293 sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
295 unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
297 # ================= qemu-img serpent-256-xts-plain64-sha1 =================
299 qemu-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
301 sudo 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
303 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
304 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
305 wrote 10485760/10485760 bytes at offset 104857600
306 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
308 # Write test pattern 0x13
309 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
310 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
311 wrote 10485760/10485760 bytes at offset 3298534883328
312 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
315 sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
316 # Read test pattern 0xa7
317 qemu-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
318 read 10485760/10485760 bytes at offset 104857600
319 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
321 # Read test pattern 0x13
322 qemu-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
323 read 10485760/10485760 bytes at offset 3298534883328
324 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
326 # Write test pattern 0x91
327 qemu-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
328 wrote 10485760/10485760 bytes at offset 104857600
329 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
331 # Write test pattern 0x5e
332 qemu-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
333 wrote 10485760/10485760 bytes at offset 3298534883328
334 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
337 sudo 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
339 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
340 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
341 read 10485760/10485760 bytes at offset 104857600
342 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
344 # Read test pattern 0x5e
345 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
346 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
347 read 10485760/10485760 bytes at offset 3298534883328
348 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
351 sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
353 unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
355 # ================= dm-crypt cast5-128-cbc-plain64-sha1 =================
357 truncate TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img --size 4194304MB
359 sudo 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
361 sudo 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
363 sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
364 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
365 wrote 10485760/10485760 bytes at offset 104857600
366 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
368 # Write test pattern 0x13
369 sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
370 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
371 wrote 10485760/10485760 bytes at offset 3298534883328
372 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
375 sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
376 # Read test pattern 0xa7
377 qemu-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
378 read 10485760/10485760 bytes at offset 104857600
379 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
381 # Read test pattern 0x13
382 qemu-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
383 read 10485760/10485760 bytes at offset 3298534883328
384 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
386 # Write test pattern 0x91
387 qemu-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
388 wrote 10485760/10485760 bytes at offset 104857600
389 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
391 # Write test pattern 0x5e
392 qemu-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
393 wrote 10485760/10485760 bytes at offset 3298534883328
394 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
397 sudo 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
399 sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
400 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
401 read 10485760/10485760 bytes at offset 104857600
402 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
404 # Read test pattern 0x5e
405 sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
406 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
407 read 10485760/10485760 bytes at offset 3298534883328
408 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
411 sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
413 unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
415 # ================= qemu-img cast5-128-cbc-plain64-sha1 =================
417 qemu-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
419 sudo 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
421 sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
422 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
423 wrote 10485760/10485760 bytes at offset 104857600
424 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
426 # Write test pattern 0x13
427 sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
428 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
429 wrote 10485760/10485760 bytes at offset 3298534883328
430 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
433 sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
434 # Read test pattern 0xa7
435 qemu-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
436 read 10485760/10485760 bytes at offset 104857600
437 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
439 # Read test pattern 0x13
440 qemu-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
441 read 10485760/10485760 bytes at offset 3298534883328
442 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
444 # Write test pattern 0x91
445 qemu-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
446 wrote 10485760/10485760 bytes at offset 104857600
447 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
449 # Write test pattern 0x5e
450 qemu-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
451 wrote 10485760/10485760 bytes at offset 3298534883328
452 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
455 sudo 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
457 sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
458 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
459 read 10485760/10485760 bytes at offset 104857600
460 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
462 # Read test pattern 0x5e
463 sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
464 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
465 read 10485760/10485760 bytes at offset 3298534883328
466 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
469 sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
471 unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
473 Skipping cast6-256-xts-plain64-sha1 in blacklist
474 # ================= dm-crypt aes-256-cbc-plain-sha1 =================
476 truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB
478 sudo 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
480 sudo 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
482 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
483 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
484 wrote 10485760/10485760 bytes at offset 104857600
485 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
487 # Write test pattern 0x13
488 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
489 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
490 wrote 10485760/10485760 bytes at offset 3298534883328
491 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
494 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
495 # Read test pattern 0xa7
496 qemu-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
497 read 10485760/10485760 bytes at offset 104857600
498 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
500 # Read test pattern 0x13
501 qemu-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
502 read 10485760/10485760 bytes at offset 3298534883328
503 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
505 # Write test pattern 0x91
506 qemu-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
507 wrote 10485760/10485760 bytes at offset 104857600
508 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
510 # Write test pattern 0x5e
511 qemu-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
512 wrote 10485760/10485760 bytes at offset 3298534883328
513 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
516 sudo 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
518 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
519 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
520 read 10485760/10485760 bytes at offset 104857600
521 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
523 # Read test pattern 0x5e
524 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
525 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
526 read 10485760/10485760 bytes at offset 3298534883328
527 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
530 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
532 unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
534 # ================= qemu-img aes-256-cbc-plain-sha1 =================
536 qemu-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
538 sudo 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
540 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
541 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
542 wrote 10485760/10485760 bytes at offset 104857600
543 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
545 # Write test pattern 0x13
546 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
547 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
548 wrote 10485760/10485760 bytes at offset 3298534883328
549 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
552 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
553 # Read test pattern 0xa7
554 qemu-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
555 read 10485760/10485760 bytes at offset 104857600
556 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
558 # Read test pattern 0x13
559 qemu-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
560 read 10485760/10485760 bytes at offset 3298534883328
561 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
563 # Write test pattern 0x91
564 qemu-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
565 wrote 10485760/10485760 bytes at offset 104857600
566 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
568 # Write test pattern 0x5e
569 qemu-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
570 wrote 10485760/10485760 bytes at offset 3298534883328
571 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
574 sudo 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
576 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
577 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
578 read 10485760/10485760 bytes at offset 104857600
579 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
581 # Read test pattern 0x5e
582 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
583 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
584 read 10485760/10485760 bytes at offset 3298534883328
585 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
588 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
590 unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
592 # ================= dm-crypt aes-256-cbc-plain64-sha1 =================
594 truncate TEST_DIR/luks-aes-256-cbc-plain64-sha1.img --size 4194304MB
596 sudo 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
598 sudo 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
600 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
601 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
602 wrote 10485760/10485760 bytes at offset 104857600
603 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
605 # Write test pattern 0x13
606 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
607 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
608 wrote 10485760/10485760 bytes at offset 3298534883328
609 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
612 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
613 # Read test pattern 0xa7
614 qemu-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
615 read 10485760/10485760 bytes at offset 104857600
616 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
618 # Read test pattern 0x13
619 qemu-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
620 read 10485760/10485760 bytes at offset 3298534883328
621 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
623 # Write test pattern 0x91
624 qemu-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
625 wrote 10485760/10485760 bytes at offset 104857600
626 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
628 # Write test pattern 0x5e
629 qemu-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
630 wrote 10485760/10485760 bytes at offset 3298534883328
631 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
634 sudo 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
636 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
637 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
638 read 10485760/10485760 bytes at offset 104857600
639 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
641 # Read test pattern 0x5e
642 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
643 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
644 read 10485760/10485760 bytes at offset 3298534883328
645 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
648 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
650 unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
652 # ================= qemu-img aes-256-cbc-plain64-sha1 =================
654 qemu-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
656 sudo 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
658 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
659 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
660 wrote 10485760/10485760 bytes at offset 104857600
661 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
663 # Write test pattern 0x13
664 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
665 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
666 wrote 10485760/10485760 bytes at offset 3298534883328
667 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
670 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
671 # Read test pattern 0xa7
672 qemu-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
673 read 10485760/10485760 bytes at offset 104857600
674 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
676 # Read test pattern 0x13
677 qemu-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
678 read 10485760/10485760 bytes at offset 3298534883328
679 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
681 # Write test pattern 0x91
682 qemu-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
683 wrote 10485760/10485760 bytes at offset 104857600
684 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
686 # Write test pattern 0x5e
687 qemu-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
688 wrote 10485760/10485760 bytes at offset 3298534883328
689 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
692 sudo 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
694 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
695 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
696 read 10485760/10485760 bytes at offset 104857600
697 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
699 # Read test pattern 0x5e
700 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
701 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
702 read 10485760/10485760 bytes at offset 3298534883328
703 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
706 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
708 unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
710 # ================= dm-crypt aes-256-cbc-essiv-sha256-sha1 =================
712 truncate TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img --size 4194304MB
714 sudo 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
716 sudo 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
718 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
719 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
720 wrote 10485760/10485760 bytes at offset 104857600
721 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
723 # Write test pattern 0x13
724 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
725 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
726 wrote 10485760/10485760 bytes at offset 3298534883328
727 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
730 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
731 # Read test pattern 0xa7
732 qemu-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
733 read 10485760/10485760 bytes at offset 104857600
734 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
736 # Read test pattern 0x13
737 qemu-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
738 read 10485760/10485760 bytes at offset 3298534883328
739 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
741 # Write test pattern 0x91
742 qemu-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
743 wrote 10485760/10485760 bytes at offset 104857600
744 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
746 # Write test pattern 0x5e
747 qemu-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
748 wrote 10485760/10485760 bytes at offset 3298534883328
749 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
752 sudo 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
754 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
755 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
756 read 10485760/10485760 bytes at offset 104857600
757 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
759 # Read test pattern 0x5e
760 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
761 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
762 read 10485760/10485760 bytes at offset 3298534883328
763 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
766 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
768 unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
770 # ================= qemu-img aes-256-cbc-essiv-sha256-sha1 =================
772 qemu-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
774 sudo 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
776 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
777 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
778 wrote 10485760/10485760 bytes at offset 104857600
779 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
781 # Write test pattern 0x13
782 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
783 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
784 wrote 10485760/10485760 bytes at offset 3298534883328
785 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
788 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
789 # Read test pattern 0xa7
790 qemu-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
791 read 10485760/10485760 bytes at offset 104857600
792 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
794 # Read test pattern 0x13
795 qemu-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
796 read 10485760/10485760 bytes at offset 3298534883328
797 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
799 # Write test pattern 0x91
800 qemu-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
801 wrote 10485760/10485760 bytes at offset 104857600
802 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
804 # Write test pattern 0x5e
805 qemu-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
806 wrote 10485760/10485760 bytes at offset 3298534883328
807 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
810 sudo 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
812 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
813 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
814 read 10485760/10485760 bytes at offset 104857600
815 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
817 # Read test pattern 0x5e
818 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
819 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
820 read 10485760/10485760 bytes at offset 3298534883328
821 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
824 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
826 unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
828 # ================= dm-crypt aes-256-xts-essiv-sha256-sha1 =================
830 truncate TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img --size 4194304MB
832 sudo 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
834 sudo 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
836 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
837 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
838 wrote 10485760/10485760 bytes at offset 104857600
839 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
841 # Write test pattern 0x13
842 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
843 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
844 wrote 10485760/10485760 bytes at offset 3298534883328
845 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
848 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
849 # Read test pattern 0xa7
850 qemu-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
851 read 10485760/10485760 bytes at offset 104857600
852 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
854 # Read test pattern 0x13
855 qemu-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
856 read 10485760/10485760 bytes at offset 3298534883328
857 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
859 # Write test pattern 0x91
860 qemu-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
861 wrote 10485760/10485760 bytes at offset 104857600
862 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
864 # Write test pattern 0x5e
865 qemu-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
866 wrote 10485760/10485760 bytes at offset 3298534883328
867 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
870 sudo 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
872 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
873 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
874 read 10485760/10485760 bytes at offset 104857600
875 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
877 # Read test pattern 0x5e
878 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
879 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
880 read 10485760/10485760 bytes at offset 3298534883328
881 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
884 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
886 unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
888 # ================= qemu-img aes-256-xts-essiv-sha256-sha1 =================
890 qemu-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
892 sudo 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
894 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
895 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
896 wrote 10485760/10485760 bytes at offset 104857600
897 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
899 # Write test pattern 0x13
900 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
901 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
902 wrote 10485760/10485760 bytes at offset 3298534883328
903 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
906 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
907 # Read test pattern 0xa7
908 qemu-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
909 read 10485760/10485760 bytes at offset 104857600
910 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
912 # Read test pattern 0x13
913 qemu-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
914 read 10485760/10485760 bytes at offset 3298534883328
915 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
917 # Write test pattern 0x91
918 qemu-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
919 wrote 10485760/10485760 bytes at offset 104857600
920 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
922 # Write test pattern 0x5e
923 qemu-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
924 wrote 10485760/10485760 bytes at offset 3298534883328
925 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
928 sudo 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
930 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
931 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
932 read 10485760/10485760 bytes at offset 104857600
933 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
935 # Read test pattern 0x5e
936 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
937 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
938 read 10485760/10485760 bytes at offset 3298534883328
939 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
942 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
944 unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
946 # ================= dm-crypt aes-128-xts-plain64-sha256-sha1 =================
948 truncate TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img --size 4194304MB
950 sudo 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
952 sudo 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
954 sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
955 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
956 wrote 10485760/10485760 bytes at offset 104857600
957 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
959 # Write test pattern 0x13
960 sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
961 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
962 wrote 10485760/10485760 bytes at offset 3298534883328
963 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
966 sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
967 # Read test pattern 0xa7
968 qemu-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
969 read 10485760/10485760 bytes at offset 104857600
970 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
972 # Read test pattern 0x13
973 qemu-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
974 read 10485760/10485760 bytes at offset 3298534883328
975 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
977 # Write test pattern 0x91
978 qemu-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
979 wrote 10485760/10485760 bytes at offset 104857600
980 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
982 # Write test pattern 0x5e
983 qemu-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
984 wrote 10485760/10485760 bytes at offset 3298534883328
985 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
988 sudo 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
990 sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
991 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
992 read 10485760/10485760 bytes at offset 104857600
993 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
995 # Read test pattern 0x5e
996 sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
997 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
998 read 10485760/10485760 bytes at offset 3298534883328
999 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1002 sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1004 unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1006 # ================= qemu-img aes-128-xts-plain64-sha256-sha1 =================
1008 qemu-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
1010 sudo 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
1012 sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1013 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1014 wrote 10485760/10485760 bytes at offset 104857600
1015 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1017 # Write test pattern 0x13
1018 sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1019 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1020 wrote 10485760/10485760 bytes at offset 3298534883328
1021 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1024 sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1025 # Read test pattern 0xa7
1026 qemu-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
1027 read 10485760/10485760 bytes at offset 104857600
1028 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1030 # Read test pattern 0x13
1031 qemu-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
1032 read 10485760/10485760 bytes at offset 3298534883328
1033 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1035 # Write test pattern 0x91
1036 qemu-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
1037 wrote 10485760/10485760 bytes at offset 104857600
1038 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1040 # Write test pattern 0x5e
1041 qemu-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
1042 wrote 10485760/10485760 bytes at offset 3298534883328
1043 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1046 sudo 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
1048 sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1049 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1050 read 10485760/10485760 bytes at offset 104857600
1051 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1053 # Read test pattern 0x5e
1054 sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1055 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
1056 read 10485760/10485760 bytes at offset 3298534883328
1057 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1060 sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
1062 unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
1064 # ================= dm-crypt aes-192-xts-plain64-sha256-sha1 =================
1066 truncate TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img --size 4194304MB
1068 sudo 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
1070 sudo 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
1072 sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1073 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1074 wrote 10485760/10485760 bytes at offset 104857600
1075 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1077 # Write test pattern 0x13
1078 sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1079 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1080 wrote 10485760/10485760 bytes at offset 3298534883328
1081 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1084 sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1085 # Read test pattern 0xa7
1086 qemu-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
1087 read 10485760/10485760 bytes at offset 104857600
1088 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1090 # Read test pattern 0x13
1091 qemu-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
1092 read 10485760/10485760 bytes at offset 3298534883328
1093 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1095 # Write test pattern 0x91
1096 qemu-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
1097 wrote 10485760/10485760 bytes at offset 104857600
1098 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1100 # Write test pattern 0x5e
1101 qemu-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
1102 wrote 10485760/10485760 bytes at offset 3298534883328
1103 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1106 sudo 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
1108 sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1109 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1110 read 10485760/10485760 bytes at offset 104857600
1111 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1113 # Read test pattern 0x5e
1114 sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1115 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1116 read 10485760/10485760 bytes at offset 3298534883328
1117 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1120 sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1122 unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1124 # ================= qemu-img aes-192-xts-plain64-sha256-sha1 =================
1126 qemu-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
1128 sudo 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
1130 sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1131 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1132 wrote 10485760/10485760 bytes at offset 104857600
1133 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1135 # Write test pattern 0x13
1136 sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1137 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1138 wrote 10485760/10485760 bytes at offset 3298534883328
1139 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1142 sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1143 # Read test pattern 0xa7
1144 qemu-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
1145 read 10485760/10485760 bytes at offset 104857600
1146 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1148 # Read test pattern 0x13
1149 qemu-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
1150 read 10485760/10485760 bytes at offset 3298534883328
1151 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1153 # Write test pattern 0x91
1154 qemu-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
1155 wrote 10485760/10485760 bytes at offset 104857600
1156 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1158 # Write test pattern 0x5e
1159 qemu-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
1160 wrote 10485760/10485760 bytes at offset 3298534883328
1161 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1164 sudo 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
1166 sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1167 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1168 read 10485760/10485760 bytes at offset 104857600
1169 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1171 # Read test pattern 0x5e
1172 sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1173 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
1174 read 10485760/10485760 bytes at offset 3298534883328
1175 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1178 sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
1180 unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
1182 # ================= dm-crypt twofish-128-xts-plain64-sha1 =================
1184 truncate TEST_DIR/luks-twofish-128-xts-plain64-sha1.img --size 4194304MB
1186 sudo 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
1188 sudo 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
1190 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1191 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1192 wrote 10485760/10485760 bytes at offset 104857600
1193 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1195 # Write test pattern 0x13
1196 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1197 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1198 wrote 10485760/10485760 bytes at offset 3298534883328
1199 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1202 sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1203 # Read test pattern 0xa7
1204 qemu-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
1205 read 10485760/10485760 bytes at offset 104857600
1206 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1208 # Read test pattern 0x13
1209 qemu-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
1210 read 10485760/10485760 bytes at offset 3298534883328
1211 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1213 # Write test pattern 0x91
1214 qemu-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
1215 wrote 10485760/10485760 bytes at offset 104857600
1216 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1218 # Write test pattern 0x5e
1219 qemu-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
1220 wrote 10485760/10485760 bytes at offset 3298534883328
1221 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1224 sudo 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
1226 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1227 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1228 read 10485760/10485760 bytes at offset 104857600
1229 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1231 # Read test pattern 0x5e
1232 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1233 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1234 read 10485760/10485760 bytes at offset 3298534883328
1235 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1238 sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1240 unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1242 # ================= qemu-img twofish-128-xts-plain64-sha1 =================
1244 qemu-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
1246 sudo 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
1248 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1249 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1250 wrote 10485760/10485760 bytes at offset 104857600
1251 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1253 # Write test pattern 0x13
1254 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1255 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1256 wrote 10485760/10485760 bytes at offset 3298534883328
1257 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1260 sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1261 # Read test pattern 0xa7
1262 qemu-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
1263 read 10485760/10485760 bytes at offset 104857600
1264 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1266 # Read test pattern 0x13
1267 qemu-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
1268 read 10485760/10485760 bytes at offset 3298534883328
1269 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1271 # Write test pattern 0x91
1272 qemu-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
1273 wrote 10485760/10485760 bytes at offset 104857600
1274 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1276 # Write test pattern 0x5e
1277 qemu-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
1278 wrote 10485760/10485760 bytes at offset 3298534883328
1279 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1282 sudo 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
1284 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1285 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1286 read 10485760/10485760 bytes at offset 104857600
1287 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1289 # Read test pattern 0x5e
1290 sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1291 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
1292 read 10485760/10485760 bytes at offset 3298534883328
1293 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1296 sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
1298 unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
1300 Skipping twofish-192-xts-plain64-sha1 in blacklist
1301 # ================= dm-crypt serpent-128-xts-plain64-sha1 =================
1303 truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB
1305 sudo 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
1307 sudo 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
1309 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1310 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1311 wrote 10485760/10485760 bytes at offset 104857600
1312 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1314 # Write test pattern 0x13
1315 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1316 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1317 wrote 10485760/10485760 bytes at offset 3298534883328
1318 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1321 sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1322 # Read test pattern 0xa7
1323 qemu-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
1324 read 10485760/10485760 bytes at offset 104857600
1325 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1327 # Read test pattern 0x13
1328 qemu-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
1329 read 10485760/10485760 bytes at offset 3298534883328
1330 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1332 # Write test pattern 0x91
1333 qemu-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
1334 wrote 10485760/10485760 bytes at offset 104857600
1335 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1337 # Write test pattern 0x5e
1338 qemu-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
1339 wrote 10485760/10485760 bytes at offset 3298534883328
1340 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1343 sudo 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
1345 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1346 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1347 read 10485760/10485760 bytes at offset 104857600
1348 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1350 # Read test pattern 0x5e
1351 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1352 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1353 read 10485760/10485760 bytes at offset 3298534883328
1354 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1357 sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1359 unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1361 # ================= qemu-img serpent-128-xts-plain64-sha1 =================
1363 qemu-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
1365 sudo 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
1367 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1368 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1369 wrote 10485760/10485760 bytes at offset 104857600
1370 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1372 # Write test pattern 0x13
1373 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1374 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1375 wrote 10485760/10485760 bytes at offset 3298534883328
1376 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1379 sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1380 # Read test pattern 0xa7
1381 qemu-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
1382 read 10485760/10485760 bytes at offset 104857600
1383 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1385 # Read test pattern 0x13
1386 qemu-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
1387 read 10485760/10485760 bytes at offset 3298534883328
1388 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1390 # Write test pattern 0x91
1391 qemu-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
1392 wrote 10485760/10485760 bytes at offset 104857600
1393 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1395 # Write test pattern 0x5e
1396 qemu-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
1397 wrote 10485760/10485760 bytes at offset 3298534883328
1398 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1401 sudo 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
1403 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1404 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1405 read 10485760/10485760 bytes at offset 104857600
1406 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1408 # Read test pattern 0x5e
1409 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1410 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
1411 read 10485760/10485760 bytes at offset 3298534883328
1412 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1415 sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
1417 unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
1419 # ================= dm-crypt serpent-192-xts-plain64-sha1 =================
1421 truncate TEST_DIR/luks-serpent-192-xts-plain64-sha1.img --size 4194304MB
1423 sudo 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
1425 sudo 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
1427 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1428 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1429 wrote 10485760/10485760 bytes at offset 104857600
1430 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1432 # Write test pattern 0x13
1433 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1434 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1435 wrote 10485760/10485760 bytes at offset 3298534883328
1436 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1439 sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1440 # Read test pattern 0xa7
1441 qemu-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
1442 read 10485760/10485760 bytes at offset 104857600
1443 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1445 # Read test pattern 0x13
1446 qemu-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
1447 read 10485760/10485760 bytes at offset 3298534883328
1448 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1450 # Write test pattern 0x91
1451 qemu-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
1452 wrote 10485760/10485760 bytes at offset 104857600
1453 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1455 # Write test pattern 0x5e
1456 qemu-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
1457 wrote 10485760/10485760 bytes at offset 3298534883328
1458 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1461 sudo 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
1463 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1464 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1465 read 10485760/10485760 bytes at offset 104857600
1466 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1468 # Read test pattern 0x5e
1469 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1470 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1471 read 10485760/10485760 bytes at offset 3298534883328
1472 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1475 sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1477 unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1479 # ================= qemu-img serpent-192-xts-plain64-sha1 =================
1481 qemu-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
1483 sudo 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
1485 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1486 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1487 wrote 10485760/10485760 bytes at offset 104857600
1488 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1490 # Write test pattern 0x13
1491 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1492 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1493 wrote 10485760/10485760 bytes at offset 3298534883328
1494 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1497 sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1498 # Read test pattern 0xa7
1499 qemu-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
1500 read 10485760/10485760 bytes at offset 104857600
1501 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1503 # Read test pattern 0x13
1504 qemu-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
1505 read 10485760/10485760 bytes at offset 3298534883328
1506 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1508 # Write test pattern 0x91
1509 qemu-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
1510 wrote 10485760/10485760 bytes at offset 104857600
1511 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1513 # Write test pattern 0x5e
1514 qemu-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
1515 wrote 10485760/10485760 bytes at offset 3298534883328
1516 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1519 sudo 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
1521 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1522 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1523 read 10485760/10485760 bytes at offset 104857600
1524 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1526 # Read test pattern 0x5e
1527 sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1528 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
1529 read 10485760/10485760 bytes at offset 3298534883328
1530 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1533 sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
1535 unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
1537 Skipping cast6-128-xts-plain64-sha1 in blacklist
1538 Skipping cast6-192-xts-plain64-sha1 in blacklist
1539 # ================= dm-crypt aes-256-xts-plain64-sha224 =================
1541 truncate TEST_DIR/luks-aes-256-xts-plain64-sha224.img --size 4194304MB
1543 sudo 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
1545 sudo 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
1547 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1548 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1549 wrote 10485760/10485760 bytes at offset 104857600
1550 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1552 # Write test pattern 0x13
1553 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1554 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1555 wrote 10485760/10485760 bytes at offset 3298534883328
1556 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1559 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1560 # Read test pattern 0xa7
1561 qemu-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
1562 read 10485760/10485760 bytes at offset 104857600
1563 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1565 # Read test pattern 0x13
1566 qemu-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
1567 read 10485760/10485760 bytes at offset 3298534883328
1568 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1570 # Write test pattern 0x91
1571 qemu-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
1572 wrote 10485760/10485760 bytes at offset 104857600
1573 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1575 # Write test pattern 0x5e
1576 qemu-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
1577 wrote 10485760/10485760 bytes at offset 3298534883328
1578 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1581 sudo 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
1583 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1584 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1585 read 10485760/10485760 bytes at offset 104857600
1586 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1588 # Read test pattern 0x5e
1589 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1590 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1591 read 10485760/10485760 bytes at offset 3298534883328
1592 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1595 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1597 unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img
1599 # ================= qemu-img aes-256-xts-plain64-sha224 =================
1601 qemu-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
1603 sudo 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
1605 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1606 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1607 wrote 10485760/10485760 bytes at offset 104857600
1608 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1610 # Write test pattern 0x13
1611 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1612 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1613 wrote 10485760/10485760 bytes at offset 3298534883328
1614 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1617 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1618 # Read test pattern 0xa7
1619 qemu-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
1620 read 10485760/10485760 bytes at offset 104857600
1621 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1623 # Read test pattern 0x13
1624 qemu-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
1625 read 10485760/10485760 bytes at offset 3298534883328
1626 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1628 # Write test pattern 0x91
1629 qemu-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
1630 wrote 10485760/10485760 bytes at offset 104857600
1631 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1633 # Write test pattern 0x5e
1634 qemu-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
1635 wrote 10485760/10485760 bytes at offset 3298534883328
1636 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1639 sudo 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
1641 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1642 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1643 read 10485760/10485760 bytes at offset 104857600
1644 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1646 # Read test pattern 0x5e
1647 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1648 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
1649 read 10485760/10485760 bytes at offset 3298534883328
1650 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1653 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
1655 unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img
1657 # ================= dm-crypt aes-256-xts-plain64-sha256 =================
1659 truncate TEST_DIR/luks-aes-256-xts-plain64-sha256.img --size 4194304MB
1661 sudo 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
1663 sudo 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
1665 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1666 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1667 wrote 10485760/10485760 bytes at offset 104857600
1668 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1670 # Write test pattern 0x13
1671 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1672 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1673 wrote 10485760/10485760 bytes at offset 3298534883328
1674 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1677 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1678 # Read test pattern 0xa7
1679 qemu-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
1680 read 10485760/10485760 bytes at offset 104857600
1681 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1683 # Read test pattern 0x13
1684 qemu-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
1685 read 10485760/10485760 bytes at offset 3298534883328
1686 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1688 # Write test pattern 0x91
1689 qemu-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
1690 wrote 10485760/10485760 bytes at offset 104857600
1691 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1693 # Write test pattern 0x5e
1694 qemu-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
1695 wrote 10485760/10485760 bytes at offset 3298534883328
1696 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1699 sudo 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
1701 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1702 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1703 read 10485760/10485760 bytes at offset 104857600
1704 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1706 # Read test pattern 0x5e
1707 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1708 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1709 read 10485760/10485760 bytes at offset 3298534883328
1710 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1713 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1715 unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1717 # ================= qemu-img aes-256-xts-plain64-sha256 =================
1719 qemu-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
1721 sudo 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
1723 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1724 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1725 wrote 10485760/10485760 bytes at offset 104857600
1726 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1728 # Write test pattern 0x13
1729 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1730 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1731 wrote 10485760/10485760 bytes at offset 3298534883328
1732 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1735 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1736 # Read test pattern 0xa7
1737 qemu-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
1738 read 10485760/10485760 bytes at offset 104857600
1739 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1741 # Read test pattern 0x13
1742 qemu-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
1743 read 10485760/10485760 bytes at offset 3298534883328
1744 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1746 # Write test pattern 0x91
1747 qemu-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
1748 wrote 10485760/10485760 bytes at offset 104857600
1749 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1751 # Write test pattern 0x5e
1752 qemu-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
1753 wrote 10485760/10485760 bytes at offset 3298534883328
1754 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1757 sudo 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
1759 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1760 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1761 read 10485760/10485760 bytes at offset 104857600
1762 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1764 # Read test pattern 0x5e
1765 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1766 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
1767 read 10485760/10485760 bytes at offset 3298534883328
1768 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1771 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
1773 unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
1775 # ================= dm-crypt aes-256-xts-plain64-sha384 =================
1777 truncate TEST_DIR/luks-aes-256-xts-plain64-sha384.img --size 4194304MB
1779 sudo 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
1781 sudo 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
1783 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1784 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1785 wrote 10485760/10485760 bytes at offset 104857600
1786 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1788 # Write test pattern 0x13
1789 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1790 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1791 wrote 10485760/10485760 bytes at offset 3298534883328
1792 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1795 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1796 # Read test pattern 0xa7
1797 qemu-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
1798 read 10485760/10485760 bytes at offset 104857600
1799 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1801 # Read test pattern 0x13
1802 qemu-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
1803 read 10485760/10485760 bytes at offset 3298534883328
1804 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1806 # Write test pattern 0x91
1807 qemu-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
1808 wrote 10485760/10485760 bytes at offset 104857600
1809 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1811 # Write test pattern 0x5e
1812 qemu-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
1813 wrote 10485760/10485760 bytes at offset 3298534883328
1814 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1817 sudo 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
1819 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1820 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1821 read 10485760/10485760 bytes at offset 104857600
1822 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1824 # Read test pattern 0x5e
1825 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1826 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1827 read 10485760/10485760 bytes at offset 3298534883328
1828 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1831 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1833 unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img
1835 # ================= qemu-img aes-256-xts-plain64-sha384 =================
1837 qemu-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
1839 sudo 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
1841 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1842 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1843 wrote 10485760/10485760 bytes at offset 104857600
1844 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1846 # Write test pattern 0x13
1847 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1848 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1849 wrote 10485760/10485760 bytes at offset 3298534883328
1850 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1853 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1854 # Read test pattern 0xa7
1855 qemu-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
1856 read 10485760/10485760 bytes at offset 104857600
1857 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1859 # Read test pattern 0x13
1860 qemu-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
1861 read 10485760/10485760 bytes at offset 3298534883328
1862 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1864 # Write test pattern 0x91
1865 qemu-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
1866 wrote 10485760/10485760 bytes at offset 104857600
1867 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1869 # Write test pattern 0x5e
1870 qemu-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
1871 wrote 10485760/10485760 bytes at offset 3298534883328
1872 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1875 sudo 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
1877 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1878 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1879 read 10485760/10485760 bytes at offset 104857600
1880 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1882 # Read test pattern 0x5e
1883 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1884 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1885 read 10485760/10485760 bytes at offset 3298534883328
1886 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1889 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
1891 unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img
1893 # ================= dm-crypt aes-256-xts-plain64-sha512 =================
1895 truncate TEST_DIR/luks-aes-256-xts-plain64-sha512.img --size 4194304MB
1897 sudo 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
1899 sudo 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
1901 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1902 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1903 wrote 10485760/10485760 bytes at offset 104857600
1904 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1906 # Write test pattern 0x13
1907 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1908 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1909 wrote 10485760/10485760 bytes at offset 3298534883328
1910 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1913 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
1914 # Read test pattern 0xa7
1915 qemu-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
1916 read 10485760/10485760 bytes at offset 104857600
1917 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1919 # Read test pattern 0x13
1920 qemu-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
1921 read 10485760/10485760 bytes at offset 3298534883328
1922 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1924 # Write test pattern 0x91
1925 qemu-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
1926 wrote 10485760/10485760 bytes at offset 104857600
1927 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1929 # Write test pattern 0x5e
1930 qemu-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
1931 wrote 10485760/10485760 bytes at offset 3298534883328
1932 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1935 sudo 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
1937 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1938 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1939 read 10485760/10485760 bytes at offset 104857600
1940 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1942 # Read test pattern 0x5e
1943 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1944 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1945 read 10485760/10485760 bytes at offset 3298534883328
1946 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1949 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
1951 unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img
1953 # ================= qemu-img aes-256-xts-plain64-sha512 =================
1955 qemu-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
1957 sudo 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
1959 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1960 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1961 wrote 10485760/10485760 bytes at offset 104857600
1962 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1964 # Write test pattern 0x13
1965 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1966 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1967 wrote 10485760/10485760 bytes at offset 3298534883328
1968 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1971 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
1972 # Read test pattern 0xa7
1973 qemu-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
1974 read 10485760/10485760 bytes at offset 104857600
1975 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1977 # Read test pattern 0x13
1978 qemu-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
1979 read 10485760/10485760 bytes at offset 3298534883328
1980 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1982 # Write test pattern 0x91
1983 qemu-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
1984 wrote 10485760/10485760 bytes at offset 104857600
1985 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1987 # Write test pattern 0x5e
1988 qemu-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
1989 wrote 10485760/10485760 bytes at offset 3298534883328
1990 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1993 sudo 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
1995 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1996 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1997 read 10485760/10485760 bytes at offset 104857600
1998 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2000 # Read test pattern 0x5e
2001 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
2002 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
2003 read 10485760/10485760 bytes at offset 3298534883328
2004 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2007 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
2009 unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img
2011 # ================= dm-crypt aes-256-xts-plain64-ripemd160 =================
2013 truncate TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img --size 4194304MB
2015 sudo 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
2017 sudo 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
2019 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2020 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2021 wrote 10485760/10485760 bytes at offset 104857600
2022 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2024 # Write test pattern 0x13
2025 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2026 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2027 wrote 10485760/10485760 bytes at offset 3298534883328
2028 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2031 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2032 # Read test pattern 0xa7
2033 qemu-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
2034 read 10485760/10485760 bytes at offset 104857600
2035 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2037 # Read test pattern 0x13
2038 qemu-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
2039 read 10485760/10485760 bytes at offset 3298534883328
2040 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2042 # Write test pattern 0x91
2043 qemu-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
2044 wrote 10485760/10485760 bytes at offset 104857600
2045 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2047 # Write test pattern 0x5e
2048 qemu-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
2049 wrote 10485760/10485760 bytes at offset 3298534883328
2050 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2053 sudo 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
2055 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2056 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2057 read 10485760/10485760 bytes at offset 104857600
2058 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2060 # Read test pattern 0x5e
2061 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2062 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2063 read 10485760/10485760 bytes at offset 3298534883328
2064 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2067 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2069 unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
2071 # ================= qemu-img aes-256-xts-plain64-ripemd160 =================
2073 qemu-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
2075 sudo 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
2077 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2078 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2079 wrote 10485760/10485760 bytes at offset 104857600
2080 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2082 # Write test pattern 0x13
2083 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2084 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2085 wrote 10485760/10485760 bytes at offset 3298534883328
2086 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2089 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2090 # Read test pattern 0xa7
2091 qemu-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
2092 read 10485760/10485760 bytes at offset 104857600
2093 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2095 # Read test pattern 0x13
2096 qemu-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
2097 read 10485760/10485760 bytes at offset 3298534883328
2098 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2100 # Write test pattern 0x91
2101 qemu-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
2102 wrote 10485760/10485760 bytes at offset 104857600
2103 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2105 # Write test pattern 0x5e
2106 qemu-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
2107 wrote 10485760/10485760 bytes at offset 3298534883328
2108 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2111 sudo 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
2113 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2114 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2115 read 10485760/10485760 bytes at offset 104857600
2116 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2118 # Read test pattern 0x5e
2119 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2120 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
2121 read 10485760/10485760 bytes at offset 3298534883328
2122 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2125 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
2127 unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
2129 # ================= dm-crypt aes-256-xts-plain-sha1-pwslot3 =================
2131 truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img --size 4194304MB
2133 sudo 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
2135 sudo 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
2137 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2138 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2139 wrote 10485760/10485760 bytes at offset 104857600
2140 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2142 # Write test pattern 0x13
2143 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2144 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2145 wrote 10485760/10485760 bytes at offset 3298534883328
2146 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2149 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
2150 # Read test pattern 0xa7
2151 qemu-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
2152 read 10485760/10485760 bytes at offset 104857600
2153 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2155 # Read test pattern 0x13
2156 qemu-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
2157 read 10485760/10485760 bytes at offset 3298534883328
2158 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2160 # Write test pattern 0x91
2161 qemu-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
2162 wrote 10485760/10485760 bytes at offset 104857600
2163 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2165 # Write test pattern 0x5e
2166 qemu-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
2167 wrote 10485760/10485760 bytes at offset 3298534883328
2168 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2171 sudo 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
2173 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2174 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2175 read 10485760/10485760 bytes at offset 104857600
2176 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2178 # Read test pattern 0x5e
2179 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2180 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
2181 read 10485760/10485760 bytes at offset 3298534883328
2182 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2185 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
2187 unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
2189 # ================= dm-crypt aes-256-xts-plain-sha1-pwallslots =================
2191 truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --size 4194304MB
2193 sudo 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
2195 sudo 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
2197 sudo 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
2199 sudo 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
2201 sudo 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
2203 sudo 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
2205 sudo 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
2207 sudo 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
2209 sudo 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
2211 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2212 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2213 wrote 10485760/10485760 bytes at offset 104857600
2214 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2216 # Write test pattern 0x13
2217 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2218 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2219 wrote 10485760/10485760 bytes at offset 3298534883328
2220 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2223 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2224 # Read test pattern 0xa7
2225 qemu-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
2226 read 10485760/10485760 bytes at offset 104857600
2227 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2229 # Read test pattern 0x13
2230 qemu-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
2231 read 10485760/10485760 bytes at offset 3298534883328
2232 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2234 # Write test pattern 0x91
2235 qemu-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
2236 wrote 10485760/10485760 bytes at offset 104857600
2237 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2239 # Write test pattern 0x5e
2240 qemu-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
2241 wrote 10485760/10485760 bytes at offset 3298534883328
2242 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2245 sudo 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
2247 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2248 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2249 read 10485760/10485760 bytes at offset 104857600
2250 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2252 # Read test pattern 0x5e
2253 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2254 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2255 read 10485760/10485760 bytes at offset 3298534883328
2256 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2259 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2261 unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
2263 # ================= qemu-img aes-256-xts-plain-sha1-pwallslots =================
2265 qemu-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
2267 sudo 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
2269 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2270 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2271 wrote 10485760/10485760 bytes at offset 104857600
2272 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2274 # Write test pattern 0x13
2275 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2276 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2277 wrote 10485760/10485760 bytes at offset 3298534883328
2278 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2281 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2282 # Read test pattern 0xa7
2283 qemu-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
2284 read 10485760/10485760 bytes at offset 104857600
2285 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2287 # Read test pattern 0x13
2288 qemu-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
2289 read 10485760/10485760 bytes at offset 3298534883328
2290 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2292 # Write test pattern 0x91
2293 qemu-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
2294 wrote 10485760/10485760 bytes at offset 104857600
2295 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2297 # Write test pattern 0x5e
2298 qemu-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
2299 wrote 10485760/10485760 bytes at offset 3298534883328
2300 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2303 sudo 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
2305 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2306 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2307 read 10485760/10485760 bytes at offset 104857600
2308 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2310 # Read test pattern 0x5e
2311 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2312 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
2313 read 10485760/10485760 bytes at offset 3298534883328
2314 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2317 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
2319 unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
2321 # ================= dm-crypt aes-256-cbc-essiv-auto-sha1 =================
2323 truncate TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img --size 4194304MB
2325 sudo 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
2327 sudo 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
2329 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2330 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2331 wrote 10485760/10485760 bytes at offset 104857600
2332 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2334 # Write test pattern 0x13
2335 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2336 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2337 wrote 10485760/10485760 bytes at offset 3298534883328
2338 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2341 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2342 # Read test pattern 0xa7
2343 qemu-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
2344 read 10485760/10485760 bytes at offset 104857600
2345 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2347 # Read test pattern 0x13
2348 qemu-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
2349 read 10485760/10485760 bytes at offset 3298534883328
2350 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2352 # Write test pattern 0x91
2353 qemu-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
2354 wrote 10485760/10485760 bytes at offset 104857600
2355 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2357 # Write test pattern 0x5e
2358 qemu-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
2359 wrote 10485760/10485760 bytes at offset 3298534883328
2360 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2363 sudo 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
2365 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2366 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2367 read 10485760/10485760 bytes at offset 104857600
2368 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2370 # Read test pattern 0x5e
2371 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2372 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2373 read 10485760/10485760 bytes at offset 3298534883328
2374 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2377 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2379 unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
2381 # ================= qemu-img aes-256-cbc-essiv-auto-sha1 =================
2383 qemu-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
2385 sudo 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
2387 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2388 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2389 wrote 10485760/10485760 bytes at offset 104857600
2390 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2392 # Write test pattern 0x13
2393 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2394 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2395 wrote 10485760/10485760 bytes at offset 3298534883328
2396 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2399 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2400 # Read test pattern 0xa7
2401 qemu-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
2402 read 10485760/10485760 bytes at offset 104857600
2403 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2405 # Read test pattern 0x13
2406 qemu-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
2407 read 10485760/10485760 bytes at offset 3298534883328
2408 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2410 # Write test pattern 0x91
2411 qemu-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
2412 wrote 10485760/10485760 bytes at offset 104857600
2413 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2415 # Write test pattern 0x5e
2416 qemu-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
2417 wrote 10485760/10485760 bytes at offset 3298534883328
2418 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2421 sudo 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
2423 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2424 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2425 read 10485760/10485760 bytes at offset 104857600
2426 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2428 # Read test pattern 0x5e
2429 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2430 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
2431 read 10485760/10485760 bytes at offset 3298534883328
2432 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2435 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
2437 unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
2439 # ================= dm-crypt aes-256-cbc-plain64-sha256-sha1 =================
2441 truncate TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img --size 4194304MB
2443 sudo 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
2445 sudo 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
2447 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2448 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2449 wrote 10485760/10485760 bytes at offset 104857600
2450 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2452 # Write test pattern 0x13
2453 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2454 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2455 wrote 10485760/10485760 bytes at offset 3298534883328
2456 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2459 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2460 # Read test pattern 0xa7
2461 qemu-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
2462 read 10485760/10485760 bytes at offset 104857600
2463 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2465 # Read test pattern 0x13
2466 qemu-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
2467 read 10485760/10485760 bytes at offset 3298534883328
2468 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2470 # Write test pattern 0x91
2471 qemu-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
2472 wrote 10485760/10485760 bytes at offset 104857600
2473 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2475 # Write test pattern 0x5e
2476 qemu-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
2477 wrote 10485760/10485760 bytes at offset 3298534883328
2478 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2481 sudo 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
2483 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2484 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2485 read 10485760/10485760 bytes at offset 104857600
2486 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2488 # Read test pattern 0x5e
2489 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2490 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2491 read 10485760/10485760 bytes at offset 3298534883328
2492 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2495 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2497 unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
2499 # ================= qemu-img aes-256-cbc-plain64-sha256-sha1 =================
2501 qemu-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
2503 sudo 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
2505 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2506 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2507 wrote 10485760/10485760 bytes at offset 104857600
2508 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2510 # Write test pattern 0x13
2511 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2512 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2513 wrote 10485760/10485760 bytes at offset 3298534883328
2514 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2517 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2518 # Read test pattern 0xa7
2519 qemu-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
2520 read 10485760/10485760 bytes at offset 104857600
2521 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2523 # Read test pattern 0x13
2524 qemu-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
2525 read 10485760/10485760 bytes at offset 3298534883328
2526 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2528 # Write test pattern 0x91
2529 qemu-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
2530 wrote 10485760/10485760 bytes at offset 104857600
2531 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2533 # Write test pattern 0x5e
2534 qemu-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
2535 wrote 10485760/10485760 bytes at offset 3298534883328
2536 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2539 sudo 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
2541 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2542 qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2543 read 10485760/10485760 bytes at offset 104857600
2544 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2546 # Read test pattern 0x5e
2547 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2548 qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
2549 read 10485760/10485760 bytes at offset 3298534883328
2550 10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
2553 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
2555 unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img