1# ================= dm-crypt aes-256-xts-plain64-sha1 ================= 2# Create image 3truncate TEST_DIR/luks-aes-256-xts-plain64-sha1.img --size 4194304MB 4# Format image 5sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha1.img 6# Open dev 7sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1 8# Write test pattern 0xa7 9sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 10qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 11wrote 10485760/10485760 bytes at offset 104857600 1210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 13 14# Write test pattern 0x13 15sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 16qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 17wrote 10485760/10485760 bytes at offset 3298534883328 1810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 19 20# Close dev 21sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1 22# Read test pattern 0xa7 23qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img 24read 10485760/10485760 bytes at offset 104857600 2510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 26 27# Read test pattern 0x13 28qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img 29read 10485760/10485760 bytes at offset 3298534883328 3010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 31 32# Write test pattern 0x91 33qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img 34wrote 10485760/10485760 bytes at offset 104857600 3510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 36 37# Write test pattern 0x5e 38qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img 39wrote 10485760/10485760 bytes at offset 3298534883328 4010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 41 42# Open dev 43sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1 44# Read test pattern 0x91 45sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 46qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 47read 10485760/10485760 bytes at offset 104857600 4810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 49 50# Read test pattern 0x5e 51sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 52qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 53read 10485760/10485760 bytes at offset 3298534883328 5410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 55 56# Close dev 57sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1 58# Delete image 59unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img 60 61# ================= qemu-img aes-256-xts-plain64-sha1 ================= 62# Create image 63qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-256-xts-plain64-sha1.img 4194304M 64Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1 iter-time=10 65 66# Open dev 67sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1 68# Write test pattern 0xa7 69sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 70qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 71wrote 10485760/10485760 bytes at offset 104857600 7210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 73 74# Write test pattern 0x13 75sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 76qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 77wrote 10485760/10485760 bytes at offset 3298534883328 7810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 79 80# Close dev 81sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1 82# Read test pattern 0xa7 83qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img 84read 10485760/10485760 bytes at offset 104857600 8510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 86 87# Read test pattern 0x13 88qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img 89read 10485760/10485760 bytes at offset 3298534883328 9010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 91 92# Write test pattern 0x91 93qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img 94wrote 10485760/10485760 bytes at offset 104857600 9510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 96 97# Write test pattern 0x5e 98qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img 99wrote 10485760/10485760 bytes at offset 3298534883328 10010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 101 102# Open dev 103sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1 104# Read test pattern 0x91 105sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 106qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 107read 10485760/10485760 bytes at offset 104857600 10810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 109 110# Read test pattern 0x5e 111sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 112qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 113read 10485760/10485760 bytes at offset 3298534883328 11410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 115 116# Close dev 117sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1 118# Delete image 119unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img 120 121# ================= dm-crypt twofish-256-xts-plain64-sha1 ================= 122# Create image 123truncate TEST_DIR/luks-twofish-256-xts-plain64-sha1.img --size 4194304MB 124# Format image 125sudo cryptsetup -q -v luksFormat --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 126# Open dev 127sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1 128# Write test pattern 0xa7 129sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 130qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 131wrote 10485760/10485760 bytes at offset 104857600 13210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 133 134# Write test pattern 0x13 135sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 136qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 137wrote 10485760/10485760 bytes at offset 3298534883328 13810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 139 140# Close dev 141sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1 142# Read test pattern 0xa7 143qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 144read 10485760/10485760 bytes at offset 104857600 14510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 146 147# Read test pattern 0x13 148qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 149read 10485760/10485760 bytes at offset 3298534883328 15010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 151 152# Write test pattern 0x91 153qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 154wrote 10485760/10485760 bytes at offset 104857600 15510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 156 157# Write test pattern 0x5e 158qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 159wrote 10485760/10485760 bytes at offset 3298534883328 16010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 161 162# Open dev 163sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1 164# Read test pattern 0x91 165sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 166qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 167read 10485760/10485760 bytes at offset 104857600 16810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 169 170# Read test pattern 0x5e 171sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 172qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 173read 10485760/10485760 bytes at offset 3298534883328 17410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 175 176# Close dev 177sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1 178# Delete image 179unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 180 181# ================= qemu-img twofish-256-xts-plain64-sha1 ================= 182# Create image 183qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 184Formatting 'TEST_DIR/luks-twofish-256-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=twofish-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1 iter-time=10 185 186# Open dev 187sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1 188# Write test pattern 0xa7 189sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 190qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 191wrote 10485760/10485760 bytes at offset 104857600 19210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 193 194# Write test pattern 0x13 195sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 196qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 197wrote 10485760/10485760 bytes at offset 3298534883328 19810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 199 200# Close dev 201sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1 202# Read test pattern 0xa7 203qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 204read 10485760/10485760 bytes at offset 104857600 20510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 206 207# Read test pattern 0x13 208qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 209read 10485760/10485760 bytes at offset 3298534883328 21010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 211 212# Write test pattern 0x91 213qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 214wrote 10485760/10485760 bytes at offset 104857600 21510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 216 217# Write test pattern 0x5e 218qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 219wrote 10485760/10485760 bytes at offset 3298534883328 22010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 221 222# Open dev 223sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1 224# Read test pattern 0x91 225sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 226qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 227read 10485760/10485760 bytes at offset 104857600 22810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 229 230# Read test pattern 0x5e 231sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 232qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1 233read 10485760/10485760 bytes at offset 3298534883328 23410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 235 236# Close dev 237sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1 238# Delete image 239unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 240 241# ================= dm-crypt serpent-256-xts-plain64-sha1 ================= 242# Create image 243truncate TEST_DIR/luks-serpent-256-xts-plain64-sha1.img --size 4194304MB 244# Format image 245sudo cryptsetup -q -v luksFormat --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 246# Open dev 247sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1 248# Write test pattern 0xa7 249sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 250qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 251wrote 10485760/10485760 bytes at offset 104857600 25210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 253 254# Write test pattern 0x13 255sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 256qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 257wrote 10485760/10485760 bytes at offset 3298534883328 25810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 259 260# Close dev 261sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1 262# Read test pattern 0xa7 263qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 264read 10485760/10485760 bytes at offset 104857600 26510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 266 267# Read test pattern 0x13 268qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 269read 10485760/10485760 bytes at offset 3298534883328 27010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 271 272# Write test pattern 0x91 273qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 274wrote 10485760/10485760 bytes at offset 104857600 27510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 276 277# Write test pattern 0x5e 278qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 279wrote 10485760/10485760 bytes at offset 3298534883328 28010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 281 282# Open dev 283sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1 284# Read test pattern 0x91 285sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 286qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 287read 10485760/10485760 bytes at offset 104857600 28810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 289 290# Read test pattern 0x5e 291sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 292qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 293read 10485760/10485760 bytes at offset 3298534883328 29410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 295 296# Close dev 297sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1 298# Delete image 299unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 300 301# ================= qemu-img serpent-256-xts-plain64-sha1 ================= 302# Create image 303qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 304Formatting 'TEST_DIR/luks-serpent-256-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=serpent-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1 iter-time=10 305 306# Open dev 307sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1 308# Write test pattern 0xa7 309sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 310qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 311wrote 10485760/10485760 bytes at offset 104857600 31210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 313 314# Write test pattern 0x13 315sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 316qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 317wrote 10485760/10485760 bytes at offset 3298534883328 31810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 319 320# Close dev 321sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1 322# Read test pattern 0xa7 323qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 324read 10485760/10485760 bytes at offset 104857600 32510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 326 327# Read test pattern 0x13 328qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 329read 10485760/10485760 bytes at offset 3298534883328 33010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 331 332# Write test pattern 0x91 333qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 334wrote 10485760/10485760 bytes at offset 104857600 33510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 336 337# Write test pattern 0x5e 338qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 339wrote 10485760/10485760 bytes at offset 3298534883328 34010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 341 342# Open dev 343sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1 344# Read test pattern 0x91 345sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 346qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 347read 10485760/10485760 bytes at offset 104857600 34810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 349 350# Read test pattern 0x5e 351sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 352qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1 353read 10485760/10485760 bytes at offset 3298534883328 35410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 355 356# Close dev 357sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1 358# Delete image 359unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 360 361# ================= dm-crypt cast5-128-cbc-plain64-sha1 ================= 362# Create image 363truncate TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img --size 4194304MB 364# Format image 365sudo cryptsetup -q -v luksFormat --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 366# Open dev 367sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1 368# Write test pattern 0xa7 369sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 370qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 371wrote 10485760/10485760 bytes at offset 104857600 37210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 373 374# Write test pattern 0x13 375sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 376qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 377wrote 10485760/10485760 bytes at offset 3298534883328 37810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 379 380# Close dev 381sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1 382# Read test pattern 0xa7 383qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 384read 10485760/10485760 bytes at offset 104857600 38510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 386 387# Read test pattern 0x13 388qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 389read 10485760/10485760 bytes at offset 3298534883328 39010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 391 392# Write test pattern 0x91 393qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 394wrote 10485760/10485760 bytes at offset 104857600 39510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 396 397# Write test pattern 0x5e 398qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 399wrote 10485760/10485760 bytes at offset 3298534883328 40010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 401 402# Open dev 403sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1 404# Read test pattern 0x91 405sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 406qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 407read 10485760/10485760 bytes at offset 104857600 40810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 409 410# Read test pattern 0x5e 411sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 412qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 413read 10485760/10485760 bytes at offset 3298534883328 41410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 415 416# Close dev 417sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1 418# Delete image 419unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 420 421# ================= qemu-img cast5-128-cbc-plain64-sha1 ================= 422# Create image 423qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 424Formatting 'TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=cast5-128 cipher-mode=cbc ivgen-alg=plain64 hash-alg=sha1 iter-time=10 425 426# Open dev 427sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1 428# Write test pattern 0xa7 429sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 430qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 431wrote 10485760/10485760 bytes at offset 104857600 43210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 433 434# Write test pattern 0x13 435sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 436qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 437wrote 10485760/10485760 bytes at offset 3298534883328 43810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 439 440# Close dev 441sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1 442# Read test pattern 0xa7 443qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 444read 10485760/10485760 bytes at offset 104857600 44510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 446 447# Read test pattern 0x13 448qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 449read 10485760/10485760 bytes at offset 3298534883328 45010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 451 452# Write test pattern 0x91 453qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 454wrote 10485760/10485760 bytes at offset 104857600 45510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 456 457# Write test pattern 0x5e 458qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 459wrote 10485760/10485760 bytes at offset 3298534883328 46010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 461 462# Open dev 463sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1 464# Read test pattern 0x91 465sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 466qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 467read 10485760/10485760 bytes at offset 104857600 46810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 469 470# Read test pattern 0x5e 471sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 472qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1 473read 10485760/10485760 bytes at offset 3298534883328 47410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 475 476# Close dev 477sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1 478# Delete image 479unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 480 481Skipping cast6-256-xts-plain64-sha1 in blacklist 482# ================= dm-crypt aes-256-cbc-plain-sha1 ================= 483# Create image 484truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB 485# Format image 486sudo cryptsetup -q -v luksFormat --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 487# Open dev 488sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1 489# Write test pattern 0xa7 490sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 491qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 492wrote 10485760/10485760 bytes at offset 104857600 49310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 494 495# Write test pattern 0x13 496sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 497qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 498wrote 10485760/10485760 bytes at offset 3298534883328 49910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 500 501# Close dev 502sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1 503# Read test pattern 0xa7 504qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img 505read 10485760/10485760 bytes at offset 104857600 50610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 507 508# Read test pattern 0x13 509qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img 510read 10485760/10485760 bytes at offset 3298534883328 51110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 512 513# Write test pattern 0x91 514qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img 515wrote 10485760/10485760 bytes at offset 104857600 51610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 517 518# Write test pattern 0x5e 519qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img 520wrote 10485760/10485760 bytes at offset 3298534883328 52110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 522 523# Open dev 524sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1 525# Read test pattern 0x91 526sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 527qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 528read 10485760/10485760 bytes at offset 104857600 52910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 530 531# Read test pattern 0x5e 532sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 533qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 534read 10485760/10485760 bytes at offset 3298534883328 53510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 536 537# Close dev 538sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1 539# Delete image 540unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img 541 542# ================= qemu-img aes-256-cbc-plain-sha1 ================= 543# Create image 544qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 545Formatting 'TEST_DIR/luks-aes-256-cbc-plain-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=plain hash-alg=sha1 iter-time=10 546 547# Open dev 548sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1 549# Write test pattern 0xa7 550sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 551qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 552wrote 10485760/10485760 bytes at offset 104857600 55310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 554 555# Write test pattern 0x13 556sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 557qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 558wrote 10485760/10485760 bytes at offset 3298534883328 55910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 560 561# Close dev 562sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1 563# Read test pattern 0xa7 564qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img 565read 10485760/10485760 bytes at offset 104857600 56610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 567 568# Read test pattern 0x13 569qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img 570read 10485760/10485760 bytes at offset 3298534883328 57110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 572 573# Write test pattern 0x91 574qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img 575wrote 10485760/10485760 bytes at offset 104857600 57610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 577 578# Write test pattern 0x5e 579qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img 580wrote 10485760/10485760 bytes at offset 3298534883328 58110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 582 583# Open dev 584sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1 585# Read test pattern 0x91 586sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 587qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 588read 10485760/10485760 bytes at offset 104857600 58910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 590 591# Read test pattern 0x5e 592sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 593qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1 594read 10485760/10485760 bytes at offset 3298534883328 59510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 596 597# Close dev 598sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1 599# Delete image 600unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img 601 602# ================= dm-crypt aes-256-cbc-plain64-sha1 ================= 603# Create image 604truncate TEST_DIR/luks-aes-256-cbc-plain64-sha1.img --size 4194304MB 605# Format image 606sudo cryptsetup -q -v luksFormat --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 607# Open dev 608sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1 609# Write test pattern 0xa7 610sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 611qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 612wrote 10485760/10485760 bytes at offset 104857600 61310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 614 615# Write test pattern 0x13 616sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 617qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 618wrote 10485760/10485760 bytes at offset 3298534883328 61910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 620 621# Close dev 622sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1 623# Read test pattern 0xa7 624qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 625read 10485760/10485760 bytes at offset 104857600 62610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 627 628# Read test pattern 0x13 629qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 630read 10485760/10485760 bytes at offset 3298534883328 63110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 632 633# Write test pattern 0x91 634qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 635wrote 10485760/10485760 bytes at offset 104857600 63610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 637 638# Write test pattern 0x5e 639qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 640wrote 10485760/10485760 bytes at offset 3298534883328 64110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 642 643# Open dev 644sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1 645# Read test pattern 0x91 646sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 647qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 648read 10485760/10485760 bytes at offset 104857600 64910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 650 651# Read test pattern 0x5e 652sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 653qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 654read 10485760/10485760 bytes at offset 3298534883328 65510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 656 657# Close dev 658sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1 659# Delete image 660unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 661 662# ================= qemu-img aes-256-cbc-plain64-sha1 ================= 663# Create image 664qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 665Formatting 'TEST_DIR/luks-aes-256-cbc-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=plain64 hash-alg=sha1 iter-time=10 666 667# Open dev 668sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1 669# Write test pattern 0xa7 670sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 671qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 672wrote 10485760/10485760 bytes at offset 104857600 67310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 674 675# Write test pattern 0x13 676sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 677qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 678wrote 10485760/10485760 bytes at offset 3298534883328 67910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 680 681# Close dev 682sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1 683# Read test pattern 0xa7 684qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 685read 10485760/10485760 bytes at offset 104857600 68610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 687 688# Read test pattern 0x13 689qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 690read 10485760/10485760 bytes at offset 3298534883328 69110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 692 693# Write test pattern 0x91 694qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 695wrote 10485760/10485760 bytes at offset 104857600 69610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 697 698# Write test pattern 0x5e 699qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 700wrote 10485760/10485760 bytes at offset 3298534883328 70110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 702 703# Open dev 704sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1 705# Read test pattern 0x91 706sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 707qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 708read 10485760/10485760 bytes at offset 104857600 70910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 710 711# Read test pattern 0x5e 712sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 713qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1 714read 10485760/10485760 bytes at offset 3298534883328 71510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 716 717# Close dev 718sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1 719# Delete image 720unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 721 722# ================= dm-crypt aes-256-cbc-essiv-sha256-sha1 ================= 723# Create image 724truncate TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img --size 4194304MB 725# Format image 726sudo cryptsetup -q -v luksFormat --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 727# Open dev 728sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1 729# Write test pattern 0xa7 730sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 731qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 732wrote 10485760/10485760 bytes at offset 104857600 73310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 734 735# Write test pattern 0x13 736sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 737qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 738wrote 10485760/10485760 bytes at offset 3298534883328 73910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 740 741# Close dev 742sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1 743# Read test pattern 0xa7 744qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 745read 10485760/10485760 bytes at offset 104857600 74610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 747 748# Read test pattern 0x13 749qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 750read 10485760/10485760 bytes at offset 3298534883328 75110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 752 753# Write test pattern 0x91 754qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 755wrote 10485760/10485760 bytes at offset 104857600 75610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 757 758# Write test pattern 0x5e 759qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 760wrote 10485760/10485760 bytes at offset 3298534883328 76110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 762 763# Open dev 764sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1 765# Read test pattern 0x91 766sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 767qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 768read 10485760/10485760 bytes at offset 104857600 76910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 770 771# Read test pattern 0x5e 772sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 773qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 774read 10485760/10485760 bytes at offset 3298534883328 77510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 776 777# Close dev 778sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1 779# Delete image 780unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 781 782# ================= qemu-img aes-256-cbc-essiv-sha256-sha1 ================= 783# Create image 784qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 785Formatting 'TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=essiv ivgen-hash-alg=sha256 hash-alg=sha1 iter-time=10 786 787# Open dev 788sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1 789# Write test pattern 0xa7 790sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 791qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 792wrote 10485760/10485760 bytes at offset 104857600 79310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 794 795# Write test pattern 0x13 796sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 797qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 798wrote 10485760/10485760 bytes at offset 3298534883328 79910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 800 801# Close dev 802sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1 803# Read test pattern 0xa7 804qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 805read 10485760/10485760 bytes at offset 104857600 80610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 807 808# Read test pattern 0x13 809qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 810read 10485760/10485760 bytes at offset 3298534883328 81110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 812 813# Write test pattern 0x91 814qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 815wrote 10485760/10485760 bytes at offset 104857600 81610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 817 818# Write test pattern 0x5e 819qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 820wrote 10485760/10485760 bytes at offset 3298534883328 82110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 822 823# Open dev 824sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1 825# Read test pattern 0x91 826sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 827qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 828read 10485760/10485760 bytes at offset 104857600 82910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 830 831# Read test pattern 0x5e 832sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 833qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1 834read 10485760/10485760 bytes at offset 3298534883328 83510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 836 837# Close dev 838sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1 839# Delete image 840unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 841 842# ================= dm-crypt aes-256-xts-essiv-sha256-sha1 ================= 843# Create image 844truncate TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img --size 4194304MB 845# Format image 846sudo cryptsetup -q -v luksFormat --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 847# Open dev 848sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1 849# Write test pattern 0xa7 850sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 851qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 852wrote 10485760/10485760 bytes at offset 104857600 85310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 854 855# Write test pattern 0x13 856sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 857qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 858wrote 10485760/10485760 bytes at offset 3298534883328 85910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 860 861# Close dev 862sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1 863# Read test pattern 0xa7 864qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 865read 10485760/10485760 bytes at offset 104857600 86610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 867 868# Read test pattern 0x13 869qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 870read 10485760/10485760 bytes at offset 3298534883328 87110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 872 873# Write test pattern 0x91 874qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 875wrote 10485760/10485760 bytes at offset 104857600 87610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 877 878# Write test pattern 0x5e 879qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 880wrote 10485760/10485760 bytes at offset 3298534883328 88110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 882 883# Open dev 884sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1 885# Read test pattern 0x91 886sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 887qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 888read 10485760/10485760 bytes at offset 104857600 88910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 890 891# Read test pattern 0x5e 892sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 893qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 894read 10485760/10485760 bytes at offset 3298534883328 89510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 896 897# Close dev 898sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1 899# Delete image 900unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 901 902# ================= qemu-img aes-256-xts-essiv-sha256-sha1 ================= 903# Create image 904qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 905Formatting 'TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=essiv ivgen-hash-alg=sha256 hash-alg=sha1 iter-time=10 906 907# Open dev 908sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1 909# Write test pattern 0xa7 910sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 911qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 912wrote 10485760/10485760 bytes at offset 104857600 91310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 914 915# Write test pattern 0x13 916sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 917qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 918wrote 10485760/10485760 bytes at offset 3298534883328 91910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 920 921# Close dev 922sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1 923# Read test pattern 0xa7 924qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 925read 10485760/10485760 bytes at offset 104857600 92610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 927 928# Read test pattern 0x13 929qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 930read 10485760/10485760 bytes at offset 3298534883328 93110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 932 933# Write test pattern 0x91 934qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 935wrote 10485760/10485760 bytes at offset 104857600 93610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 937 938# Write test pattern 0x5e 939qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 940wrote 10485760/10485760 bytes at offset 3298534883328 94110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 942 943# Open dev 944sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1 945# Read test pattern 0x91 946sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 947qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 948read 10485760/10485760 bytes at offset 104857600 94910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 950 951# Read test pattern 0x5e 952sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 953qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1 954read 10485760/10485760 bytes at offset 3298534883328 95510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 956 957# Close dev 958sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1 959# Delete image 960unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 961 962# ================= dm-crypt aes-128-xts-plain64-sha256-sha1 ================= 963# Create image 964truncate TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img --size 4194304MB 965# Format image 966sudo cryptsetup -q -v luksFormat --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 967# Open dev 968sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1 969# Write test pattern 0xa7 970sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 971qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 972wrote 10485760/10485760 bytes at offset 104857600 97310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 974 975# Write test pattern 0x13 976sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 977qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 978wrote 10485760/10485760 bytes at offset 3298534883328 97910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 980 981# Close dev 982sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1 983# Read test pattern 0xa7 984qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 985read 10485760/10485760 bytes at offset 104857600 98610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 987 988# Read test pattern 0x13 989qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 990read 10485760/10485760 bytes at offset 3298534883328 99110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 992 993# Write test pattern 0x91 994qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 995wrote 10485760/10485760 bytes at offset 104857600 99610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 997 998# Write test pattern 0x5e 999qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 1000wrote 10485760/10485760 bytes at offset 3298534883328 100110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1002 1003# Open dev 1004sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1 1005# Read test pattern 0x91 1006sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1007qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1008read 10485760/10485760 bytes at offset 104857600 100910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1010 1011# Read test pattern 0x5e 1012sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1013qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1014read 10485760/10485760 bytes at offset 3298534883328 101510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1016 1017# Close dev 1018sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1 1019# Delete image 1020unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 1021 1022# ================= qemu-img aes-128-xts-plain64-sha256-sha1 ================= 1023# Create image 1024qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 1025Formatting 'TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-128 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1 iter-time=10 1026 1027# Open dev 1028sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1 1029# Write test pattern 0xa7 1030sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1031qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1032wrote 10485760/10485760 bytes at offset 104857600 103310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1034 1035# Write test pattern 0x13 1036sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1037qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1038wrote 10485760/10485760 bytes at offset 3298534883328 103910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1040 1041# Close dev 1042sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1 1043# Read test pattern 0xa7 1044qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 1045read 10485760/10485760 bytes at offset 104857600 104610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1047 1048# Read test pattern 0x13 1049qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 1050read 10485760/10485760 bytes at offset 3298534883328 105110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1052 1053# Write test pattern 0x91 1054qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 1055wrote 10485760/10485760 bytes at offset 104857600 105610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1057 1058# Write test pattern 0x5e 1059qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 1060wrote 10485760/10485760 bytes at offset 3298534883328 106110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1062 1063# Open dev 1064sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1 1065# Read test pattern 0x91 1066sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1067qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1068read 10485760/10485760 bytes at offset 104857600 106910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1070 1071# Read test pattern 0x5e 1072sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1073qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1 1074read 10485760/10485760 bytes at offset 3298534883328 107510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1076 1077# Close dev 1078sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1 1079# Delete image 1080unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 1081 1082# ================= dm-crypt aes-192-xts-plain64-sha256-sha1 ================= 1083# Create image 1084truncate TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img --size 4194304MB 1085# Format image 1086sudo cryptsetup -q -v luksFormat --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 1087# Open dev 1088sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1 1089# Write test pattern 0xa7 1090sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1091qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1092wrote 10485760/10485760 bytes at offset 104857600 109310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1094 1095# Write test pattern 0x13 1096sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1097qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1098wrote 10485760/10485760 bytes at offset 3298534883328 109910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1100 1101# Close dev 1102sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1 1103# Read test pattern 0xa7 1104qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1105read 10485760/10485760 bytes at offset 104857600 110610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1107 1108# Read test pattern 0x13 1109qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1110read 10485760/10485760 bytes at offset 3298534883328 111110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1112 1113# Write test pattern 0x91 1114qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1115wrote 10485760/10485760 bytes at offset 104857600 111610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1117 1118# Write test pattern 0x5e 1119qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1120wrote 10485760/10485760 bytes at offset 3298534883328 112110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1122 1123# Open dev 1124sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1 1125# Read test pattern 0x91 1126sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1127qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1128read 10485760/10485760 bytes at offset 104857600 112910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1130 1131# Read test pattern 0x5e 1132sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1133qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1134read 10485760/10485760 bytes at offset 3298534883328 113510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1136 1137# Close dev 1138sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1 1139# Delete image 1140unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1141 1142# ================= qemu-img aes-192-xts-plain64-sha256-sha1 ================= 1143# Create image 1144qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 1145Formatting 'TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-192 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1 iter-time=10 1146 1147# Open dev 1148sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1 1149# Write test pattern 0xa7 1150sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1151qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1152wrote 10485760/10485760 bytes at offset 104857600 115310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1154 1155# Write test pattern 0x13 1156sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1157qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1158wrote 10485760/10485760 bytes at offset 3298534883328 115910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1160 1161# Close dev 1162sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1 1163# Read test pattern 0xa7 1164qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1165read 10485760/10485760 bytes at offset 104857600 116610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1167 1168# Read test pattern 0x13 1169qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1170read 10485760/10485760 bytes at offset 3298534883328 117110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1172 1173# Write test pattern 0x91 1174qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1175wrote 10485760/10485760 bytes at offset 104857600 117610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1177 1178# Write test pattern 0x5e 1179qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1180wrote 10485760/10485760 bytes at offset 3298534883328 118110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1182 1183# Open dev 1184sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1 1185# Read test pattern 0x91 1186sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1187qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1188read 10485760/10485760 bytes at offset 104857600 118910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1190 1191# Read test pattern 0x5e 1192sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1193qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1 1194read 10485760/10485760 bytes at offset 3298534883328 119510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1196 1197# Close dev 1198sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1 1199# Delete image 1200unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 1201 1202# ================= dm-crypt twofish-128-xts-plain64-sha1 ================= 1203# Create image 1204truncate TEST_DIR/luks-twofish-128-xts-plain64-sha1.img --size 4194304MB 1205# Format image 1206sudo cryptsetup -q -v luksFormat --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 1207# Open dev 1208sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1 1209# Write test pattern 0xa7 1210sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1211qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1212wrote 10485760/10485760 bytes at offset 104857600 121310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1214 1215# Write test pattern 0x13 1216sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1217qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1218wrote 10485760/10485760 bytes at offset 3298534883328 121910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1220 1221# Close dev 1222sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1 1223# Read test pattern 0xa7 1224qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1225read 10485760/10485760 bytes at offset 104857600 122610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1227 1228# Read test pattern 0x13 1229qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1230read 10485760/10485760 bytes at offset 3298534883328 123110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1232 1233# Write test pattern 0x91 1234qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1235wrote 10485760/10485760 bytes at offset 104857600 123610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1237 1238# Write test pattern 0x5e 1239qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1240wrote 10485760/10485760 bytes at offset 3298534883328 124110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1242 1243# Open dev 1244sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1 1245# Read test pattern 0x91 1246sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1247qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1248read 10485760/10485760 bytes at offset 104857600 124910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1250 1251# Read test pattern 0x5e 1252sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1253qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1254read 10485760/10485760 bytes at offset 3298534883328 125510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1256 1257# Close dev 1258sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1 1259# Delete image 1260unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1261 1262# ================= qemu-img twofish-128-xts-plain64-sha1 ================= 1263# Create image 1264qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 1265Formatting 'TEST_DIR/luks-twofish-128-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=twofish-128 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1 iter-time=10 1266 1267# Open dev 1268sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1 1269# Write test pattern 0xa7 1270sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1271qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1272wrote 10485760/10485760 bytes at offset 104857600 127310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1274 1275# Write test pattern 0x13 1276sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1277qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1278wrote 10485760/10485760 bytes at offset 3298534883328 127910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1280 1281# Close dev 1282sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1 1283# Read test pattern 0xa7 1284qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1285read 10485760/10485760 bytes at offset 104857600 128610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1287 1288# Read test pattern 0x13 1289qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1290read 10485760/10485760 bytes at offset 3298534883328 129110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1292 1293# Write test pattern 0x91 1294qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1295wrote 10485760/10485760 bytes at offset 104857600 129610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1297 1298# Write test pattern 0x5e 1299qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1300wrote 10485760/10485760 bytes at offset 3298534883328 130110 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1302 1303# Open dev 1304sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1 1305# Read test pattern 0x91 1306sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1307qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1308read 10485760/10485760 bytes at offset 104857600 130910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1310 1311# Read test pattern 0x5e 1312sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1313qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1 1314read 10485760/10485760 bytes at offset 3298534883328 131510 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1316 1317# Close dev 1318sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1 1319# Delete image 1320unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 1321 1322Skipping twofish-192-xts-plain64-sha1 in blacklist 1323# ================= dm-crypt serpent-128-xts-plain64-sha1 ================= 1324# Create image 1325truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB 1326# Format image 1327sudo cryptsetup -q -v luksFormat --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 1328# Open dev 1329sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1 1330# Write test pattern 0xa7 1331sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1332qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1333wrote 10485760/10485760 bytes at offset 104857600 133410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1335 1336# Write test pattern 0x13 1337sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1338qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1339wrote 10485760/10485760 bytes at offset 3298534883328 134010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1341 1342# Close dev 1343sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1 1344# Read test pattern 0xa7 1345qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1346read 10485760/10485760 bytes at offset 104857600 134710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1348 1349# Read test pattern 0x13 1350qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1351read 10485760/10485760 bytes at offset 3298534883328 135210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1353 1354# Write test pattern 0x91 1355qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1356wrote 10485760/10485760 bytes at offset 104857600 135710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1358 1359# Write test pattern 0x5e 1360qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1361wrote 10485760/10485760 bytes at offset 3298534883328 136210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1363 1364# Open dev 1365sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1 1366# Read test pattern 0x91 1367sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1368qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1369read 10485760/10485760 bytes at offset 104857600 137010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1371 1372# Read test pattern 0x5e 1373sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1374qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1375read 10485760/10485760 bytes at offset 3298534883328 137610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1377 1378# Close dev 1379sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1 1380# Delete image 1381unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1382 1383# ================= qemu-img serpent-128-xts-plain64-sha1 ================= 1384# Create image 1385qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 1386Formatting 'TEST_DIR/luks-serpent-128-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=serpent-128 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1 iter-time=10 1387 1388# Open dev 1389sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1 1390# Write test pattern 0xa7 1391sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1392qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1393wrote 10485760/10485760 bytes at offset 104857600 139410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1395 1396# Write test pattern 0x13 1397sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1398qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1399wrote 10485760/10485760 bytes at offset 3298534883328 140010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1401 1402# Close dev 1403sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1 1404# Read test pattern 0xa7 1405qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1406read 10485760/10485760 bytes at offset 104857600 140710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1408 1409# Read test pattern 0x13 1410qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1411read 10485760/10485760 bytes at offset 3298534883328 141210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1413 1414# Write test pattern 0x91 1415qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1416wrote 10485760/10485760 bytes at offset 104857600 141710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1418 1419# Write test pattern 0x5e 1420qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1421wrote 10485760/10485760 bytes at offset 3298534883328 142210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1423 1424# Open dev 1425sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1 1426# Read test pattern 0x91 1427sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1428qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1429read 10485760/10485760 bytes at offset 104857600 143010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1431 1432# Read test pattern 0x5e 1433sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1434qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1 1435read 10485760/10485760 bytes at offset 3298534883328 143610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1437 1438# Close dev 1439sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1 1440# Delete image 1441unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 1442 1443# ================= dm-crypt serpent-192-xts-plain64-sha1 ================= 1444# Create image 1445truncate TEST_DIR/luks-serpent-192-xts-plain64-sha1.img --size 4194304MB 1446# Format image 1447sudo cryptsetup -q -v luksFormat --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 1448# Open dev 1449sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1 1450# Write test pattern 0xa7 1451sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1452qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1453wrote 10485760/10485760 bytes at offset 104857600 145410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1455 1456# Write test pattern 0x13 1457sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1458qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1459wrote 10485760/10485760 bytes at offset 3298534883328 146010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1461 1462# Close dev 1463sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1 1464# Read test pattern 0xa7 1465qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1466read 10485760/10485760 bytes at offset 104857600 146710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1468 1469# Read test pattern 0x13 1470qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1471read 10485760/10485760 bytes at offset 3298534883328 147210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1473 1474# Write test pattern 0x91 1475qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1476wrote 10485760/10485760 bytes at offset 104857600 147710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1478 1479# Write test pattern 0x5e 1480qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1481wrote 10485760/10485760 bytes at offset 3298534883328 148210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1483 1484# Open dev 1485sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1 1486# Read test pattern 0x91 1487sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1488qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1489read 10485760/10485760 bytes at offset 104857600 149010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1491 1492# Read test pattern 0x5e 1493sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1494qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1495read 10485760/10485760 bytes at offset 3298534883328 149610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1497 1498# Close dev 1499sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1 1500# Delete image 1501unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1502 1503# ================= qemu-img serpent-192-xts-plain64-sha1 ================= 1504# Create image 1505qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,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 1506Formatting 'TEST_DIR/luks-serpent-192-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=serpent-192 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1 iter-time=10 1507 1508# Open dev 1509sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1 1510# Write test pattern 0xa7 1511sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1512qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1513wrote 10485760/10485760 bytes at offset 104857600 151410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1515 1516# Write test pattern 0x13 1517sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1518qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1519wrote 10485760/10485760 bytes at offset 3298534883328 152010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1521 1522# Close dev 1523sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1 1524# Read test pattern 0xa7 1525qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1526read 10485760/10485760 bytes at offset 104857600 152710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1528 1529# Read test pattern 0x13 1530qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1531read 10485760/10485760 bytes at offset 3298534883328 153210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1533 1534# Write test pattern 0x91 1535qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1536wrote 10485760/10485760 bytes at offset 104857600 153710 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1538 1539# Write test pattern 0x5e 1540qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1541wrote 10485760/10485760 bytes at offset 3298534883328 154210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1543 1544# Open dev 1545sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1 1546# Read test pattern 0x91 1547sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1548qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1549read 10485760/10485760 bytes at offset 104857600 155010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1551 1552# Read test pattern 0x5e 1553sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1554qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1 1555read 10485760/10485760 bytes at offset 3298534883328 155610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1557 1558# Close dev 1559sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1 1560# Delete image 1561unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 1562 1563Skipping cast6-128-xts-plain64-sha1 in blacklist 1564Skipping cast6-192-xts-plain64-sha1 in blacklist 1565# ================= dm-crypt aes-256-xts-plain64-sha224 ================= 1566# Create image 1567truncate TEST_DIR/luks-aes-256-xts-plain64-sha224.img --size 4194304MB 1568# Format image 1569sudo 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 1570# Open dev 1571sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224 1572# Write test pattern 0xa7 1573sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1574qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1575wrote 10485760/10485760 bytes at offset 104857600 157610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1577 1578# Write test pattern 0x13 1579sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1580qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1581wrote 10485760/10485760 bytes at offset 3298534883328 158210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1583 1584# Close dev 1585sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224 1586# Read test pattern 0xa7 1587qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1588read 10485760/10485760 bytes at offset 104857600 158910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1590 1591# Read test pattern 0x13 1592qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1593read 10485760/10485760 bytes at offset 3298534883328 159410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1595 1596# Write test pattern 0x91 1597qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1598wrote 10485760/10485760 bytes at offset 104857600 159910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1600 1601# Write test pattern 0x5e 1602qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1603wrote 10485760/10485760 bytes at offset 3298534883328 160410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1605 1606# Open dev 1607sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224 1608# Read test pattern 0x91 1609sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1610qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1611read 10485760/10485760 bytes at offset 104857600 161210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1613 1614# Read test pattern 0x5e 1615sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1616qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1617read 10485760/10485760 bytes at offset 3298534883328 161810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1619 1620# Close dev 1621sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224 1622# Delete image 1623unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1624 1625# ================= qemu-img aes-256-xts-plain64-sha224 ================= 1626# Create image 1627qemu-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 1628Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha224.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha224 iter-time=10 1629 1630# Open dev 1631sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224 1632# Write test pattern 0xa7 1633sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1634qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1635wrote 10485760/10485760 bytes at offset 104857600 163610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1637 1638# Write test pattern 0x13 1639sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1640qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1641wrote 10485760/10485760 bytes at offset 3298534883328 164210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1643 1644# Close dev 1645sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224 1646# Read test pattern 0xa7 1647qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1648read 10485760/10485760 bytes at offset 104857600 164910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1650 1651# Read test pattern 0x13 1652qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1653read 10485760/10485760 bytes at offset 3298534883328 165410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1655 1656# Write test pattern 0x91 1657qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1658wrote 10485760/10485760 bytes at offset 104857600 165910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1660 1661# Write test pattern 0x5e 1662qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1663wrote 10485760/10485760 bytes at offset 3298534883328 166410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1665 1666# Open dev 1667sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224 1668# Read test pattern 0x91 1669sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1670qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1671read 10485760/10485760 bytes at offset 104857600 167210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1673 1674# Read test pattern 0x5e 1675sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1676qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224 1677read 10485760/10485760 bytes at offset 3298534883328 167810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1679 1680# Close dev 1681sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224 1682# Delete image 1683unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img 1684 1685# ================= dm-crypt aes-256-xts-plain64-sha256 ================= 1686# Create image 1687truncate TEST_DIR/luks-aes-256-xts-plain64-sha256.img --size 4194304MB 1688# Format image 1689sudo 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 1690# Open dev 1691sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256 1692# Write test pattern 0xa7 1693sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1694qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1695wrote 10485760/10485760 bytes at offset 104857600 169610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1697 1698# Write test pattern 0x13 1699sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1700qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1701wrote 10485760/10485760 bytes at offset 3298534883328 170210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1703 1704# Close dev 1705sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256 1706# Read test pattern 0xa7 1707qemu-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 1708read 10485760/10485760 bytes at offset 104857600 170910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1710 1711# Read test pattern 0x13 1712qemu-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 1713read 10485760/10485760 bytes at offset 3298534883328 171410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1715 1716# Write test pattern 0x91 1717qemu-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 1718wrote 10485760/10485760 bytes at offset 104857600 171910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1720 1721# Write test pattern 0x5e 1722qemu-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 1723wrote 10485760/10485760 bytes at offset 3298534883328 172410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1725 1726# Open dev 1727sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256 1728# Read test pattern 0x91 1729sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1730qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1731read 10485760/10485760 bytes at offset 104857600 173210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1733 1734# Read test pattern 0x5e 1735sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1736qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1737read 10485760/10485760 bytes at offset 3298534883328 173810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1739 1740# Close dev 1741sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256 1742# Delete image 1743unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img 1744 1745# ================= qemu-img aes-256-xts-plain64-sha256 ================= 1746# Create image 1747qemu-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 1748Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha256.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha256 iter-time=10 1749 1750# Open dev 1751sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256 1752# Write test pattern 0xa7 1753sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1754qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1755wrote 10485760/10485760 bytes at offset 104857600 175610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1757 1758# Write test pattern 0x13 1759sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1760qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1761wrote 10485760/10485760 bytes at offset 3298534883328 176210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1763 1764# Close dev 1765sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256 1766# Read test pattern 0xa7 1767qemu-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 1768read 10485760/10485760 bytes at offset 104857600 176910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1770 1771# Read test pattern 0x13 1772qemu-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 1773read 10485760/10485760 bytes at offset 3298534883328 177410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1775 1776# Write test pattern 0x91 1777qemu-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 1778wrote 10485760/10485760 bytes at offset 104857600 177910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1780 1781# Write test pattern 0x5e 1782qemu-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 1783wrote 10485760/10485760 bytes at offset 3298534883328 178410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1785 1786# Open dev 1787sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256 1788# Read test pattern 0x91 1789sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1790qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1791read 10485760/10485760 bytes at offset 104857600 179210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1793 1794# Read test pattern 0x5e 1795sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1796qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256 1797read 10485760/10485760 bytes at offset 3298534883328 179810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1799 1800# Close dev 1801sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256 1802# Delete image 1803unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img 1804 1805# ================= dm-crypt aes-256-xts-plain64-sha384 ================= 1806# Create image 1807truncate TEST_DIR/luks-aes-256-xts-plain64-sha384.img --size 4194304MB 1808# Format image 1809sudo 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 1810# Open dev 1811sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384 1812# Write test pattern 0xa7 1813sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1814qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1815wrote 10485760/10485760 bytes at offset 104857600 181610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1817 1818# Write test pattern 0x13 1819sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1820qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1821wrote 10485760/10485760 bytes at offset 3298534883328 182210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1823 1824# Close dev 1825sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384 1826# Read test pattern 0xa7 1827qemu-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 1828read 10485760/10485760 bytes at offset 104857600 182910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1830 1831# Read test pattern 0x13 1832qemu-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 1833read 10485760/10485760 bytes at offset 3298534883328 183410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1835 1836# Write test pattern 0x91 1837qemu-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 1838wrote 10485760/10485760 bytes at offset 104857600 183910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1840 1841# Write test pattern 0x5e 1842qemu-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 1843wrote 10485760/10485760 bytes at offset 3298534883328 184410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1845 1846# Open dev 1847sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384 1848# Read test pattern 0x91 1849sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1850qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1851read 10485760/10485760 bytes at offset 104857600 185210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1853 1854# Read test pattern 0x5e 1855sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1856qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1857read 10485760/10485760 bytes at offset 3298534883328 185810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1859 1860# Close dev 1861sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384 1862# Delete image 1863unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img 1864 1865# ================= qemu-img aes-256-xts-plain64-sha384 ================= 1866# Create image 1867qemu-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 1868Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha384.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha384 iter-time=10 1869 1870# Open dev 1871sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384 1872# Write test pattern 0xa7 1873sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1874qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1875wrote 10485760/10485760 bytes at offset 104857600 187610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1877 1878# Write test pattern 0x13 1879sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1880qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1881wrote 10485760/10485760 bytes at offset 3298534883328 188210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1883 1884# Close dev 1885sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384 1886# Read test pattern 0xa7 1887qemu-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 1888read 10485760/10485760 bytes at offset 104857600 188910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1890 1891# Read test pattern 0x13 1892qemu-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 1893read 10485760/10485760 bytes at offset 3298534883328 189410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1895 1896# Write test pattern 0x91 1897qemu-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 1898wrote 10485760/10485760 bytes at offset 104857600 189910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1900 1901# Write test pattern 0x5e 1902qemu-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 1903wrote 10485760/10485760 bytes at offset 3298534883328 190410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1905 1906# Open dev 1907sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384 1908# Read test pattern 0x91 1909sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1910qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1911read 10485760/10485760 bytes at offset 104857600 191210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1913 1914# Read test pattern 0x5e 1915sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1916qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384 1917read 10485760/10485760 bytes at offset 3298534883328 191810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1919 1920# Close dev 1921sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384 1922# Delete image 1923unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img 1924 1925# ================= dm-crypt aes-256-xts-plain64-sha512 ================= 1926# Create image 1927truncate TEST_DIR/luks-aes-256-xts-plain64-sha512.img --size 4194304MB 1928# Format image 1929sudo 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 1930# Open dev 1931sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512 1932# Write test pattern 0xa7 1933sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1934qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1935wrote 10485760/10485760 bytes at offset 104857600 193610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1937 1938# Write test pattern 0x13 1939sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1940qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1941wrote 10485760/10485760 bytes at offset 3298534883328 194210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1943 1944# Close dev 1945sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512 1946# Read test pattern 0xa7 1947qemu-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 1948read 10485760/10485760 bytes at offset 104857600 194910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1950 1951# Read test pattern 0x13 1952qemu-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 1953read 10485760/10485760 bytes at offset 3298534883328 195410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1955 1956# Write test pattern 0x91 1957qemu-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 1958wrote 10485760/10485760 bytes at offset 104857600 195910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1960 1961# Write test pattern 0x5e 1962qemu-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 1963wrote 10485760/10485760 bytes at offset 3298534883328 196410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1965 1966# Open dev 1967sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512 1968# Read test pattern 0x91 1969sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1970qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1971read 10485760/10485760 bytes at offset 104857600 197210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1973 1974# Read test pattern 0x5e 1975sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1976qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1977read 10485760/10485760 bytes at offset 3298534883328 197810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1979 1980# Close dev 1981sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512 1982# Delete image 1983unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img 1984 1985# ================= qemu-img aes-256-xts-plain64-sha512 ================= 1986# Create image 1987qemu-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 1988Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha512.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha512 iter-time=10 1989 1990# Open dev 1991sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512 1992# Write test pattern 0xa7 1993sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1994qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 1995wrote 10485760/10485760 bytes at offset 104857600 199610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1997 1998# Write test pattern 0x13 1999sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 2000qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 2001wrote 10485760/10485760 bytes at offset 3298534883328 200210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2003 2004# Close dev 2005sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512 2006# Read test pattern 0xa7 2007qemu-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 2008read 10485760/10485760 bytes at offset 104857600 200910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2010 2011# Read test pattern 0x13 2012qemu-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 2013read 10485760/10485760 bytes at offset 3298534883328 201410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2015 2016# Write test pattern 0x91 2017qemu-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 2018wrote 10485760/10485760 bytes at offset 104857600 201910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2020 2021# Write test pattern 0x5e 2022qemu-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 2023wrote 10485760/10485760 bytes at offset 3298534883328 202410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2025 2026# Open dev 2027sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512 2028# Read test pattern 0x91 2029sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 2030qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 2031read 10485760/10485760 bytes at offset 104857600 203210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2033 2034# Read test pattern 0x5e 2035sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 2036qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512 2037read 10485760/10485760 bytes at offset 3298534883328 203810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2039 2040# Close dev 2041sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512 2042# Delete image 2043unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img 2044 2045# ================= dm-crypt aes-256-xts-plain64-ripemd160 ================= 2046# Create image 2047truncate TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img --size 4194304MB 2048# Format image 2049sudo 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 2050# Open dev 2051sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160 2052# Write test pattern 0xa7 2053sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2054qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2055wrote 10485760/10485760 bytes at offset 104857600 205610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2057 2058# Write test pattern 0x13 2059sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2060qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2061wrote 10485760/10485760 bytes at offset 3298534883328 206210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2063 2064# Close dev 2065sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160 2066# Read test pattern 0xa7 2067qemu-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 2068read 10485760/10485760 bytes at offset 104857600 206910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2070 2071# Read test pattern 0x13 2072qemu-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 2073read 10485760/10485760 bytes at offset 3298534883328 207410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2075 2076# Write test pattern 0x91 2077qemu-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 2078wrote 10485760/10485760 bytes at offset 104857600 207910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2080 2081# Write test pattern 0x5e 2082qemu-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 2083wrote 10485760/10485760 bytes at offset 3298534883328 208410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2085 2086# Open dev 2087sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160 2088# Read test pattern 0x91 2089sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2090qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2091read 10485760/10485760 bytes at offset 104857600 209210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2093 2094# Read test pattern 0x5e 2095sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2096qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2097read 10485760/10485760 bytes at offset 3298534883328 209810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2099 2100# Close dev 2101sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160 2102# Delete image 2103unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img 2104 2105# ================= qemu-img aes-256-xts-plain64-ripemd160 ================= 2106# Create image 2107qemu-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 2108Formatting 'TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=ripemd160 iter-time=10 2109 2110# Open dev 2111sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160 2112# Write test pattern 0xa7 2113sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2114qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2115wrote 10485760/10485760 bytes at offset 104857600 211610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2117 2118# Write test pattern 0x13 2119sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2120qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2121wrote 10485760/10485760 bytes at offset 3298534883328 212210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2123 2124# Close dev 2125sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160 2126# Read test pattern 0xa7 2127qemu-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 2128read 10485760/10485760 bytes at offset 104857600 212910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2130 2131# Read test pattern 0x13 2132qemu-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 2133read 10485760/10485760 bytes at offset 3298534883328 213410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2135 2136# Write test pattern 0x91 2137qemu-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 2138wrote 10485760/10485760 bytes at offset 104857600 213910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2140 2141# Write test pattern 0x5e 2142qemu-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 2143wrote 10485760/10485760 bytes at offset 3298534883328 214410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2145 2146# Open dev 2147sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160 2148# Read test pattern 0x91 2149sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2150qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2151read 10485760/10485760 bytes at offset 104857600 215210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2153 2154# Read test pattern 0x5e 2155sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2156qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160 2157read 10485760/10485760 bytes at offset 3298534883328 215810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2159 2160# Close dev 2161sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160 2162# Delete image 2163unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img 2164 2165# ================= dm-crypt aes-256-xts-plain-sha1-pwslot3 ================= 2166# Create image 2167truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img --size 4194304MB 2168# Format image 2169sudo 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 2170# Open dev 2171sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3 2172# Write test pattern 0xa7 2173sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3 2174qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3 2175wrote 10485760/10485760 bytes at offset 104857600 217610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2177 2178# Write test pattern 0x13 2179sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3 2180qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3 2181wrote 10485760/10485760 bytes at offset 3298534883328 218210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2183 2184# Close dev 2185sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3 2186# Read test pattern 0xa7 2187qemu-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 2188read 10485760/10485760 bytes at offset 104857600 218910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2190 2191# Read test pattern 0x13 2192qemu-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 2193read 10485760/10485760 bytes at offset 3298534883328 219410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2195 2196# Write test pattern 0x91 2197qemu-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 2198wrote 10485760/10485760 bytes at offset 104857600 219910 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2200 2201# Write test pattern 0x5e 2202qemu-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 2203wrote 10485760/10485760 bytes at offset 3298534883328 220410 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2205 2206# Open dev 2207sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3 2208# Read test pattern 0x91 2209sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3 2210qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3 2211read 10485760/10485760 bytes at offset 104857600 221210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2213 2214# Read test pattern 0x5e 2215sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3 2216qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3 2217read 10485760/10485760 bytes at offset 3298534883328 221810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2219 2220# Close dev 2221sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3 2222# Delete image 2223unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img 2224 2225# ================= dm-crypt aes-256-xts-plain-sha1-pwallslots ================= 2226# Create image 2227truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --size 4194304MB 2228# Format image 2229sudo 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 2230# Add password slot 1 2231sudo 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 2232# Add password slot 2 2233sudo 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 2234# Add password slot 3 2235sudo 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 2236# Add password slot 4 2237sudo 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 2238# Add password slot 5 2239sudo 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 2240# Add password slot 6 2241sudo 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 2242# Add password slot 7 2243sudo 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 2244# Open dev 2245sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots 2246# Write test pattern 0xa7 2247sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2248qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2249wrote 10485760/10485760 bytes at offset 104857600 225010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2251 2252# Write test pattern 0x13 2253sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2254qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2255wrote 10485760/10485760 bytes at offset 3298534883328 225610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2257 2258# Close dev 2259sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots 2260# Read test pattern 0xa7 2261qemu-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 2262read 10485760/10485760 bytes at offset 104857600 226310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2264 2265# Read test pattern 0x13 2266qemu-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 2267read 10485760/10485760 bytes at offset 3298534883328 226810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2269 2270# Write test pattern 0x91 2271qemu-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 2272wrote 10485760/10485760 bytes at offset 104857600 227310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2274 2275# Write test pattern 0x5e 2276qemu-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 2277wrote 10485760/10485760 bytes at offset 3298534883328 227810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2279 2280# Open dev 2281sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots 2282# Read test pattern 0x91 2283sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2284qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2285read 10485760/10485760 bytes at offset 104857600 228610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2287 2288# Read test pattern 0x5e 2289sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2290qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2291read 10485760/10485760 bytes at offset 3298534883328 229210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2293 2294# Close dev 2295sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots 2296# Delete image 2297unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img 2298 2299# ================= qemu-img aes-256-xts-plain-sha1-pwallslots ================= 2300# Create image 2301qemu-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 2302Formatting 'TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain hash-alg=sha1 iter-time=10 2303 2304# Open dev 2305sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots 2306# Write test pattern 0xa7 2307sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2308qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2309wrote 10485760/10485760 bytes at offset 104857600 231010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2311 2312# Write test pattern 0x13 2313sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2314qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2315wrote 10485760/10485760 bytes at offset 3298534883328 231610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2317 2318# Close dev 2319sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots 2320# Read test pattern 0xa7 2321qemu-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 2322read 10485760/10485760 bytes at offset 104857600 232310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2324 2325# Read test pattern 0x13 2326qemu-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 2327read 10485760/10485760 bytes at offset 3298534883328 232810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2329 2330# Write test pattern 0x91 2331qemu-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 2332wrote 10485760/10485760 bytes at offset 104857600 233310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2334 2335# Write test pattern 0x5e 2336qemu-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 2337wrote 10485760/10485760 bytes at offset 3298534883328 233810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2339 2340# Open dev 2341sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots 2342# Read test pattern 0x91 2343sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2344qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2345read 10485760/10485760 bytes at offset 104857600 234610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2347 2348# Read test pattern 0x5e 2349sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2350qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots 2351read 10485760/10485760 bytes at offset 3298534883328 235210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2353 2354# Close dev 2355sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots 2356# Delete image 2357unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img 2358 2359# ================= dm-crypt aes-256-cbc-essiv-auto-sha1 ================= 2360# Create image 2361truncate TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img --size 4194304MB 2362# Format image 2363sudo 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 2364# Open dev 2365sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1 2366# Write test pattern 0xa7 2367sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2368qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2369wrote 10485760/10485760 bytes at offset 104857600 237010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2371 2372# Write test pattern 0x13 2373sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2374qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2375wrote 10485760/10485760 bytes at offset 3298534883328 237610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2377 2378# Close dev 2379sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1 2380# Read test pattern 0xa7 2381qemu-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 2382read 10485760/10485760 bytes at offset 104857600 238310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2384 2385# Read test pattern 0x13 2386qemu-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 2387read 10485760/10485760 bytes at offset 3298534883328 238810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2389 2390# Write test pattern 0x91 2391qemu-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 2392wrote 10485760/10485760 bytes at offset 104857600 239310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2394 2395# Write test pattern 0x5e 2396qemu-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 2397wrote 10485760/10485760 bytes at offset 3298534883328 239810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2399 2400# Open dev 2401sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1 2402# Read test pattern 0x91 2403sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2404qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2405read 10485760/10485760 bytes at offset 104857600 240610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2407 2408# Read test pattern 0x5e 2409sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2410qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2411read 10485760/10485760 bytes at offset 3298534883328 241210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2413 2414# Close dev 2415sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1 2416# Delete image 2417unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img 2418 2419# ================= qemu-img aes-256-cbc-essiv-auto-sha1 ================= 2420# Create image 2421qemu-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 2422Formatting 'TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=essiv hash-alg=sha1 iter-time=10 2423 2424# Open dev 2425sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1 2426# Write test pattern 0xa7 2427sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2428qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2429wrote 10485760/10485760 bytes at offset 104857600 243010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2431 2432# Write test pattern 0x13 2433sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2434qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2435wrote 10485760/10485760 bytes at offset 3298534883328 243610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2437 2438# Close dev 2439sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1 2440# Read test pattern 0xa7 2441qemu-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 2442read 10485760/10485760 bytes at offset 104857600 244310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2444 2445# Read test pattern 0x13 2446qemu-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 2447read 10485760/10485760 bytes at offset 3298534883328 244810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2449 2450# Write test pattern 0x91 2451qemu-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 2452wrote 10485760/10485760 bytes at offset 104857600 245310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2454 2455# Write test pattern 0x5e 2456qemu-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 2457wrote 10485760/10485760 bytes at offset 3298534883328 245810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2459 2460# Open dev 2461sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1 2462# Read test pattern 0x91 2463sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2464qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2465read 10485760/10485760 bytes at offset 104857600 246610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2467 2468# Read test pattern 0x5e 2469sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2470qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1 2471read 10485760/10485760 bytes at offset 3298534883328 247210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2473 2474# Close dev 2475sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1 2476# Delete image 2477unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img 2478 2479# ================= dm-crypt aes-256-cbc-plain64-sha256-sha1 ================= 2480# Create image 2481truncate TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img --size 4194304MB 2482# Format image 2483sudo 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 2484# Open dev 2485sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1 2486# Write test pattern 0xa7 2487sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2488qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2489wrote 10485760/10485760 bytes at offset 104857600 249010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2491 2492# Write test pattern 0x13 2493sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2494qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2495wrote 10485760/10485760 bytes at offset 3298534883328 249610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2497 2498# Close dev 2499sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1 2500# Read test pattern 0xa7 2501qemu-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 2502read 10485760/10485760 bytes at offset 104857600 250310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2504 2505# Read test pattern 0x13 2506qemu-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 2507read 10485760/10485760 bytes at offset 3298534883328 250810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2509 2510# Write test pattern 0x91 2511qemu-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 2512wrote 10485760/10485760 bytes at offset 104857600 251310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2514 2515# Write test pattern 0x5e 2516qemu-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 2517wrote 10485760/10485760 bytes at offset 3298534883328 251810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2519 2520# Open dev 2521sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1 2522# Read test pattern 0x91 2523sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2524qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2525read 10485760/10485760 bytes at offset 104857600 252610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2527 2528# Read test pattern 0x5e 2529sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2530qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2531read 10485760/10485760 bytes at offset 3298534883328 253210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2533 2534# Close dev 2535sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1 2536# Delete image 2537unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img 2538 2539# ================= qemu-img aes-256-cbc-plain64-sha256-sha1 ================= 2540# Create image 2541qemu-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 2542Formatting 'TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=plain64 ivgen-hash-alg=sha256 hash-alg=sha1 iter-time=10 2543 2544# Open dev 2545sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1 2546# Write test pattern 0xa7 2547sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2548qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2549wrote 10485760/10485760 bytes at offset 104857600 255010 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2551 2552# Write test pattern 0x13 2553sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2554qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2555wrote 10485760/10485760 bytes at offset 3298534883328 255610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2557 2558# Close dev 2559sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1 2560# Read test pattern 0xa7 2561qemu-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 2562read 10485760/10485760 bytes at offset 104857600 256310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2564 2565# Read test pattern 0x13 2566qemu-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 2567read 10485760/10485760 bytes at offset 3298534883328 256810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2569 2570# Write test pattern 0x91 2571qemu-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 2572wrote 10485760/10485760 bytes at offset 104857600 257310 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2574 2575# Write test pattern 0x5e 2576qemu-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 2577wrote 10485760/10485760 bytes at offset 3298534883328 257810 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2579 2580# Open dev 2581sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1 2582# Read test pattern 0x91 2583sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2584qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2585read 10485760/10485760 bytes at offset 104857600 258610 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2587 2588# Read test pattern 0x5e 2589sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2590qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1 2591read 10485760/10485760 bytes at offset 3298534883328 259210 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2593 2594# Close dev 2595sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1 2596# Delete image 2597unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img 2598 2599