Return-Path: Received: from nekare.kjorling.se (nekare.kjorling.se [89.221.249.175]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Wed, 30 Mar 2016 19:10:03 +0200 (CEST) Received: from yeono.kjorling.se (h-9-65.a328.priv.bahnhof.se [46.59.9.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "yeono", Issuer "yeono" (not verified)) by nekare.kjorling.se (Postfix) with ESMTPS id D0249114096 for ; Wed, 30 Mar 2016 17:09:54 +0000 (UTC) Received: from yeono.kjorling.se (localhost [127.0.0.1]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by yeono (Postfix) with ESMTPS id 7C4B41837 for ; Wed, 30 Mar 2016 19:09:54 +0200 (CEST) Date: Wed, 30 Mar 2016 17:09:52 +0000 From: Michael =?utf-8?B?S2rDtnJsaW5n?= Message-ID: <20160330170952.GX16068@yeono.kjorling.se> References: <1118698616.11095.1459343934401.JavaMail.zimbra@infodat.com.ar> <56FBFE8B.3000807@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56FBFE8B.3000807@gmail.com> Subject: Re: [dm-crypt] Quorum system on decryption passphrase List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 30 Mar 2016 18:27 +0200, from gmazyland@gmail.com (Milan Broz): > If you mean something like Shamir's secret sharing (you need N of M > parts to unlock the key), > LUKS doesn't provide this directly, but Clevis/Tang project is going > this way (in development). Shamir's was my first thought too. While LUKS doesn't provide this natively (any one passphrase is sufficient to unlock the container), what you want can probably be cobbled together using a passphrase file which is split using Shamir's secret sharing. For example, you could generate a random passphrase of sufficient entropy to be secure, and for storage split that into three parts two of which are required (using regular Shamir's secret sharing). This should be as secure as 2 out of 3 Shamir's secret sharing can be. To unlock the container, two of the three individuals get together, somehow present their respective pieces, and some software combines them to form the passphrase that is used to unlock the container. To make it more difficult to access the passphrase while unlocking the container, you might run it all on a ramfs from within an initrd or similar. It should work. Whether it will be secure enough depends on your threat model. Obviously. -- Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se “People who think they know everything really annoy those of us who know we don’t.” (Bjarne Stroustrup)