[Bug 1299557] Re: cryptsetup luksFormat fails with -s <keysize>
GreenReaper
1299557 at bugs.launchpad.net
Sat Dec 28 05:27:12 UTC 2019
As I understand it, the key size is doubled, because XTS uses two. So
256 == AES-128 and 512 == AES-256. You probably want 256. As such, I
don't think this bug is valid because AES-64 doesn't exist.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/1299557
Title:
cryptsetup luksFormat fails with -s <keysize>
Status in cryptsetup package in Ubuntu:
Confirmed
Bug description:
I installed beta2 of 14.04 yesterday. Today, I am trying to manually
create an encrypted partition. If I specify a key size to cryptsetup
with -s, cryptsetup fails as follows.
root at slab:~# cryptsetup -y -s 128 luksFormat /dev/sda6
WARNING!
========
This will overwrite data on /dev/sda6 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
device-mapper: reload ioctl on failed: Invalid argument
Failed to open temporary keystore device.
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: reload ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-2231 failed: No such device or address
After the above, luksDump shows all 8 key slots as DISABLED.
Without -s, cryptsetup will succeed, as follows.
root at slab:~# cryptsetup -y luksFormat /dev/sda6
WARNING!
========
This will overwrite data on /dev/sda6 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
root at slab:~#
Other info:
root at slab:~# lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
root at slab:~# apt-cache policy cryptsetup
cryptsetup:
Installed: 2:1.6.1-1ubuntu1
Candidate: 2:1.6.1-1ubuntu1
Version table:
*** 2:1.6.1-1ubuntu1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1299557/+subscriptions
More information about the foundations-bugs
mailing list