Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755403AbZFRCoB (ORCPT ); Wed, 17 Jun 2009 22:44:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752518AbZFRCnv (ORCPT ); Wed, 17 Jun 2009 22:43:51 -0400 Received: from rhun.apana.org.au ([64.62.148.172]:44177 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751962AbZFRCnv (ORCPT ); Wed, 17 Jun 2009 22:43:51 -0400 Date: Thu, 18 Jun 2009 10:43:49 +0800 From: Herbert Xu To: Huang Ying Cc: Sebastian Andrzej Siewior , "linux-kernel@vger.kernel.org" , "linux-crypto@vger.kernel.org" Subject: Re: [RFC 1/7] crypto: Add GHASH digest algorithm for GCM Message-ID: <20090618024349.GA1936@gondor.apana.org.au> References: <1244704226.5320.124.camel@yhuang-dev.sh.intel.com> <20090617200410.GB28694@Chamillionaire.breakpoint.cc> <1245290907.11965.201.camel@yhuang-dev.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1245290907.11965.201.camel@yhuang-dev.sh.intel.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 795 Lines: 21 On Thu, Jun 18, 2009 at 10:08:27AM +0800, Huang Ying wrote: > > > Unless I'm mistaken, this is called once on allocation and this ctx is > > allocated via kzalloc(). > > Yes. it is alloced via kzalloc. Can we just rely on this? Should we add > that assumption to somewhere such as document of comments. Yes you can rely on this. Cheers, -- 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 -- 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/