Received: by 10.223.185.116 with SMTP id b49csp228203wrg; Thu, 15 Feb 2018 20:34:29 -0800 (PST) X-Google-Smtp-Source: AH8x224UQZh8Cp3rhG1L1TI1wQq9F2j4Q6cUjUj8RqEK3rEMGAEB+T3v2paAFU1DY8+QaP3f+iQL X-Received: by 10.101.65.71 with SMTP id x7mr3977743pgp.379.1518755669178; Thu, 15 Feb 2018 20:34:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518755669; cv=none; d=google.com; s=arc-20160816; b=mHF9MViqNYiyPZYxEISeJheQP9IRtmqtNDlBRsjtfh8DIz4i+7+n35d2y3h09PsABE dJoESiDuctJp/SAWIjChD3uEadOO+zR+fwxZoG0Mk6ER0EuP66HXdZITksuBF/SpSBD6 f36ZZHzlgAYGU6JklzKKMxSdaGsaIgdjHDFfDGR72hQ7T7xnXc30F87z0d/D4qJn5fOo NKoVVyZRElbmENSCJeXJg9v2HcRIRODu6XBXuTefbFYwnvGJQe9akU3AmUgn1suKPhE7 mpZHdCp+Qmg6ExEjT5AacQ855o5KWYmkGsKI+t4ofjmf6bHoxPdhoq3SmWryZyvgfqCY tdyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=9mFrHddO7PgoRAYk0urAaRMjc/QwzSJ5fZc5fR8MuGU=; b=I+NX6iMAWHfZMAJfc4/TSPHn29JPEH4iQL6Rktx6gtA9KpXXzW7Eo6NpY9fP/J8vGz 4zX7WD/0YDICYZFm1gqWKK92ccss7eMfYW/NkToQWhKbT/a4ET8IXCVVyPgLT7Q+D+d8 xhXQfyao50CuXglDJITybPjwq2oTgMxt6kinJYOsBsqVCIWi95KDMItxfWiKGiJcMke2 ckSyMna8XgWM311BwmkzRAoANzGuOuSG1j6wbWtccrViEQLxlB7K7oby8xgUIVYb9eXw CqHiEtHJahTEc41XKinuztcgy67fZvL8sja+vMR4BqGkOMnIIxG0axs/kXUh13LyQZp3 +xgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3-v6si3858341plk.506.2018.02.15.20.34.15; Thu, 15 Feb 2018 20:34:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425118AbeBOPv3 (ORCPT + 99 others); Thu, 15 Feb 2018 10:51:29 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:39590 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424582AbeBOPvX (ORCPT ); Thu, 15 Feb 2018 10:51:23 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.84_2 #2 (Debian)) id 1emLoR-000072-L6; Thu, 15 Feb 2018 23:51:07 +0800 Received: from herbert by gondobar with local (Exim 4.84_2) (envelope-from ) id 1emLoK-00022H-MQ; Thu, 15 Feb 2018 23:51:00 +0800 Date: Thu, 15 Feb 2018 23:51:00 +0800 From: Herbert Xu To: Corentin Labbe Cc: alexandre.torgue@st.com, arei.gonglei@huawei.com, corbet@lwn.net, davem@davemloft.net, jasowang@redhat.com, mcoquelin.stm32@gmail.com, mst@redhat.com, fabien.dessenne@st.com, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 0/6] crypto: engine - Permit to enqueue all async requests Message-ID: <20180215155100.GJ7352@gondor.apana.org.au> References: <20180126191534.17569-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180126191534.17569-1-clabbe.montjoie@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 26, 2018 at 08:15:28PM +0100, Corentin Labbe wrote: > Hello > > The current crypto_engine support only ahash and ablkcipher request. > My first patch which try to add skcipher was Nacked, it will add too many functions > and adding other algs(aead, asymetric_key) will make the situation worst. > > This patchset remove all algs specific stuff and now only process generic crypto_async_request. > > The requests handler function pointer are now moved out of struct engine and > are now stored directly in a crypto_engine_reqctx. > > The original proposal of Herbert [1] cannot be done completly since the crypto_engine > could only dequeue crypto_async_request and it is impossible to access any request_ctx > without knowing the underlying request type. > > So I do something near that was requested: adding crypto_engine_reqctx in TFM context. > Note that the current implementation expect that crypto_engine_reqctx > is the first member of the context. > > The first patch is a try to document the crypto engine API. > The second patch convert the crypto engine with the new way, > while the following patchs convert the 4 existing users of crypto_engine. > Note that this split break bisection, so probably the final commit will be all merged. > > Appart from virtio, all 4 latest patch were compile tested only. > But the crypto engine is tested with my new sun8i-ce driver. > > Regards > > [1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1474434.html > > Changes since V1: > - renamed crypto_engine_reqctx to crypto_engine_ctx > - indentation fix in function parameter > - do not export crypto_transfer_request > - Add aead support > - crypto_finalize_request is now static > > Changes since RFC: > - Added a documentation patch > - Added patch for stm32-cryp > - Changed parameter of all crypto_engine_op functions from > crypto_async_request to void* > - Reintroduced crypto_transfer_xxx_request_to_engine functions > > Corentin Labbe (6): > Documentation: crypto: document crypto engine API > crypto: engine - Permit to enqueue all async requests > crypto: omap: convert to new crypto engine API > crypto: virtio: convert to new crypto engine API > crypto: stm32-hash: convert to the new crypto engine API > crypto: stm32-cryp: convert to the new crypto engine API All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt