5689d4bda6
Let's use 'unsupported_configs' and 'tested_configs' here instead of non-inclusive words. Message-ID: <20231122084000.809696-1-thuth@redhat.com> Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
2557 lines
147 KiB
Plaintext
2557 lines
147 KiB
Plaintext
# ================= dm-crypt aes-256-xts-plain64-sha1 =================
|
|
# Create image
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha1.img --size 4194304MB
|
|
# Format image
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
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 (config not supported)
|
|
# ================= dm-crypt aes-256-cbc-plain-sha1 =================
|
|
# Create image
|
|
truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB
|
|
# Format image
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
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 (config not supported)
|
|
# ================= dm-crypt serpent-128-xts-plain64-sha1 =================
|
|
# Create image
|
|
truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB
|
|
# Format image
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
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 (config not supported)
|
|
Skipping cast6-192-xts-plain64-sha1 (config not supported)
|
|
# ================= dm-crypt aes-256-xts-plain64-sha224 =================
|
|
# Create image
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha224.img --size 4194304MB
|
|
# Format image
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
|
|
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
|
|
|
|
# ================= dm-crypt aes-256-xts-plain64-sha256 =================
|
|
# Create image
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha256.img --size 4194304MB
|
|
# Format image
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
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
|
|
|
|
# ================= dm-crypt aes-256-xts-plain64-sha384 =================
|
|
# Create image
|
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha384.img --size 4194304MB
|
|
# Format image
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
|
|
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
|
|
|
|
# ================= 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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
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
|
|
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
|
|
# Add password slot 1
|
|
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
|
|
# Add password slot 2
|
|
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
|
|
# Add password slot 3
|
|
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
|
|
# Add password slot 4
|
|
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
|
|
# Add password slot 5
|
|
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
|
|
# Add password slot 6
|
|
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
|
|
# Add password slot 7
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
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
|
|
|
|
# ================= 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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
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
|
|
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
|
|
# 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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
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
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
|
|
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
|
|
|