Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261773AbVDKLCX (ORCPT ); Mon, 11 Apr 2005 07:02:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261774AbVDKLCX (ORCPT ); Mon, 11 Apr 2005 07:02:23 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:21229 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S261773AbVDKLCJ (ORCPT ); Mon, 11 Apr 2005 07:02:09 -0400 Date: Mon, 11 Apr 2005 13:01:52 +0200 From: Pavel Machek To: folkert@vanheusden.com Cc: Andreas Steinmetz , Linux Kernel Mailinglist Subject: Re: [PATCH encrypted swsusp 1/3] core functionality Message-ID: <20050411110152.GD1373@elf.ucw.cz> References: <4259B474.4040407@domdv.de> <20050411102550.GD1353@elf.ucw.cz> <20050411103608.GA5610@vanheusden.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050411103608.GA5610@vanheusden.com> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 23 Hi! > > > The following patch adds the core functionality for the encrypted > > > suspend image. > > [Please inline patches, it makes it easier to comment on them.] > > You seem to reuse same key/iv for all the blocks. I'm no crypto > > expert, but I think that is seriously wrong... You probably should use > > block number as a IV or something like that. > > Or use a feedback loop: xor your data with the outcome of the previous > round. And for the initial block use 0x00...00 for 'previous block'- > value. I'd like to retain ability to read suspend image in any order (so that code can be reused for swap encryption, etc). Pavel -- Boycott Kodak -- for their patent abuse against Java. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/