Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp13486032rwd; Sat, 24 Jun 2023 00:54:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5CIfP6uCK29DZEzTkiOJQGHkPR/VqGTZ9FWAM9+Eu2mIG56CstPSVzjcm0h1O7boHnDs14 X-Received: by 2002:a17:902:ea01:b0:1b3:e842:40a7 with SMTP id s1-20020a170902ea0100b001b3e84240a7mr27619258plg.1.1687593241830; Sat, 24 Jun 2023 00:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687593241; cv=none; d=google.com; s=arc-20160816; b=0s+XdZ+45BH2ca8I7Kp2PzCTHh7mDhCwqMrCVFkwzDJMz/LxbHzefCERUFGpiho86b uRwyak6+5/mD6waiL9IrgP011bS9BU9sMhqRHSs5Ovq7bhY0qetlahZBtdF6zLgis9Ss zAKbkgMLJ6SG3BsR8AyA47alB8zoFIFrAtsv9xe+FfaNg/ohYu0HON1kFRMwFDR72irr Pu0mUFn3mQNM6+850w8kpyE74r+BYTNmai5x7c5cuDTIy76hugRZHcBvqmmDyx7t2W5N C9LdcvWj268V6YLSqVLxmXRQm5kscZB79S+ZF+5mB1ygzunnDHKfyM6Jg/sMgySrSODC ycoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gD+KIPAEvUWKdrbPTADbU6mJZEvsQd4sICnOBlOTBWU=; fh=gTFiiFZZS38qg9P6NW1Bbo2nTBpyZ4PBZ2gIQt/DMdc=; b=cMvWvDylpIVPPEOS5oiOTBBz2Hga2Nquw0ImnbhnWmFeOvDYOW9mmtwCpoFvkMXp61 N19ck50ZlRU47bmI4vMxidoFKUY7VVEIPDVkiu6GD15uAEnVaXGYm7/cK8wZDzRMmQVl F0nhR9n9c2T5W/de9v9B3qvy5PH0JyTe8XS3LMROs5Z6zDhdryXZXJvV0M1JrTuONQez 05dLfWJlpUjwuO3lA+S3hNHO/j1s7+JAumuD4FsRc1CEuVLMwcx6lp4kl7k0ggCFbA5z jGYlYITUjHqB74JsWo4lVBiN94m5t21Fj2tafFddA6M39PCtohmGa+idx4ZuGVOt43Dk 4b9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UWnXAitX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a170902a61200b001b5219acbbfsi848292plq.359.2023.06.24.00.53.27; Sat, 24 Jun 2023 00:54:01 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UWnXAitX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231728AbjFXHsB (ORCPT + 99 others); Sat, 24 Jun 2023 03:48:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbjFXHr6 (ORCPT ); Sat, 24 Jun 2023 03:47:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CC0119B7 for ; Sat, 24 Jun 2023 00:47:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E0AC860B86 for ; Sat, 24 Jun 2023 07:47:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50A54C433C8 for ; Sat, 24 Jun 2023 07:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687592876; bh=XEldgn6bhBSEZDNAAQvG79aKrxjb/pYkv/L2yRsBT0M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UWnXAitXpCD4FdFokbrU0pjmxv23ff/eEMBmv9WfAdciqP+VdFN3YINjsYJ59pwZM bIgwladbSABPxrfxHYQpV0wZy4D2MbriQjINlqVlYG8SQANz8WtfYCFJF55Pf5zAAv e7RA+PaEZoeSxwpr18tpAIWoxFbgojBvfMZ/1UjPxuDarPcFpt7QC7cYJYmQoPOl2J ZMyMwvkcx8VobtbsCxETkKamDzwj/DU0F3j/MRBxT3FWuU8yPmapnii5fLnpBpp94h y1oaZkwDX+i6Ut/cHjvDdyk0Z6wG+EiWbBnNhVGuVA8uiiR3j4fhXGkPhG3QBCq+7B wlMajp/XQtATA== Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2b5c231c23aso2822281fa.0 for ; Sat, 24 Jun 2023 00:47:56 -0700 (PDT) X-Gm-Message-State: AC+VfDw0zfqUic83rn09RJSA+4xUDhb5dBRQvo5OdoDXTVIoc30UB0T7 p/boYTyLXyR21hapHFnajWUV3AH9O8k2bJSMFZA= X-Received: by 2002:a19:e012:0:b0:4f8:70b0:eec6 with SMTP id x18-20020a19e012000000b004f870b0eec6mr4403314lfg.28.1687592874321; Sat, 24 Jun 2023 00:47:54 -0700 (PDT) MIME-Version: 1.0 References: <202306231917.utO12sx8-lkp@intel.com> In-Reply-To: From: Ard Biesheuvel Date: Sat, 24 Jun 2023 09:47:43 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] crypto: sm2 - Provide sm2_compute_z_digest when sm2 is disabled To: Herbert Xu Cc: kernel test robot , oe-kbuild-all@lists.linux.dev, linux-crypto@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Sat, 24 Jun 2023 at 09:47, Herbert Xu wrote: > > On Sat, Jun 24, 2023 at 09:40:59AM +0200, Ard Biesheuvel wrote: > > > > How is this supposed to work when > > CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y but SM2 is configured as a > > module? > > It will fail as it did previously. I'm just rearranging the code. > Perhaps when another algorithm that requires a non-standard digest > comes up we can think up of a proper abstraction. > Fair enough.