Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp326804iog; Thu, 30 Jun 2022 01:20:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uCS0Jq8Dz2f6355xbZvxzJOPKn8s7l2TfSzXa8yBM/uG3RoNEroEZSlFhHc60/IhM6sIKc X-Received: by 2002:a17:907:8a21:b0:728:7984:76d with SMTP id sc33-20020a1709078a2100b007287984076dmr7675560ejc.189.1656577246231; Thu, 30 Jun 2022 01:20:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656577246; cv=none; d=google.com; s=arc-20160816; b=vgEScCAGRsf4THNCD0cDKjUu5YqinKGt5BuHMgwhiXeFQYUUlSBPh8krUblmn+eLrK alXHir9tp8smkBHyD7Yi3x/qzseuFdajCrfM+cSLH6QSp3aTZc3cDwhOF2jsoat6ywp7 sn0TvxK99IppkOK4I2XDwyU7aBpbYUVAS7ObEuQtZjRe6VNxLmZDAwEf61AtTMJQZ/Iw 5qV25uLYYKuBjfl3dlPWaNKfuLeXJoyhTgKLgE4Wavzbq8JPOZ3bOee8gUnLs2lsXMPg h4eyeuKqErUjEYRk0p0toIldBl7WK4h7yB4NC9+4EHkoztGOUeBpWsBBmxABmK5M6o+c /ZRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=uszjKw9Bz+peltzP6ahvX6CoXqFs6yWFdBjA8UObcfM=; b=Sf0xKxtI8V8YEZlMdqVk2VnQVGGbtt9/KDEdPBJboXh/9NrYcyZIJjoZctYmUutExG SWi3O+evJkIc1q0isHJg8uV4mhqPXya9IKJtozZjgfb2htpkxlwri7oiIVRQ96dybGXW +PVGyZ/C898iHQ0QfPBoOuvrO1XI4japjxftOlnnY+Grpxjx34owAK/mEdW0clF/qHBC qx8AoRjmPK292G7zQGSGri9XVzKLyJ9Kc4wVybBPqLVWh0w0oDoeicvsafS9g2oKiPYZ Vash6MsHJO6IDjYOOj9YtPSrIPhUFzWR1szaCS2WiPx5ZDiAJkm5Fawqu4a048+2fTHN 2ggw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq16-20020a170906d0d000b00708423d4250si7097105ejb.228.2022.06.30.01.20.20; Thu, 30 Jun 2022 01:20:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233308AbiF3ISt (ORCPT + 99 others); Thu, 30 Jun 2022 04:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234094AbiF3IRi (ORCPT ); Thu, 30 Jun 2022 04:17:38 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92D2F22BF6; Thu, 30 Jun 2022 01:16:31 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1o6pLf-00CyAK-Df; Thu, 30 Jun 2022 18:16:28 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 30 Jun 2022 16:16:27 +0800 Date: Thu, 30 Jun 2022 16:16:27 +0800 From: Herbert Xu To: Lei He Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, pizhenwei@bytedance.com Subject: Re: [PATCH] crypto: testmgr - fix version number of RSA tests Message-ID: References: <20220624100625.47844-1-helei.sig11@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220624100625.47844-1-helei.sig11@bytedance.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Jun 24, 2022 at 06:06:25PM +0800, Lei He wrote: > From: lei he > > According to PKCS#1 standard, the 'otherPrimeInfos' field contains > the information for the additional primes r_3, ..., r_u, in order. > It shall be omitted if the version is 0 and shall contain at least > one instance of OtherPrimeInfo if the version is 1, see: > https://www.rfc-editor.org/rfc/rfc3447#page-44 > > Replace the version number '1' with 0, otherwise, some drivers may > not pass the run-time tests. > > Signed-off-by: lei he > --- > crypto/testmgr.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 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