Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933950AbcJURVN (ORCPT ); Fri, 21 Oct 2016 13:21:13 -0400 Received: from b.ns.miles-group.at ([95.130.255.144]:44723 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932739AbcJURVM (ORCPT ); Fri, 21 Oct 2016 13:21:12 -0400 Subject: Re: [PATCH 15/26] ubifs: Implement encrypt/decrypt for all IO To: Michael Halcrow References: <1477054121-10198-1-git-send-email-richard@nod.at> <1477054121-10198-16-git-send-email-richard@nod.at> <20161021171439.GA17121@google.com> Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, dedekind1@gmail.com, adrian.hunter@intel.com, tytso@mit.edu, jaegeuk@kernel.org, david@sigma-star.at, wd@denx.de, sbabic@denx.de, dengler@linutronix.de From: Richard Weinberger Message-ID: <78f09113-fcc3-c2d2-9849-ba980cd9c0b4@nod.at> Date: Fri, 21 Oct 2016 19:21:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: <20161021171439.GA17121@google.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 326 Lines: 11 On 21.10.2016 19:14, Michael Halcrow wrote: > Compress-before-encrypt is a hazard. > > http://www.iacr.org/cryptodb/archive/2002/FSE/3091/3091.pdf I'm fully aware of that. But as usual it depends on the use case. Compression is optional in UBIFS, paranoid users can disable it when encryption is enabled. Thanks, //richard