1881 lines
104 KiB
Plaintext
1881 lines
104 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 --cipher aes-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-256-xts-plain64-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher twofish-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=twofish-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-twofish-256-xts-plain64-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-twofish-256-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=twofish-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher serpent-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=serpent-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-256-xts-plain64-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-serpent-256-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=serpent-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher cast5-cbc-plain64 --key-size 128 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=cast5-128,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=cast5-128 cipher-mode=cbc ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 in blacklist
|
|
# ================= dm-crypt aes-256-cbc-plain-sha1 =================
|
|
# Create image
|
|
truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB
|
|
# Format image
|
|
sudo cryptsetup -q -v luksFormat --cipher aes-cbc-plain --key-size 256 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-plain-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-aes-256-cbc-plain-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=plain hash-alg=sha1
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher aes-cbc-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-256-cbc-plain64-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-aes-256-cbc-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher aes-cbc-essiv:sha256 --key-size 256 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=aes-256,cipher-mode=cbc,ivgen-alg=essiv,hash-alg=sha1,ivgen-hash-alg=sha256 TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=cbc ivgen-alg=essiv ivgen-hash-alg=sha256 hash-alg=sha1
|
|
|
|
# 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher aes-xts-essiv:sha256 --key-size 512 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=essiv,hash-alg=sha1,ivgen-hash-alg=sha256 TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=essiv ivgen-hash-alg=sha256 hash-alg=sha1
|
|
|
|
# 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher aes-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=aes-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-128 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher aes-xts-plain64 --key-size 384 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=aes-192,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-192 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher twofish-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=twofish-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-twofish-128-xts-plain64-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-twofish-128-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=twofish-128 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 in blacklist
|
|
# ================= dm-crypt serpent-128-xts-plain64-sha1 =================
|
|
# Create image
|
|
truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB
|
|
# Format image
|
|
sudo cryptsetup -q -v luksFormat --cipher serpent-xts-plain64 --key-size 256 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=serpent-128,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-128-xts-plain64-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-serpent-128-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=serpent-128 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher serpent-xts-plain64 --key-size 384 --hash sha1 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=serpent-192,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha1 TEST_DIR/luks-serpent-192-xts-plain64-sha1.img 4194304M
|
|
Formatting 'TEST_DIR/luks-serpent-192-xts-plain64-sha1.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=serpent-192 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha1
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 in blacklist
|
|
Skipping cast6-192-xts-plain64-sha1 in blacklist
|
|
# ================= 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 --cipher aes-xts-plain64 --key-size 512 --hash sha256 --key-slot 0 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain64,hash-alg=sha256 TEST_DIR/luks-aes-256-xts-plain64-sha256.img 4194304M
|
|
Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha256.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain64 hash-alg=sha256
|
|
|
|
# Open dev
|
|
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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
|
|
|
|
Skipping aes-256-xts-plain64-sha512 in blacklist
|
|
Skipping aes-256-xts-plain64-ripemd160 in blacklist
|
|
# ================= 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 --cipher aes-xts-plain --key-size 512 --hash sha1 --key-slot 3 --key-file - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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 --cipher aes-xts-plain --key-size 512 --hash sha1 --key-slot 0 --key-file - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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,cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=plain,hash-alg=sha1 TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img 4194304M
|
|
Formatting 'TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img', fmt=luks size=4398046511104 key-secret=sec0 cipher-alg=aes-256 cipher-mode=xts ivgen-alg=plain hash-alg=sha1
|
|
|
|
# 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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
# Write test pattern 0xa7
|
|
qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,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
|
|
qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,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
|
|
# Set dev owner
|
|
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
|
|
# Read test pattern 0x91
|
|
qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,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
|
|
qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,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
|
|
|