Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp1141pja; Fri, 22 Nov 2019 02:37:13 -0800 (PST) X-Google-Smtp-Source: APXvYqwPHoqpIZl362ttnr9ZUb4Kr3UdGpfXuWGP7ONcrYa2is0OxEzqWymzK2thWCv91yRWp7Vq X-Received: by 2002:a50:e68c:: with SMTP id z12mr199464edm.53.1574419033838; Fri, 22 Nov 2019 02:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574419033; cv=none; d=google.com; s=arc-20160816; b=Fgb2PlvK150wXF6DqObqjegtQEdCHrmNATa+kk2HoxrIwIKEwmqGJMJtGrm3+Ef5s9 I33KoKALzsK3GdGhyzj5bsS5dmHa0kgV6pARUsQXN7jvxKiP+CK8pvCt1IVbzybpKVdE NDYTW61iXa58GC2XEl/ZD5+aIwv0rpdF9QJs/udGYy4gwqu7dzGz9jUbEoMwTAOFi0V2 NZ3p+oj761nOz7mwp8RO2+y+4QBXGT4fQBIq0a+Oa1J9x0eKySB0EyJW94JNe/dNnnEK xE7HNwgkS1/OeyUGuR20VrT9Px0LmGbYLThHWhXN8iSJLjqvBptiabNuTONXv2rCj1/p +l5g== 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; bh=zy+Rw8R/5GvWT4wRPqNkbHRFvCeTcd54kuLhToxX/ig=; b=T4Yv2Yrs2yDv7copOxtlnGIiwMRh3NRlNHyKPkTnMyaAfgmRPt61ZsLu9ISoqDa5Vr J3Jnd2FrzBA4Ttz+FNZhbOK41w7OsX/qOcGmRWPBBK0yAoUEE9EOKWpX+d8gWDiz+KBW c8NLc+K6VG5m61NLCTMuClsmhRSXw0g3zXn5qqFnl3bxNEi2sqEDR4M9qsby+kUSiP7w 6z5GEr+QbtcsRukCGISC9KnW9LXpIKJBdTleMJTU5FwewaAA9MCXb0O6ENegzjoZ+Z2j 3dNAHjfe7z5k/2KBJ7rPUwRb0H9Heq3HL66UmOlCvntv1496+KHrypk03G1Q/DWz+MkR CwLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 a2si1097963ejb.257.2019.11.22.02.36.47; Fri, 22 Nov 2019 02:37:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbfKVKeV (ORCPT + 99 others); Fri, 22 Nov 2019 05:34:21 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:51334 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbfKVKeV (ORCPT ); Fri, 22 Nov 2019 05:34:21 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1iY6GY-0001wk-Cr; Fri, 22 Nov 2019 18:34:18 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1iY6GX-00057M-9A; Fri, 22 Nov 2019 18:34:17 +0800 Date: Fri, 22 Nov 2019 18:34:17 +0800 From: Herbert Xu To: Iuliana Prodan Cc: Horia Geanta , Aymen Sghaier , "David S. Miller" , Tom Lendacky , Gary Hook , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH 01/12] crypto: add helper function for akcipher_request Message-ID: <20191122103417.wdeycddrpq4iorho@gondor.apana.org.au> References: <1574029845-22796-1-git-send-email-iuliana.prodan@nxp.com> <1574029845-22796-2-git-send-email-iuliana.prodan@nxp.com> <20191122090819.mv3txjoxmiy4flv2@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Nov 22, 2019 at 10:29:01AM +0000, Iuliana Prodan wrote: > > Why can't we use this? There are similar functions for > skcipher/aead/ahash and they are all in include/crypto. Because we don't want drivers to use the underlying crypto_request at all. All drivers should be using the aead_request and others. Only infrastructure code such as crypto_engine may use the base type internally. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt