Return-Path: Received: from mx4-v2.alinto.net (mx4-v2.alinto.net [83.145.109.34]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 28 Dec 2010 15:23:29 +0100 (CET) Received: from http1alinto.alinto.net (http1alinto.alinto.net [83.145.109.61]) by mx4-v2.alinto.net (Postfix) with ESMTP id 7B8A753C12C for ; Tue, 28 Dec 2010 15:23:26 +0100 (CET) Message-ID: <1293546206.4d19f2de4701c@www.inmano.com> Date: Tue, 28 Dec 2010 15:23:26 +0100 From: octane indice In-Reply-To: <20101228133208.GA7046@tansi.org> References: <1293466212.4d18ba64b28dc@www.inmano.com> <20101227215200.GA6681@tansi.org> <1293524963.4d199fe3b7cb1@www.inmano.com> <20101228133208.GA7046@tansi.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] using a salt for encrypting blocks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de En r=E9ponse =E0 Arno Wagner : > > not if I change all of them. >=20 > Indeed. Which you cannot do in practice. > By changing the salt, yes. I understand that's a huge performance issue on closing the device, but it's acceptable in regard of the privacy gain. =20 > > In this situation it helps in order to change the ciphered=20 > > version even if we don't change the clear. > > -We could change the master key: impossible in practice. >=20 > Not harder than changing the salt, actually. You do have > to recrypt the whole device anyways for this to be secure,=20 > so changing the master key is entrierly possible. > No. The problem lies when you trans-cipher the device from the old master key to the new master key. You begin to transcipher to the half of the device, then you=20 encounter a power loss of your laptop. The next boot, you=20 lost a lot of things. Either the new master key is saved, then=20 you read only what has been transciphered, or the old=20 master key, and you can read the other half. And if you have=20 both keys, you can't determine which one has to be used for a specific block, or you must track what's has been=20 transciphered which seems to be harder to implement than=20 just changing the salt. Plus, but I didn't want to say it, you can imagine random block changes when using the device. Just check when the system is not busy, check an unused block, recipher it. =20 > > If we use a salt, we can always decipher, even if a break > > occurs while reciphering; at last, only one block could be > > unreadable. >=20 > If thet one block holds critical meta-information, the=20 > damage can be extreme. >=20 Yes but it's allways the situation when a disk is hard-stop by a power loss. > Sorry, this is not the way to go. And you are not the > first with this (or a similar) idea as well. If you really > want to prevent visibility of what was changed in the=20 > encrypted device yes > (and as Milan rightfully points out, the > attacker already has repeated access), Yes, I think that's unavoidable. You have to consider that an attacker has repeated access to your computer. > the only good way=20 > is to make it a filesystem feature and write a lot > of fake data in addition. ok. but it would be tight to a filesystem. Working with the block level could be used with anything. > AFAIK, nobody cared enough > for the, at best, marginal increase in security to > actually implement such a scheme. >=20 ok. I understand, but I disagree with the "marginal"=20 impact :-) thanks > _______________________________________________ Envoy=E9 avec Inmano, ma messagerie renversante et gratuite : http://www.in= mano.com