Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp975947pxk; Thu, 17 Sep 2020 23:49:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwyCXok2Yji3k0hl4gFK9pLOsZ2sk7ZqnIKBtkOM0/BJXcxOBU3i8eX3uNJ7StNQy4ayIu X-Received: by 2002:a17:906:f6c6:: with SMTP id jo6mr34204075ejb.251.1600411747985; Thu, 17 Sep 2020 23:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600411747; cv=none; d=google.com; s=arc-20160816; b=KzGqTPpLXN4t6lumwyHmG9PxUEnRW+PwpHWwiHnGyhZf+56yC5pIbZ2RbFHcvAKe9D q/Dkq7PKpVILj8fidIWY9cU4hT6xk/B88JCdERB2NCw7ueIOQXsmE7HcwtGoFM1CjIIn 5xKsjCnZ+/+/smT5h+jCfXNX8S2bz5uYECDNefZDQoLOxHTDXk/NEgmH0xeEE2e+bR8K RtKJ/87Hc4PoFY6c5q1WXnooMx5LJGd/3uk52wHbzAaeOL8EosOU/cSpUp2bEmkopguJ SVwoyGktYPyyeT7rS03urIRoadcdDgmJ+iqqI75+VhVpMXtitN1hacI75hL23LBKQ8Sw Z7vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/uM26BEHQrmUKTKBgD8jmTG5YUcW/yb6CjL7bfT/BDY=; b=soj9V1mY9/KaftIPzaxh6T7rKl9xzyoUrCmah2WpRI3JTDcMRPT0X2OgbwfUUr+qD8 2kFyla5RTTQP+fqgA3hfwUvaq6+WBeiQrkLTY0BRP36LnPeXbe5Yx27SM4BxsBEUlOlr YQtsH/d8cXEX0AItNy6Fqv2IfWz6FB5/+9b3T/ol2izpE7ru1Evqk9y4rueM3jZmWEpj QtPuKPbs3YakEKhxtzFSu3b/ZCasJMomAARANyerxdrqSRGXFQEGHzwCDr9FE+JV10mx m11LTyjUpy9B9Z63FG/2eqEZcol9RFBWe6d+27dONwt6ZduQWjpF0CnJaqWN1BjUXyH5 Bfng== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si1410429edh.371.2020.09.17.23.48.43; Thu, 17 Sep 2020 23:49:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726424AbgIRGsg (ORCPT + 99 others); Fri, 18 Sep 2020 02:48:36 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:57498 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbgIRGsf (ORCPT ); Fri, 18 Sep 2020 02:48:35 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kJAAz-0002f5-5k; Fri, 18 Sep 2020 16:47:22 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 18 Sep 2020 16:47:21 +1000 Date: Fri, 18 Sep 2020 16:47:21 +1000 From: Herbert Xu To: Tianjia Zhang Cc: "David S. Miller" , David Howells , Maxime Coquelin , Alexandre Torgue , James Morris , "Serge E. Hallyn" , Stephan Mueller , Marcelo Henrique Cerri , "Steven Rostedt (VMware)" , Masahiro Yamada , Brendan Higgins , Andrew Morton , Johannes Weiner , Waiman Long , Mimi Zohar , Lakshmi Ramasubramanian , Colin Ian King , Tushar Sugandhi , Vitaly Chikunov , Gilad Ben-Yossef , Pascal van Leeuwen , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-security-module@vger.kernel.org, Xufeng Zhang , Jia Zhang Subject: Re: [PATCH v6 5/8] crypto: testmgr - support test with different ciphertext per encryption Message-ID: <20200918064721.GA9520@gondor.apana.org.au> References: <20200903131242.128665-1-tianjia.zhang@linux.alibaba.com> <20200903131242.128665-6-tianjia.zhang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200903131242.128665-6-tianjia.zhang@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Sep 03, 2020 at 09:12:39PM +0800, Tianjia Zhang wrote: > Some asymmetric algorithms will get different ciphertext after > each encryption, such as SM2, and let testmgr support the testing > of such algorithms. > > In struct akcipher_testvec, set c and c_size to be empty, skip > the comparison of the ciphertext, and compare the decrypted > plaintext with m to achieve the test purpose. > > Signed-off-by: Tianjia Zhang > Tested-by: Xufeng Zhang > --- > crypto/testmgr.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) Is there supposed to be another patch that contains test vectors? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt