Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5915688ybv; Tue, 18 Feb 2020 06:25:22 -0800 (PST) X-Google-Smtp-Source: APXvYqw+cdor+bwpbWxHIUuLAYZKs5nhjbrn14438zVQ0onGXx6yN6n0hAPrxfZMZ9xDaJ/MsAk3 X-Received: by 2002:a9d:7342:: with SMTP id l2mr16197129otk.98.1582035922545; Tue, 18 Feb 2020 06:25:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582035922; cv=none; d=google.com; s=arc-20160816; b=xTN5pvPiwZKjvKSuHJ9Nty5CiYhlfpXhXZAa3AbOawoYAX5vYo3QD9ltzpxDDQgLh9 RmU0J97dNXrIqFibbDjZSwL/wx47bOxNiZSx1//7MASYWjms4vOa2sGStk/+94r5kBVp T4Zviu5GR6HmW/RTnfzN91QwBjKEZo+rfPR2FjWGyjGptamsftaTs4AY0zZGgmmiwZ9/ KWvA19Le4h/zaOMtAcVbpBcpjjLEjCgQb52Mb4NvkCPECEQK79FXA6PZ19YbR2oTY72+ i84EEz89UTvJloVzVYuyRPu8Mpn+VIGq7yfQb4azIpamLtvzIwOQ10J2Or0kIOPUzjoq LySw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=8tG3Qkixa6VDRU7jiiXxpdgMYmFPvgy4DO7Hz+j+6S8=; b=u2l3a58ntZ5Dh6y1GQ0XpopvfurUKj576sZ7U09zdvRD4Lz5XBClF7R0HqA5YXLZJU B5JsW6VgV/lZCsUJVq35s/IU3maqN6A58idW5iP2P/aUeVYTXX3MjST3ERJzZYsYriic tqpYoSrz2vsOwMdj/Yk7/4JXq4xKi/6qW+EFqjidueCsZ6L59X0haifKaQ2+ptguoh5x x57oX3f9WRoB578aYYBBx8hnQ9ryAT57OdhOo/X6eTGPqbeEdduIYWumhw13ifqq3l14 koDsaO3G/qSShwGjEPgEsLp6BxTO1iKTaGgMffWVreUK2uGwnfFFfCuJFeTRM0sNpa/N hLFA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si1942638otk.227.2020.02.18.06.25.09; Tue, 18 Feb 2020 06:25:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgBROYy (ORCPT + 99 others); Tue, 18 Feb 2020 09:24:54 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:32162 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726402AbgBROYy (ORCPT ); Tue, 18 Feb 2020 09:24:54 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01IEOTAK120823 for ; Tue, 18 Feb 2020 09:24:52 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2y6dnts33n-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Feb 2020 09:24:52 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 18 Feb 2020 14:24:50 -0000 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 18 Feb 2020 14:24:46 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01IEOjkQ40108542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Feb 2020 14:24:45 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5A24611C058; Tue, 18 Feb 2020 14:24:45 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CBCC411C052; Tue, 18 Feb 2020 14:24:43 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.142.171]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 18 Feb 2020 14:24:43 +0000 (GMT) Subject: Re: [PATCH v2 1/2] crypto: fix mismatched hash algorithm name sm3-256 to sm3 From: Mimi Zohar To: Tianjia Zhang , herbert@gondor.apana.org.au, davem@davemloft.net, jarkko.sakkinen@linux.intel.com, ebiggers@kernel.org, dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com Cc: linux-crypto@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 18 Feb 2020 09:24:43 -0500 In-Reply-To: References: <20200217093649.97938-1-tianjia.zhang@linux.alibaba.com> <20200217093649.97938-2-tianjia.zhang@linux.alibaba.com> <1581989598.8515.233.camel@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20021814-0016-0000-0000-000002E7FAD5 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20021814-0017-0000-0000-0000334B0F1B Message-Id: <1582035883.4576.8.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-18_02:2020-02-17,2020-02-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 clxscore=1015 malwarescore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 mlxscore=0 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002180112 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-02-18 at 10:34 +0800, Tianjia Zhang wrote: > On 2020/2/18 9:33, Mimi Zohar wrote: > > On Mon, 2020-02-17 at 17:36 +0800, Tianjia Zhang wrote: > >> The name sm3-256 is defined in hash_algo_name in hash_info, but the > >> algorithm name implemented in sm3_generic.c is sm3, which will cause > >> the sm3-256 algorithm to be not found in some application scenarios of > >> the hash algorithm, and an ENOENT error will occur. For example, > >> IMA, keys, and other subsystems that reference hash_algo_name all use > >> the hash algorithm of sm3. > >> > >> 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 > >> Cc: Jarkko Sakkinen > > The previous version of this patch set is queued in the next- > > integrity-testing branch.  That version of this patch didn't > > change TPM_ALG_SM3_256.  Unless the TPM standard was modified, the TPM > > spec refers to it as TPM_ALG_SM3_256.  Has that changed? > > > > Mimi > > The definition in the TPM specification is still TPM_ALG_SM3_256, please > ignore the modification to the TPM definition in this patch. Ok.  Just confirming that I should ignore v2 of this patch set.  Upstreaming the original version, as queued in next-integrity- testing, is fine. thanks, Mimi