Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp400127ybv; Fri, 7 Feb 2020 01:23:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyrPiotkvxmMMZ8nHAL4emcJUOlwy6Apdy08b/195CKjqhXqZEUlU1xSwZ1owJtBcRPxS6D X-Received: by 2002:aca:6749:: with SMTP id b9mr1398392oiy.13.1581067420357; Fri, 07 Feb 2020 01:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581067420; cv=none; d=google.com; s=arc-20160816; b=0ZAsUkTl1drQ7fJ+zF4po8MylO89dJSH/1HayhRMgsjgMTRy/42U9wDYdpO2j2m/ne FmUWytHK7ydm/ZA7CoMc96woLf1mY+KLHDooCui6mfGQ3pw4YSbFZe4FdyaujyhG3YGn xet6pKHCPtIfD1HF4Np9vPYuc7CvBXuKouLuTYAirjnoL/jsKiuhG6wgjQT5a1jF5WqA 7KmEx58Oh0qp5E/eV5wysU9YomGS518/QwFK8n7JDikG4QDgvjRX/c04wUY0pbhxDdGM XWdjG8wTzd1e3HQbUVDahxL5J3kHmkXxYRSKvHohUvPhVgfemn6R6hZ1KMNX0t5y0lER HFVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=SZ5ETb5V7MvPFjfO2D4k9BSaO3dL6ul10521hs50Iv8=; b=ANcqea/2r/tpFI0crBktN++N9Fxh6bMy0aj/Zx7/giuKa6g3x+sY741r6mWr8yXLYy 9YYRSm2pOy0TbO3oZ7wUul/dSjA0VRdB6dVfCBytY2ssVMjfoXYj0BkVhSUBC39sT5Fn 9PfuMH5ng2V/5ZlEzpZz3xy7PCPEzSbwX/xt+5j1nXzoObBEWbpcCJoQEGdcM8iNbwzA zDAYeXYWoKC9AjjCYXk3El3LCs3zMWIbc+H9bn3NZknMSzrv4UOfPj7jFgXoOcvcn2uR RYqf+AWlbCX9wBsRJGmjlMCbtqXN3/+HNDgdP4AUMYbBOBLH8qpFXwB/u9N4hLhOrswI 3LaA== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si1305739otn.118.2020.02.07.01.23.28; Fri, 07 Feb 2020 01:23:40 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbgBGJWf (ORCPT + 99 others); Fri, 7 Feb 2020 04:22:35 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:59254 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbgBGJWe (ORCPT ); Fri, 7 Feb 2020 04:22:34 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;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=10;SR=0;TI=SMTPD_---0TpLhKLT_1581067341; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0TpLhKLT_1581067341) by smtp.aliyun-inc.com(127.0.0.1); Fri, 07 Feb 2020 17:22:21 +0800 From: Tianjia Zhang To: herbert@gondor.apana.org.au, davem@davemloft.net, zohar@linux.ibm.com, 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 Subject: [PATCH] IMA hash algorithm supports sm3-256 Date: Fri, 7 Feb 2020 17:22:17 +0800 Message-Id: <20200207092219.115056-1-tianjia.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The algorithm name sm3-256 referenced by IMA is implemented in crypto as sm3, which causes IMA to not use sm3-256 algorithm. This patch solves this problem by adding an alias name sm3-256 to sm3 algorithm, and let IMA hash algorithm configuration list supports sm3.