From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Z4nnV-0000Te-Jl for mharc-grub-devel@gnu.org; Tue, 16 Jun 2015 06:08:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4nnS-0000Pd-Fu for grub-devel@gnu.org; Tue, 16 Jun 2015 06:08:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4nnP-0006yO-PH for grub-devel@gnu.org; Tue, 16 Jun 2015 06:08:46 -0400 Received: from johnlane.plus.com ([212.159.104.145]:65472 helo=sodium.amajohn.co.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4nQk-0001lJ-EX for grub-devel@gnu.org; Tue, 16 Jun 2015 05:45:18 -0400 Received: by sodium.amajohn.co.uk (Postfix, from userid 1000) id C5D6C8A5; Tue, 16 Jun 2015 10:45:16 +0100 (BST) Received: from [10.0.200.1] (hydrogen.amajohn.co.uk [10.0.200.1]) by sodium.amajohn.co.uk (Postfix) with ESMTPSA id 38997841 for ; Tue, 16 Jun 2015 10:45:16 +0100 (BST) Message-ID: <557FF025.2080604@jelmail.com> Date: Tue, 16 Jun 2015 10:45:09 +0100 From: John Lane User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [PATCH 3/4] Cryptomount support plain dm-crypt References: <1434445875-6846-1-git-send-email-john@lane.uk.net> <1434445875-6846-4-git-send-email-john@lane.uk.net> In-Reply-To: <1434445875-6846-4-git-send-email-john@lane.uk.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ipWiEDeJhKw4G5lltl0m3tR3rj33CfXXF" 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: Tue, 16 Jun 2015 10:08:47 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ipWiEDeJhKw4G5lltl0m3tR3rj33CfXXF Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable A little explanation of what the patch does; most of the code in this patch already existed. I extracted the in-line code from "luks.c" that creates the crypto disk into a new cryptomount function called "grub_cryptodisk_create" that is then used by the luks module and is also avilable to the cryptomount module. I extracted the "set_passphrase" function from the "devmapper.c" committed (e7f405ab) in the "peter/devmapper" branch so that I could use it in cryptomount to hash a manually entered passphrase. I then wrote some additional options and a small block of code to implement plain mode using the above. --ipWiEDeJhKw4G5lltl0m3tR3rj33CfXXF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVf/ArAAoJEGnTYCRabxPGm5wP/iDWy7Oc8alEfeKWJKiYMpK1 7McDJhttCK9zdNrkQwc5Qshqm1wnm46myJbuiMo19kYc1JWwmk+ZPWP+bx97yIm7 pn2epYdRe07mOstqpqxrWEQOlfmfgz11YjVb3yZnxl8Zf8J4V+y1HB/XrZ+XfuLr ISRAQpWmxg9fthQqQTjXfWtE4qe73/A3yQd0SGnmIgzySxi+NSK/Dig1SWCSAWn/ y3rzPhZd+Epgj1CerzTwZWxzBiSoOlusF1ST4CC7t4Ut9sewbd+txz4S+ivjW+o5 gtL4WZ5FMt3Z7qXhYMisEkzkaX0hdY0i/irBriAZdDy70bK7o7C4q41qse4ixNNn zRDPpuI7QtqjpBYVyvJMfQKZvO5GkdrtAhOikJPvcM6JKmaj3AJQmunRoZs25odn 16M9MqlbhK/HqZeJoctX0u9GcDKyQgkuRgG0juE39SsUe+30vz3CWnfiMMnBZ2Qh Lrk5MGQU+dbx8Dho31aOcUHL3OEZCLz1OKlL7yC8dzqThYCMz2FoCiySX804WZgq inxwMJ9ck0ZnJ9EMVrcFIjxmqwvgDl/YqkAn8mCGHtn9X/i9pTmcIwWkkIBlzAzq VX8ow5x+dpmmzgK81cqNL1Glc+JCXZ96l9OlUHbF6qKOiicfY6nL+9lMcwT0hHkY WAywoRuImJQc6x6cO7dD =eFjU -----END PGP SIGNATURE----- --ipWiEDeJhKw4G5lltl0m3tR3rj33CfXXF--