From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFCA628FAB7; Mon, 4 Aug 2025 22:27:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754346467; cv=none; b=EKtqp1aKgpmLT4HTrlC0m0rPYGOZeAS9QwECbf1zV/pOw3WVO5LuXjYt+WPPgas8jG67YN8xGjtQ0hHBjYYO68GrMt3tTJUqijpV8U1MOjpgAstJ15znLQUBlxJOnqJXQY1VyBNlcIwTbPhqlTX458+euFmGnrpQ4b3fYFG7Df0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754346467; c=relaxed/simple; bh=SQkL0B5l5IjdctrHj3Gl99P5F9VDS4wOilY/RtX1PTg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=Hlk/OMOcUqaVE77oR80RZfPvzkcpIaKmTD7NsFsuItEKs47nWiukGwsyIXUyHLBCw9RTPKDvGX8zAH3XoMKVKZ+pK5M1+Crx2y4rAL4qxdgu1XiQ3uAnoHqghkLWim+MCnz/GjjkdYLBQaVi7yS6I5fXjZMiqX23WTd/V5LoNlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dCUA+TqS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dCUA+TqS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADC17C4CEE7; Mon, 4 Aug 2025 22:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1754346466; bh=SQkL0B5l5IjdctrHj3Gl99P5F9VDS4wOilY/RtX1PTg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=dCUA+TqSKgiDrbi8Yua1m4k1ct0xhkrOCxL4Ib5uPhbm+La5GrjSQyO6SChcCq32d HK6xSeGnMKeYjihhJu18HuF+yEy76Qtw9C8kXM5x1W5WO61rhm9PHtEfdERBAWIhWE N/FeCXaEevwGpDvhJSfR86QBJrBGmz+LfcOG3xvQixpngjwAG5I4HhUmxtjLNJbFed obc4+eNOZDU9pyiyUAKKg505Dw5L812k5rxaTooPKzpBwezSkNylN/asPFr0+Fdn2X 02da3GSV8+UKz/f5DtSOq1eQDxpRtahhBjlXboTe1jUoEo2mD7/SgxpQ4pUr+jBm74 UZOdCe0cWeUBA== Date: Mon, 4 Aug 2025 17:27:45 -0500 From: Bjorn Helgaas To: "Aneesh Kumar K.V (Arm)" Cc: linux-coco@lists.linux.dev, kvmarm@lists.linux.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, aik@amd.com, lukas@wunner.de, Samuel Ortiz , Xu Yilun , Jason Gunthorpe , Suzuki K Poulose , Steven Price , Catalin Marinas , Marc Zyngier , Will Deacon , Oliver Upton , Dan Williams , Jonathan Cameron Subject: Re: [RFC PATCH v1 18/38] X.509: Move certificate length retrieval into new helper Message-ID: <20250804222745.GA3645133@bhelgaas> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250728135216.48084-19-aneesh.kumar@kernel.org> On Mon, Jul 28, 2025 at 07:21:55PM +0530, Aneesh Kumar K.V (Arm) wrote: > From: Lukas Wunner > > The upcoming in-kernel SPDM library (Security Protocol and Data Model, > https://www.dmtf.org/dsp/DSP0274) needs to retrieve the length from > ASN.1 DER-encoded X.509 certificates. > > Such code already exists in x509_load_certificate_list(), so move it > into a new helper for reuse by SPDM. > > Export the helper so that SPDM can be tristate. (Some upcoming users of > the SPDM libray may be modular, such as SCSI and ATA.) s/libray/library/