Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2623477pxb; Sun, 17 Oct 2021 20:48:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzACZkFKeSwBSL0Xh+D7FMpFbymsYsR3vefra3vFr/v39JB8BncJSqJVZJTjN/5jhZDxSEC X-Received: by 2002:a17:902:bb01:b0:13e:a6e6:9a53 with SMTP id im1-20020a170902bb0100b0013ea6e69a53mr24913774plb.4.1634528922350; Sun, 17 Oct 2021 20:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528922; cv=none; d=google.com; s=arc-20160816; b=BDZfrlRtifTaOLXOoj5Ae/50kUOBytbD8PAct/uHJG5MBgGksBMwr11m7M5L2COK5O LXGQIdQAxtOYfIu1gH8br3zxiQcj32xcF1IIxa5bUl28Iqe88xhQ3RZDB/qCj2ZIXARy i6jJx7vEMr0/pqfqIt4htG+xkiPnPs9On4bebRDxjCmXoyhudvViiPXVMFuv/w6v/rtX XbL3DVRgW7cTPz7fegZpXagYLEnzt70YyyJQ8We+nvJyqdCfKGtgHjB4zkUoquDl2+dp ewgHMKW9Vysl+U0eZ6jLfU74MUYLzF3tUqnFKaTXRH1QKh3Y9DkzOaR5HcyfV9605EYA lJ6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=iW2M1jmF8t/71fe7mI5Cw2KtGnax19gQg1EQzZ1V9/I=; b=pe63n8zgHOQ5R6pR+jBYbfcuZPSBryd19Z7k9rlkvnQVOoTFqR+JwFKhEoybHqxuTy oJ874BmOKK+ArnM2SsnKg+AdnOLZcCL1i6Ce5oJqBa13Mxs+hiS2M4708KFczi/K+Wsb PGy2snPD8b5N1TuUDvsHcMWRkHrMDpOQfdKQe51ArpzEnfUxfzET9f+HfAG/VL9i2nIZ hmx3drdsMg80uOlZGurCSikAvlUZyl88vTeVnBybyJbwiQYEBL2efCB/fWKb9S2KiMea Bh6BZktLqxSfbRRSKMOo/62pwRT5eeJyF+vm+FcnYpkyANfRHZehDhrlaUei3QnhpMNq Chxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id d17si20376054pfj.373.2021.10.17.20.48.30; Sun, 17 Oct 2021 20:48:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 S243013AbhJRCkV (ORCPT + 99 others); Sun, 17 Oct 2021 22:40:21 -0400 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:41685 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238675AbhJRCkU (ORCPT ); Sun, 17 Oct 2021 22:40:20 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R731e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0UsUNe6S_1634524684; Received: from 30.240.100.200(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0UsUNe6S_1634524684) by smtp.aliyun-inc.com(127.0.0.1); Mon, 18 Oct 2021 10:38:06 +0800 Message-ID: <5b0bc02a-eeb5-9d86-852b-d3041f3c6286@linux.alibaba.com> Date: Mon, 18 Oct 2021 10:37:56 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH 2/2] tpm: use SM3 instead of SM3_256 Content-Language: en-US To: Jarkko Sakkinen , James Bottomley , Mimi Zohar , Jonathan Corbet , Herbert Xu , "David S. Miller" , Peter Huewe , Jason Gunthorpe , David Howells , James Morris , "Serge E. Hallyn" , Jerry Snitselaar , linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-security-module@vger.kernel.org References: <20211009130828.101396-1-tianjia.zhang@linux.alibaba.com> <20211009130828.101396-3-tianjia.zhang@linux.alibaba.com> <5db32f21-1df7-c92e-42a1-a2a85b29dfbf@linux.alibaba.com> <31d49f7785dd82fd2f0c1078c9a94153e3c389ac.camel@kernel.org> From: Tianjia Zhang In-Reply-To: <31d49f7785dd82fd2f0c1078c9a94153e3c389ac.camel@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Jarkko, On 10/15/21 11:19 PM, Jarkko Sakkinen wrote: > On Thu, 2021-10-14 at 17:46 +0800, Tianjia Zhang wrote: >> Hi Jarkko, >> >> On 10/12/21 11:21 PM, Jarkko Sakkinen wrote: >>> On Sat, 2021-10-09 at 21:08 +0800, Tianjia Zhang wrote: >>>> According to https://tools.ietf.org/id/draft-oscca-cfrg-sm3-01.html, >>>> SM3 always produces a 256-bit hash value and there are no plans for >>>> other length development, so there is no ambiguity in the name of sm3. >>>> >>>> Signed-off-by: Tianjia Zhang >>> >>> This is not enough to make any changes because the commit message >>> does not describe what goes wrong if we keep it as it was. >>> >>> /Jarkko >>> >> >> This did not cause an error, just to use a more standard algorithm name. >> If it is possible to use the SM3 name instead of SM3_256 if it can be >> specified from the source, it is of course better. I have contacted the >> trustedcomputinggroup and have not yet received a reply. >> >> Best regards, >> Tianjia > > Why don't you then create a patch set that fully removes SM3_256, if it > is incorrect? > > This looks a bit half-baked patch set. > > /Jarkko > This series of patch is a complete replacement. Patch 1 is a replacement of the crypto subsystem, and patch 2 is a replacement of the tpm driver. Best regards, Tianjia