Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp988855lqp; Thu, 23 May 2024 06:15:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUoDUW6zJkeumAGCtUIVrTVJmpOu1+NouvE25FJdw/8PNWtumWeDAEzlzVBgCjY+XlD9HjBMyM7Jz+lnIALfthoS3wVC7bsNwsYJDns1w== X-Google-Smtp-Source: AGHT+IGOou4Gg4xGcJhWshwsHZjmm+TJsjXlF8MS6/PHIdxA9eauAja5IlN98gQDMF8nipx0etu+ X-Received: by 2002:a17:902:f682:b0:1ea:f7d4:b613 with SMTP id d9443c01a7336-1f31c9f8e9emr56884785ad.62.1716470100659; Thu, 23 May 2024 06:15:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716470100; cv=pass; d=google.com; s=arc-20160816; b=P9qi1Dn43bRzDbPxvhGJKpWpLVbgV/s/rgk47yZfDnCQvn+Ttxo5k3aEtx5m2OSyzl E63fzTpth/EyyLs4ZPhei+mAIbzX+OIzHQYdEjp0wHGxlkMEe2a9ZPdv1xDeQEC0/Jrp ILVqbfJtCU67Wfihq5mvOMwvq0tmRNfaB83390eViNGg3Ra3rQ3uMQNvzemH3Yg33/us oxRkEAvel9wojl5/RWwn8lBeFGmBmuJ3kS9/16t7bjCECTaTgzxPV8Mg5yLp3CKsDBDH JFGhbhkDlfqMaYNxfpYt9k01bA6dJBRovPltCJnsHv0tRACgv8m8nHjbOgbCcE15YMcp nRSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=ro8oUuSe2aBGZ2HuDQsEFv+uAlbmm8DP9q4uUbBGVPU=; fh=Ne+2laZ4JjSazfYm06s+QlkzFJnWHNcS4KhVPqjuj+s=; b=0AxswME2uSQtAqAg4SOd0uqpy/1exdqd/cIaXjJ1J0jYHaJZEXSWpx2rMJskXqW9q2 WLTeixT+M5R8scey3CHqfiX45qG275EBEK8nhSkyPNmsboD2Yc4Rxi9vQNgcTFPEWAvQ pe1DPguW5P+SS/fePFiJs1WgKL1odHowjCCiWnRCQH07flopLPVbEltAOOA6KWGY8UX6 aHn0LH9SqUH2ijeOj1ej057Fkt16HxWq5bNN3KZqc21XKd2JCmngaJNHTtaiGQBkkoCx 6y2MJzNlFXpM3HNSPdaYnaop8BMPU0GI7O26PZGf0gBKrgKEpJn3FtzIC+pxcFO4dX9n aOpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QNxg/yTX"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f31dbb32e6si20994845ad.153.2024.05.23.06.15.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 06:15:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QNxg/yTX"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BD128B220A9 for ; Thu, 23 May 2024 13:14:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2377214A618; Thu, 23 May 2024 13:14:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QNxg/yTX" X-Original-To: linux-crypto@vger.kernel.org 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 C4B1114A4DD; Thu, 23 May 2024 13:14:48 +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=1716470088; cv=none; b=Dguk6CrRu68GEVsMZRkhwSlmkRLbcitzOTgUs+vNP04j8BdxfYflkK5tmHKGbvN85DxHnDDZZ/ioZ2kIFpuOhUv70StZW9hs/FePqws6oUUd8DAY5fpafmNYbq2c/OY7ibdN6dFrgfsQ6tWSMbBVOJ34gwi02SN95zlmYYaMZ/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716470088; c=relaxed/simple; bh=X0IAiBqRUY0FLq2kdKZIILu6oiVxWr2GiV0LmniCoGc=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=LLN6eZhi/4x46z1p38hn9FiZHpx0YgajfWuYJHA9Tav/jKfX/vozlIhno30CcOYGqMI1cuZjoRoAZxbJDYYCnxkN9x0aDzszlp8Fy1JWU/gjDP0XNNiJpSbbUHByZjSmdX7CZx1lOp/Y99kje8gplFQbh84CwEi37sMvuPbctyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QNxg/yTX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2B70C4AF0D; Thu, 23 May 2024 13:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716470088; bh=X0IAiBqRUY0FLq2kdKZIILu6oiVxWr2GiV0LmniCoGc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QNxg/yTXnENN84R1B2lT5zl4TJlhQ6yOwB9Npy0CueD1wtrpmzDDZK37QO8ypw2b/ 4CPn58JDHOJx4atTlQIB2L9vjw1tRZgjWeadTKPV9z/H9ytHXn2R1XHEfU7pk99/TQ qlmxDXIQN3E9bTUCMBQtjcr0qfOBOl/+x1GyEgbRgAJPN6DIk6L7FSRZGppJNBjgOw wUWCXNx/nsvFSlz5UmtQg8kms5cHYYDOskoiqGWq+Sfe+UFQkB/150aMPx2n3WZj4K jF3jmvUiDWVrmEXWaspw9Blvndmpv9RPgwSkKK8P7bmzQ4psxsFguvsZDFH5wxozTo 2eA+QRMpaCZrg== Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 23 May 2024 16:14:42 +0300 Message-Id: From: "Jarkko Sakkinen" To: "Jarkko Sakkinen" , Cc: , "David Woodhouse" , "Eric Biggers" , "James Bottomley" , "Herbert Xu" , "David S. Miller" , "Andrew Morton" , "James Bottomley" , "Mimi Zohar" , "David Howells" , "Paul Moore" , "James Morris" , "Serge E. Hallyn" , "open list:CRYPTO API" , "open list" , "open list:SECURITY SUBSYSTEM" Subject: Re: [PATCH] KEYS: trusted: Use ASN.1 encoded OID X-Mailer: aerc 0.17.0 References: <20240523130839.31265-1-jarkko@kernel.org> In-Reply-To: <20240523130839.31265-1-jarkko@kernel.org> On Thu May 23, 2024 at 4:08 PM EEST, Jarkko Sakkinen wrote: > There's no reason to encode OID_TPMSealedData at run-time, as it never > changes. > > Replace it with the encoded version, which has exactly the same size: > > 67 81 05 0A 01 05 > > Include OBJECT IDENTIFIER (0x06) tag and length as the epilogue so that > the OID can be simply copied to the blob. > > Signed-off-by: Jarkko Sakkinen Oops went out by mistake was going to have "--dry-run". I'll resend this one, sorry. BR, Jarkko