From: Herbert Xu Subject: Re: [PATCH/RFC] crypto: compress - Return produced bytes in crypto_{,de}compress_{update,final}() (was: Re: [PATCH/RFC] crypto: compress - Add comp_request.total_out (was: Re: [PATCH 6/6] squashfs: Make SquashFS 4 use the new pcomp crypto interface)) Date: Mon, 20 Apr 2009 14:03:13 +0800 Message-ID: <20090420060313.GA891@gondor.apana.org.au> References: <1235569394-15217-3-git-send-email-Geert.Uytterhoeven@sonycom.com> <1235569394-15217-4-git-send-email-Geert.Uytterhoeven@sonycom.com> <1235569394-15217-5-git-send-email-Geert.Uytterhoeven@sonycom.com> <1235569394-15217-6-git-send-email-Geert.Uytterhoeven@sonycom.com> <1235569394-15217-7-git-send-email-Geert.Uytterhoeven@sonycom.com> <20090307104637.GB8731@gondor.apana.org.au> <49B36A18.5030506@lougher.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Phillip Lougher , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org To: Geert Uytterhoeven Return-path: Received: from rhun.apana.org.au ([64.62.148.172]:44034 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752575AbZDTGDX (ORCPT ); Mon, 20 Apr 2009 02:03:23 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On Tue, Mar 24, 2009 at 05:33:01PM +0100, Geert Uytterhoeven wrote: > > Here's an alternative patch, which does exactly that. > Phillip, what do you think? > > Thanks for your comments! > > >From be7d630f96a85d3ce48716b8e328563ba217647b Mon Sep 17 00:00:00 2001 > From: Geert Uytterhoeven > Date: Tue, 24 Mar 2009 17:19:05 +0100 > Subject: [PATCH] crypto: compress - Return produced bytes in crypto_{,de}compress_{update,final}() > > If crypto_{,de}compress_{update,final}() succeed, return the actual number of > bytes produced instead of zero, so their users don't have to calculate that > theirselves. > > Signed-off-by: Geert Uytterhoeven I certainly prefer this version over the other one? Do you want to submit crypto API portion of this? Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt