Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1031146ybp; Fri, 4 Oct 2019 08:34:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+MTIprzr6hjqFkX/Pi2mRB+eWa/G9gupV7wrgE2m5f4fkSvJrHeIz4pcvGStqhWy0JWwb X-Received: by 2002:aa7:c71a:: with SMTP id i26mr16091227edq.68.1570203269694; Fri, 04 Oct 2019 08:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570203269; cv=none; d=google.com; s=arc-20160816; b=Ec5nroqDQN6Sw28EJh+sGM9tzu3GV3NcOHCPGcFKIh1JVNGVU5UsWDbm1h2Bouxxm8 ZHpxwIfo1QdFLG+hAzV5ckkxIDnBcryFlP1DRrMFVpvsAi1xapNsKl43pt53gUATxj74 8w2ZVfAeEcSnfCxkQzIxOnaTDfZ+Yc140UDOjXEPJWHjUjwLPQFfDsjZhdoNA1mFdWOo YJ82y387HqRfgpHhBSQ8FhcattHUAP6l36QvyLedAoYMuNUBkxIhbktz/7BI66BoOmiA mJKo2meMDxRcDH1LhxwVbe3PDYhMZ2BrPJdhV1VxnJTg778+FFfvdiGcPCETGk3CZtNc oUAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=evmpiSUf6np+h0p8Thl5jAbf2UzUcE2NJZEGvA+xN1A=; b=ujixFPTRGFpt6WgbzFC2RO9D6cJjRIP4p7w652oXUi0wWU0nBjEu+06dvEln/7Tfp2 jVW5HbTDc6e9FPYgRAX2zSA5UaGsXg6M+oEH4pftYwShFQ6ZFZn5IToqGamL1wcoOIe5 +hdf8zC1CJHBEzNPtdrfImroPvzMMptM38VIEztDvgGVQvSEErqbkVhOAfjQispcHYJ+ l63mBBDuOW2FJ5K0NwT9lsuD/MKUdAEF1eRF8dFi7thngW3SgrRnnRZdJriBLV3zIwbR lS3Ayznc4ZLYbUTav9aUVI43ZpARhWFMZx0fvLq53mEOOSvynRsnHV6at+aGCJe7bp7e Tn8w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si2877739eju.311.2019.10.04.08.34.04; Fri, 04 Oct 2019 08:34:29 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389556AbfJDPcl (ORCPT + 99 others); Fri, 4 Oct 2019 11:32:41 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:42432 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389318AbfJDPcl (ORCPT ); Fri, 4 Oct 2019 11:32:41 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.89 #2 (Debian)) id 1iGPZN-0000y2-3K; Sat, 05 Oct 2019 01:32:38 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sat, 05 Oct 2019 01:32:35 +1000 Date: Sat, 5 Oct 2019 01:32:35 +1000 From: Herbert Xu To: Pascal van Leeuwen Cc: linux-crypto@vger.kernel.org, antoine.tenart@bootlin.com, davem@davemloft.net, Pascal van Leeuwen Subject: Re: [PATCH] crypto: inside-secure - Add SM4 based authenc AEAD ciphersuites Message-ID: <20191004153235.GI5148@gondor.apana.org.au> References: <1568400290-5208-1-git-send-email-pvanleeuwen@verimatrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1568400290-5208-1-git-send-email-pvanleeuwen@verimatrix.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Sep 13, 2019 at 08:44:50PM +0200, Pascal van Leeuwen wrote: > This patch adds support for the authenc(hmac(sha1),cbc(sm4)), > authenc(hmac(sm3),cbc(sm4)), authenc(hmac(sha1),rfc3686(ctr(sm4))), > and authenc(hmac(sm3),rfc3686(ctr(sm4))) aead ciphersuites. > These are necessary to support IPsec according to the Chinese standard > GM/T 022-1014 - IPsec VPN specification. > > Note that there are no testvectors present in testmgr for these > ciphersuites. However, considering all building blocks have already been > verified elsewhere, it is fair to assume the generic implementation to be > correct-by-construction. > The hardware implementation has been fuzzed against this generic > implementation by means of a locally modified testmgr. The intention is > to upstream these testmgr changes but this is pending other testmgr changes > being made by Eric Biggers. > > The patch has been tested with the eip197c_iewxkbc configuration on the > Xilinx VCU118 development board, using the abovementioned modified testmgr > > This patch applies on top of "Add support for SM4 ciphers" and needs to > be applied before "Add (HMAC) SHA3 support". > > Signed-off-by: Pascal van Leeuwen > --- > drivers/crypto/inside-secure/safexcel.c | 4 + > drivers/crypto/inside-secure/safexcel.h | 4 + > drivers/crypto/inside-secure/safexcel_cipher.c | 280 +++++++++++++++++++++++-- > 3 files changed, 274 insertions(+), 14 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt