2016-03-21 17:11:52 +03:00
|
|
|
# ================= dm-crypt aes-256-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-256-xts-plain64-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt twofish-256-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-twofish-256-xts-plain64-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher twofish-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img twofish-256-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=twofish-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-twofish-256-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-twofish-256-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt serpent-256-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-serpent-256-xts-plain64-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher serpent-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img serpent-256-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=serpent-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-256-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-serpent-256-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt cast5-128-cbc-plain64-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher cast5-cbc-plain64 --key-size 128 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img cast5-128-cbc-plain64-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=cast5-128,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
|
|
|
|
|
|
|
Skipping cast6-256-xts-plain64-sha1 in blacklist
|
|
|
|
# ================= dm-crypt aes-256-cbc-plain-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-plain --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-cbc-plain-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-plain-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-plain-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt aes-256-cbc-plain64-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-cbc-plain64-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-cbc-plain64-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt aes-256-cbc-essiv-sha256-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-essiv:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-cbc-essiv-sha256-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=essiv,hash-alg=sha1,ivgen-hash-alg=sha256 TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt aes-256-xts-essiv-sha256-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-essiv:sha256 --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-xts-essiv-sha256-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=essiv,hash-alg=sha1,ivgen-hash-alg=sha256 TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt aes-128-xts-plain64-sha256-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-128-xts-plain64-sha256-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt aes-192-xts-plain64-sha256-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 384 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-192-xts-plain64-sha256-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-192,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt twofish-128-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-twofish-128-xts-plain64-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher twofish-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img twofish-128-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=twofish-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
Skipping twofish-192-xts-plain64-sha1 in blacklist
|
|
|
|
# ================= dm-crypt serpent-128-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher serpent-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img serpent-128-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=serpent-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-128-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-serpent-128-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt serpent-192-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-serpent-192-xts-plain64-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher serpent-xts-plain64 --key-size 384 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img serpent-192-xts-plain64-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=serpent-192,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
|
|
|
|
|
|
|
Skipping cast6-128-xts-plain64-sha1 in blacklist
|
|
|
|
Skipping cast6-192-xts-plain64-sha1 in blacklist
|
2017-06-26 15:35:09 +03:00
|
|
|
# ================= dm-crypt aes-256-xts-plain64-sha224 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha224.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha224 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
2017-06-26 15:35:09 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-xts-plain64-sha224 =================
|
|
|
|
# Create image
|
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha224 TEST_DIR/luks-aes-256-xts-plain64-sha224.img 4194304M
|
|
|
|
Formatting '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
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha224
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha224.img
|
|
|
|
|
2016-03-21 17:11:52 +03:00
|
|
|
# ================= dm-crypt aes-256-xts-plain64-sha256 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha256.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha256 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-xts-plain64-sha256 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha256 TEST_DIR/luks-aes-256-xts-plain64-sha256.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha256
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha256.img
|
|
|
|
|
2017-06-26 15:35:09 +03:00
|
|
|
# ================= dm-crypt aes-256-xts-plain64-sha384 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha384.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha384 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
2017-06-26 15:35:09 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-xts-plain64-sha384 =================
|
|
|
|
# Create image
|
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha384 TEST_DIR/luks-aes-256-xts-plain64-sha384.img 4194304M
|
|
|
|
Formatting '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
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha384
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha384.img
|
|
|
|
|
|
|
|
# ================= dm-crypt aes-256-xts-plain64-sha512 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha512.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha512 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
2017-06-26 15:35:09 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-xts-plain64-sha512 =================
|
|
|
|
# Create image
|
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha512 TEST_DIR/luks-aes-256-xts-plain64-sha512.img 4194304M
|
|
|
|
Formatting '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
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha512
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-sha512.img
|
|
|
|
|
|
|
|
# ================= dm-crypt aes-256-xts-plain64-ripemd160 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash ripemd160 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
2017-06-26 15:35:09 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-xts-plain64-ripemd160 =================
|
|
|
|
# Create image
|
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=ripemd160 TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img 4194304M
|
|
|
|
Formatting '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
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2017-06-26 15:35:09 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
2017-06-26 15:35:09 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-ripemd160
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img
|
|
|
|
|
2016-03-21 17:11:52 +03:00
|
|
|
# ================= dm-crypt aes-256-xts-plain-sha1-pwslot3 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain --key-size 512 --hash sha1 --key-slot 3 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=c2xvdDM=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=c2xvdDM=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=c2xvdDM=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=c2xvdDM=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img
|
|
|
|
|
|
|
|
# ================= dm-crypt aes-256-xts-plain-sha1-pwallslots =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-xts-plain --key-size 512 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
2016-03-21 17:11:52 +03:00
|
|
|
# Add password slot 1
|
2017-06-26 15:35:08 +03:00
|
|
|
sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 1 --key-file - --iter-time 10 TEST_DIR/passwd.txt
|
2016-03-21 17:11:52 +03:00
|
|
|
# Add password slot 2
|
2017-06-26 15:35:08 +03:00
|
|
|
sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 2 --key-file - --iter-time 10 TEST_DIR/passwd.txt
|
2016-03-21 17:11:52 +03:00
|
|
|
# Add password slot 3
|
2017-06-26 15:35:08 +03:00
|
|
|
sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 3 --key-file - --iter-time 10 TEST_DIR/passwd.txt
|
2016-03-21 17:11:52 +03:00
|
|
|
# Add password slot 4
|
2017-06-26 15:35:08 +03:00
|
|
|
sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 4 --key-file - --iter-time 10 TEST_DIR/passwd.txt
|
2016-03-21 17:11:52 +03:00
|
|
|
# Add password slot 5
|
2017-06-26 15:35:08 +03:00
|
|
|
sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 5 --key-file - --iter-time 10 TEST_DIR/passwd.txt
|
2016-03-21 17:11:52 +03:00
|
|
|
# Add password slot 6
|
2017-06-26 15:35:08 +03:00
|
|
|
sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 6 --key-file - --iter-time 10 TEST_DIR/passwd.txt
|
2016-03-21 17:11:52 +03:00
|
|
|
# Add password slot 7
|
2017-06-26 15:35:08 +03:00
|
|
|
sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img --key-slot 7 --key-file - --iter-time 10 TEST_DIR/passwd.txt
|
2016-03-21 17:11:52 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-xts-plain-sha1-pwallslots =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=c2xvdDE=,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain,hash-alg=sha1 TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img 4194304M
|
|
|
|
Formatting '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
|
2016-03-21 17:11:52 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2016-03-21 17:11:52 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=c2xvdDE=,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
2016-03-21 17:11:52 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img
|
|
|
|
|
2016-05-20 19:43:44 +03:00
|
|
|
# ================= dm-crypt aes-256-cbc-essiv-auto-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-essiv:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
2016-05-20 19:43:44 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-cbc-essiv-auto-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=essiv,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-05-20 19:43:44 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img
|
|
|
|
|
|
|
|
# ================= dm-crypt aes-256-cbc-plain64-sha256-sha1 =================
|
|
|
|
# Create image
|
|
|
|
truncate TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img --size 4194304MB
|
|
|
|
# Format image
|
2019-09-27 13:11:55 +03:00
|
|
|
sudo cryptsetup -q -v luksFormat --type luks1 --cipher aes-cbc-plain64:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - --iter-time 10 TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
2016-05-20 19:43:44 +03:00
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
|
|
|
|
# ================= qemu-img aes-256-cbc-plain64-sha256-sha1 =================
|
|
|
|
# Create image
|
2017-06-26 15:35:08 +03:00
|
|
|
qemu-img create -f luks --object secret,id=sec0,data=MTIzNDU2,format=base64 -o key-secret=sec0,iter-time=10,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1,ivgen-hash-alg=sha256 TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img 4194304M
|
|
|
|
Formatting '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
|
2016-05-20 19:43:44 +03:00
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
|
|
# Write test pattern 0xa7
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x13
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0xa7
|
|
|
|
qemu-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x13
|
|
|
|
qemu-io -c read -P 0x13 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x91
|
|
|
|
qemu-io -c write -P 0x91 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Write test pattern 0x5e
|
|
|
|
qemu-io -c write -P 0x5e 3145728M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driver=luks,key-secret=sec0,file.filename=TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
wrote 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Open dev
|
|
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
|
|
# Read test pattern 0x91
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
read 10485760/10485760 bytes at offset 104857600
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Read test pattern 0x5e
|
2017-06-26 15:35:10 +03:00
|
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2018-07-13 10:05:39 +03:00
|
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
2016-05-20 19:43:44 +03:00
|
|
|
read 10485760/10485760 bytes at offset 3298534883328
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
# Close dev
|
|
|
|
sudo cryptsetup -q -v luksClose qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
|
|
# Delete image
|
|
|
|
unlink TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img
|
|
|
|
|