Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Z9a5k-0000Hk-UI for mharc-grub-devel@gnu.org; Mon, 29 Jun 2015 10:31:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9a5h-0000GF-Ls for grub-devel@gnu.org; Mon, 29 Jun 2015 10:31:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9a5c-0003xa-K9 for grub-devel@gnu.org; Mon, 29 Jun 2015 10:31:21 -0400 Received: from johnlane.plus.com ([212.159.104.145]:63708 helo=sodium.amajohn.co.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9a5c-0003x0-Cp for grub-devel@gnu.org; Mon, 29 Jun 2015 10:31:16 -0400 Received: by sodium.amajohn.co.uk (Postfix, from userid 1000) id 3E98358; Mon, 29 Jun 2015 15:31:13 +0100 (BST) Received: from hydrogen.amajohn.co.uk (hydrogen.amajohn.co.uk [10.0.200.1]) by sodium.amajohn.co.uk (Postfix) with ESMTPSA id 443302D for ; Mon, 29 Jun 2015 15:31:12 +0100 (BST) From: John Lane To: grub-devel@gnu.org Subject: Cryptomount enhancements - revised Date: Mon, 29 Jun 2015 15:30:55 +0100 Message-Id: <1435588260-29456-1-git-send-email-grub@jelmail.com> X-Mailer: git-send-email 2.1.2 X-Outbound-Checked: Yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.159.104.145 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2015 14:31:23 -0000 These patches provide extensions to the "cryptomount" command. There are five patches [PATCH 1/5] Cryptomount support LUKS detached header Support LUKS detached headers so that the header can be separated from the data payload, e.g. by storing on external removable media such as a USB key. [PATCH 2/5] Cryptomount support key files Support key files so that passphrase entry can be suppressed. The passphrase can be stored in a "key file" that can be stored, for example, on external removable media such as a USB key. [PATCH 3/5] cryptomount luks allow multiple passphrase attempts Allow a second attempt to enter a passphrase. If unlocking fails on the first attempt then the user is presented with the passphrase entry prompt again. If a key file is given that does not unlock the device then the user is given the opportunity to enter a passphrase. [PATCH 4/5] Cryptomount support plain dm-crypt Support plain dm-crypt mode. Allow plain volumes to be opened. This is largely a re-factoring of exisitng code to allow the crypto routines be used independently of LUKS. [PATCH 5/5] Cryptomount support for hyphens in UUID Support for hyphens in UUID. The "-u" option of cryptomount accepts a UUID. This option allows that to be delimited with hyphens so that the same format can be given to Grub as is passed to the Linux kernel boot options. This is a revised patch set following feedback from patches sent on 16/6/15. grub-core/disk/cryptodisk.c | 382 ++++++++++++++++++++++++++++++++++++++++++++++++++-- grub-core/disk/geli.c | 9 +- grub-core/disk/luks.c | 508 +++++++++++++++++++++++++-------------------------------------------- include/grub/cryptodisk.h | 18 ++- 4 files changed, 581 insertions(+), 336 deletions(-)