From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752463Ab2CIHPX (ORCPT ); Fri, 9 Mar 2012 02:15:23 -0500 Received: from mga11.intel.com ([192.55.52.93]:36835 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751382Ab2CIHPW (ORCPT ); Fri, 9 Mar 2012 02:15:22 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="126886874" Message-ID: <1331277476.22872.2.camel@sauron.fi.intel.com> Subject: Re: [patch] Add encryption key parameter to compress/decompress functions From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Joel Reardon Cc: linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 09 Mar 2012 09:17:56 +0200 In-Reply-To: References: <1329152067.22240.214.camel@sauron.fi.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-1.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2012-02-23 at 16:29 +0100, Joel Reardon wrote: > This patch extends to interface for compression and decompression of data > nodes to take a cryptographic key > as a parameter. If it is set to NULL, then the current behaviour persists. > If it is non-null, then it is taken > as a pointer to an array of length UBIFSEC_KEYSIZE (=16 bytes) which > contains the key to use to encrypt > the data node. Each data node should be encrypted with a separate key as > it uses the same initialization vector (of 0). This patch is also wrapped... Would you consider using git - commit your patches, then git format-patch, then git send-email them - git tools will take everything right. Use --dry-run with git send-email first to check everything is right. -- Best Regards, Artem Bityutskiy From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by casper.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1S5u39-0005PG-W7 for linux-mtd@lists.infradead.org; Fri, 09 Mar 2012 07:15:41 +0000 Message-ID: <1331277476.22872.2.camel@sauron.fi.intel.com> Subject: Re: [patch] Add encryption key parameter to compress/decompress functions From: Artem Bityutskiy To: Joel Reardon Date: Fri, 09 Mar 2012 09:17:56 +0200 In-Reply-To: References: <1329152067.22240.214.camel@sauron.fi.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2012-02-23 at 16:29 +0100, Joel Reardon wrote: > This patch extends to interface for compression and decompression of data > nodes to take a cryptographic key > as a parameter. If it is set to NULL, then the current behaviour persists. > If it is non-null, then it is taken > as a pointer to an array of length UBIFSEC_KEYSIZE (=16 bytes) which > contains the key to use to encrypt > the data node. Each data node should be encrypted with a separate key as > it uses the same initialization vector (of 0). This patch is also wrapped... Would you consider using git - commit your patches, then git format-patch, then git send-email them - git tools will take everything right. Use --dry-run with git send-email first to check everything is right. -- Best Regards, Artem Bityutskiy