Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp293559pxb; Tue, 19 Oct 2021 03:04:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPeRHXkRlHyr5FohdF/dkzTywpeLY2ykAuYDsFnkEUboFZpyZDNpQDELN4XudD8ZwPukRM X-Received: by 2002:a17:902:ab49:b0:13f:bbaf:2a70 with SMTP id ij9-20020a170902ab4900b0013fbbaf2a70mr11221299plb.68.1634637889048; Tue, 19 Oct 2021 03:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634637889; cv=none; d=google.com; s=arc-20160816; b=PzGrTpNRxAr/wdiSR3xYhH+ZawrEk68EbFGH0dOqX8TFIm9cwCG1flxN8U0AQs2sbs kL2tCw2JLdXbxxUwSREmsGeXahb6VT7fqVCZUW8+EJxHD+z5CrhFyHmdLVPNWB4CvQh7 ERt0rRJ8VpS7U2GSzdJTUuiC2jYgkzVL3UfaYySX02s/bjqKNbow/H+CPDNaP7ylhKyr 5C4+X1jbhV646/EKAuS94KPrAq4ZTtmiVsEK+UfZuVfz7wgsqkaV0IEnsjRDN42kpZoW mAZn/SvGvwOviyjLyv2b4s9IQ3fT9SxyoEnQgolHAzKiLbqpxbcFUHrNLZsRSr2Oiekg E57Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gQqsTnDTbMUkMmjOrOFzuKU65MjxUWGBwC9e8Zr2uPw=; b=enVLcU4S4rVXRkwITFcIP7JXQfIem9C43V9+oUhvj2M8S88zrdAly9nNX9aNK9XLdb CA+JxSjN1cajaw/CV30g9133xB/HCG6EhD4sFPFhhdzT0cTV0UR0N50mGLihajAsiaMj 6hkg0a7adSYSDUJx07+luFUxl0UkSGVJ+wi9M3Qz0eBoTJy5ivSD3d/vo1jjEHL9d7k2 m+JBpaFzVFy1x/JVgiqVpevM/GPOS8Vr5u/2KUyBuTRyxj9YdnbnHdM9LZe2dyyyGC8v b2jZX/QGY3te55D00dzkfgf7SkWWpZTQgN5RUaIWXAiWsW98dTR7DiAuAEwc5sZI99i6 t+Zg== 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 z2si27373679pgu.168.2021.10.19.03.04.36; Tue, 19 Oct 2021 03:04:49 -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 S235169AbhJSKGm (ORCPT + 99 others); Tue, 19 Oct 2021 06:06:42 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:57571 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbhJSKGk (ORCPT ); Tue, 19 Oct 2021 06:06:40 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R251e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0UsuI4X._1634637863; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0UsuI4X._1634637863) by smtp.aliyun-inc.com(127.0.0.1); Tue, 19 Oct 2021 18:04:24 +0800 From: Tianjia Zhang To: James Bottomley , Jarkko Sakkinen , 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 Cc: Tianjia Zhang Subject: [PATCH v2 0/2] use SM3 instead of SM3_256 Date: Tue, 19 Oct 2021 18:04:21 +0800 Message-Id: <20211019100423.43615-1-tianjia.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.3.ge56e4f7 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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. --- v2 changes: - an additional macro with the same value is defined for uapi instead of renaming directly Tianjia Zhang (2): crypto: use SM3 instead of SM3_256 tpm: use SM3 instead of SM3_256 Documentation/security/keys/trusted-encrypted.rst | 2 +- crypto/hash_info.c | 4 ++-- drivers/char/tpm/tpm-sysfs.c | 4 ++-- drivers/char/tpm/tpm2-cmd.c | 2 +- include/crypto/hash_info.h | 2 +- include/linux/tpm.h | 2 +- include/uapi/linux/hash_info.h | 3 ++- security/keys/trusted-keys/trusted_tpm2.c | 2 +- 8 files changed, 11 insertions(+), 10 deletions(-) -- 2.19.1.3.ge56e4f7