Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp205292imw; Fri, 8 Jul 2022 01:06:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u8R/qpmBRDUUTV5MMAM25gXRP1P/873PTRbvKxgZcyTL7YfXCayk8cMlt5BjXQEmrqSTAx X-Received: by 2002:a05:6402:51ca:b0:437:79a9:4dd with SMTP id r10-20020a05640251ca00b0043779a904ddmr2990087edd.319.1657267560264; Fri, 08 Jul 2022 01:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657267560; cv=none; d=google.com; s=arc-20160816; b=VzacPoNUSS2o3vWChNGpQqP7/w2LCZop1h3WrUtNOD6I4rXH4Sex2F5926IW2PbBH1 My2CF76BdBoSqccRiXbmQF5uEojbbCumuZrgDD09KCZItiV6OvhtMOAJNlz7CZ+mGC8i kwtoDPArxPFW/bEUbJCyFulwI5p+TT1D6A2pk8CzQrKkepPsIS1gQpEcZUkn+gegYPUY zS1+27tFJzdUmO/tlzTMa1wBMjDvg7m7Rq7aNWA3Ye7opl9+HzV5JWd/Pm/2/62EJvPG uEGinFidmMB1e0+cWMNIdne93sW106OYlCexJSfYRNr9OHmKjMNCggTBr3tx3/X5prv3 SgbA== 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=fxIxTO8/oIq/Iv7BT288fXGT6fk9/Hff6wvVFZqtpF4=; b=uQ7vcMQ+em8mJ2WEIv/WZbBwaU/PLTMLMiUSlBLEXrjSutPUX3NW5yfeg3ts9Y1+yL RBvqgF28v5sdYvLXwKlP0vGbw2VFGn6rady+Sj6PGUjiEhiM0dMEcx2UfdThK60rxQqx Ni9i2obCFaQ7SWlaJkmoNapBf1xjbJLPVGwjaBBdQMqD130rMp88+Apz75xx4BIA9S+3 Z0Qsjg43PymDvuIFGggr57J3Rlf+PeoLDTg4evYOZXYssM+itRTfbJfsWic97J01WqqL sVXJqlgeWrSHzLN/l4e8xT76vYnpibQy66QUrhLizrHZ8LcOgUHNQHP9AbZO27BA9vSB zyng== 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 hd42-20020a17090796aa00b00722f04dde89si21326750ejc.635.2022.07.08.01.05.35; Fri, 08 Jul 2022 01:06:00 -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 S237508AbiGHICh (ORCPT + 99 others); Fri, 8 Jul 2022 04:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237339AbiGHICg (ORCPT ); Fri, 8 Jul 2022 04:02:36 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD8FA7E028; Fri, 8 Jul 2022 01:02:34 -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 1o9iwZ-00Fryj-B5; Fri, 08 Jul 2022 18:02:32 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 08 Jul 2022 16:02:31 +0800 Date: Fri, 8 Jul 2022 16:02:31 +0800 From: Herbert Xu To: Ignat Korchagin Cc: "David S . Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@cloudflare.com, Eric Biggers , Giovanni Cabiddu , Tasmiya Nalatwad Subject: Re: [PATCH v2] crypto: testmgr - populate RSA CRT parameters in RSA test vectors Message-ID: References: <20220704103840.924-1-ignat@cloudflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220704103840.924-1-ignat@cloudflare.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 Mon, Jul 04, 2022 at 11:38:40AM +0100, Ignat Korchagin wrote: > Changes from v1: > * replace some accidental spaces with tabs > > In commit f145d411a67e ("crypto: rsa - implement Chinese Remainder Theorem > for faster private key operations") we have started to use the additional > primes and coefficients for RSA private key operations. However, these > additional parameters are not present (defined as 0 integers) in the RSA > test vectors. > > Some parameters were borrowed from OpenSSL, so I was able to find the > source. I could not find the public source for 1 vector though, so had to > recover the parameters by implementing Appendix C from [1]. > > [1]: https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-56Br1.pdf > > Fixes: f145d411a67e ("crypto: rsa - implement Chinese Remainder Theorem for faster private key operations") > Reported-by: Tasmiya Nalatwad > Signed-off-by: Ignat Korchagin > --- > crypto/testmgr.h | 121 +++++++++++++++++++++++++++++++++++++++-------- > 1 file changed, 100 insertions(+), 21 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