Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp990265ybv; Sat, 22 Feb 2020 20:22:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwzO6dkN3FTRcT7Vy04CaIFcQX1/oGlyrcv6jJ2Zuw77qx0SOcO+y5qK8AA9u7rgNSzsPhL X-Received: by 2002:a9d:2c2a:: with SMTP id f39mr34218506otb.301.1582431779135; Sat, 22 Feb 2020 20:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582431779; cv=none; d=google.com; s=arc-20160816; b=VDBcIvglF2wSYlTAaIW++qrpO1ymfWzJWJigLPPMkAxfktnjZutgUxfT8Ek6Rxcu3o m8hmyR4ZYV5URBwIeqF6mIhvWVPx8Yr21LX2bfpA8JsVNGa889hHS5ZhOPN6i1LtHcXt Z4FB9rB738/dJsojyLzr8NyTJIjQnJSuFJ2uk2MPzUjICPOaDEgLJRf3rsE4nlhMjpMq 3fsbSz7/gsgWuU5JdTzPT9rHnjSjXFdoMYyfvm5XomvqKszZOn6m9KG4uzSIY4zFQ1Pv wTclmF1plZ6RdQZy6SiyGRzQaS+KZC5NjIhtKN20pgWg9zcj4GgXqofozuL38fCDI355 oggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=1PFv/oXLfsMfkhuC5RvRIhDRoiPX5c/mamT1zoHDeHQ=; b=iaoH0fVjUIO4c+xgDtosqSu9oCIuIMU0IBWy3i1tVh7YQc0i75YtM4B/or2aVZO+0k 7N+K4iMV23WdEbJ+dZmyviOLlUkUNf2nvlQjWYwmMnXl+JEcUZoEOSa26aAHqZOBx3d4 i3PZFZx9p1bo2PKGZRv/26e1nq8qfmKWWwvZ1jmpy2wngyRsc8sihAWgbl5iR9dnhFU8 hbtenUSDLEzqYY3kyS5uYSJHuffy9MlItvoyBFT/6M7pFQ2BNUCOcLtSVMoxbBZ7JEI/ wQ7E65+a6WQ61nKr7qSXNQzWN8SoN7PXXVjf0VwaIxGdUbkT55PAMSAB8cShr1Kzjhpd kp5w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si4128791otq.188.2020.02.22.20.22.35; Sat, 22 Feb 2020 20:22:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727115AbgBWEVb (ORCPT + 99 others); Sat, 22 Feb 2020 23:21:31 -0500 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:60286 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbgBWEVb (ORCPT ); Sat, 22 Feb 2020 23:21:31 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R671e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04455;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0TqdtHoh_1582431686; Received: from 30.27.235.101(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0TqdtHoh_1582431686) by smtp.aliyun-inc.com(127.0.0.1); Sun, 23 Feb 2020 12:21:28 +0800 Subject: Re: [PATCH] crypto: sm3 - export crypto_sm3_final function To: Herbert Xu Cc: davem@davemloft.net, ebiggers@kernel.org, pvanleeuwen@rambus.com, zohar@linux.ibm.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, gilad@benyossef.com References: <20200216090233.109416-1-tianjia.zhang@linux.alibaba.com> <20200222011926.GA18695@gondor.apana.org.au> From: Tianjia Zhang Message-ID: <8acc79e8-8b3d-856d-06d2-5322c9a66be9@linux.alibaba.com> Date: Sun, 23 Feb 2020 12:21:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200222011926.GA18695@gondor.apana.org.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/2/22 9:19, Herbert Xu wrote: > On Sun, Feb 16, 2020 at 05:02:33PM +0800, Tianjia Zhang wrote: >> Both crypto_sm3_update and crypto_sm3_finup have been >> exported, exporting crypto_sm3_final, to avoid having to >> use crypto_sm3_finup(desc, NULL, 0, dgst) to calculate >> the hash in some cases. >> >> Signed-off-by: Tianjia Zhang >> --- >> crypto/sm3_generic.c | 7 ++++--- >> include/crypto/sm3.h | 2 ++ >> 2 files changed, 6 insertions(+), 3 deletions(-) > > Please add this into the series that actually uses the function. > It makes no sense on its own. > > Thanks, > The actual use of this function is in sm2 and OSCCA certificates. This set of patches has been submitted to the community. Please review them.