Return-Path: Received: from mx1-v2.alinto.net (mx1-v2.alinto.net [83.145.109.31]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 28 Dec 2010 09:29:24 +0100 (CET) Received: from http3alinto.alinto.net (http3alinto.alinto.net [83.145.109.63]) by mx1-v2.alinto.net (Postfix) with ESMTP id 3D4B958027B for ; Tue, 28 Dec 2010 09:29:24 +0100 (CET) Message-ID: <1293524963.4d199fe3b7cb1@www.inmano.com> Date: Tue, 28 Dec 2010 09:29:23 +0100 From: octane indice In-Reply-To: <20101227215200.GA6681@tansi.org> References: <1293466212.4d18ba64b28dc@www.inmano.com> <20101227215200.GA6681@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 : > The anzwer is actually no. As changed information has to be=20 > written to diek, an attacker can allways tell when a sector=20 > is changed. My idea is to cipher _all_ blocks by changing the salt. > This is a fundamental limitation of filesystem > encryption. The only way around would be to write far more > on each update, yes > with the expected catastrophic impact on=20 > performance. > not so much, depending on how much data you cipher. I use files of less than 100Mbytes and cipher them. On close, a full recipher wouldn't take long. =20 > > but an attacker wouldn't be able to gain any information! >=20 > Wrong. The attacker could still detect the changed blocks. > not if I change all of them. =20 > > Any advice on that, or a reason why the salt is not used for > > encrypting blocks? >=20 > Because it does not help at all. Salts only help as defense > against rainbow tables. >=20 In this situation it helps in order to change the ciphered version even if we don't change the clear. -We could change the master key: impossible in practice. -We could change the IV: I don't see how. Plus, both options can't afford a break (as of power loss) in the reciphering: which key would be used after? If we use a salt, we can always decipher, even if a break occurs while reciphering; at last, only one block could be unreadable. thanks > _______________________________________________ Envoy=E9 avec Inmano, ma messagerie renversante et gratuite : http://www.in= mano.com