From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B34D1C43463 for ; Fri, 18 Sep 2020 13:34:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7DB19235FA for ; Fri, 18 Sep 2020 13:34:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726846AbgIRNew (ORCPT ); Fri, 18 Sep 2020 09:34:52 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:51263 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbgIRNeu (ORCPT ); Fri, 18 Sep 2020 09:34:50 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R911e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=30;SR=0;TI=SMTPD_---0U9K7wHw_1600436072; Received: from B-455UMD6M-2027.local(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0U9K7wHw_1600436072) by smtp.aliyun-inc.com(127.0.0.1); Fri, 18 Sep 2020 21:34:34 +0800 Subject: Re: [PATCH v6 5/8] crypto: testmgr - support test with different ciphertext per encryption To: Herbert Xu 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 References: <20200903131242.128665-1-tianjia.zhang@linux.alibaba.com> <20200903131242.128665-6-tianjia.zhang@linux.alibaba.com> <20200918064721.GA9520@gondor.apana.org.au> From: Tianjia Zhang Message-ID: <861bc3cc-2119-0325-33ea-828bd7e8544d@linux.alibaba.com> Date: Fri, 18 Sep 2020 21:34:32 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <20200918064721.GA9520@gondor.apana.org.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/18/20 2:47 PM, Herbert Xu wrote: > 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, > Yes, I was negligent. It is necessary to provide a test vector and I will support it as soon as possible. Thanks, Tianjia