From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753198AbbLKDYY (ORCPT ); Thu, 10 Dec 2015 22:24:24 -0500 Received: from helcar.hengli.com.au ([209.40.204.226]:33829 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751521AbbLKDYU (ORCPT ); Thu, 10 Dec 2015 22:24:20 -0500 Date: Fri, 11 Dec 2015 11:23:40 +0800 From: Herbert Xu To: Tim Chen Cc: "H. Peter Anvin" , "David S.Miller" , Stephan Mueller , Chandramouli Narayanan , Vinodh Gopal , James Guilford , Wajdi Feghali , Jussi Kivilinna , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 5/5] crypto: AES CBC multi-buffer glue code Message-ID: <20151211032340.GC10399@gondor.apana.org.au> References: <1449086565.22260.15.camel@schen9-desk2.jf.intel.com> <20151209025242.GA24861@gondor.apana.org.au> <1449681794.22260.58.camel@schen9-desk2.jf.intel.com> <20151210014519.GA31692@gondor.apana.org.au> <1449765585.3057.9.camel@schen9-desk2.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1449765585.3057.9.camel@schen9-desk2.jf.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2015 at 08:39:45AM -0800, Tim Chen wrote: > > The inner cipher is called synchronously from the outer layer > async cipher algorithm in cbc_mb_async_ablk_decrypt via > > err = crypto_blkcipher_crt(child_tfm)->decrypt( > &rctx->desc, req->dst, req->src, req->nbytes); We should avoid bypassing the API and directly calling crypto driver functions like this. What if you made it a proper ablkcipher and just called it through the API? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt