Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp1019105lqp; Thu, 23 May 2024 07:01:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkE8Q++WSeo5NV0JCJUrKUi4g95uZ4Dn/pC5SIIxznyoK4bD7RIHD0B1gv7k+9sd0bT2s5TDnsENlQVPNEHPx+7oVPJ6dF4KFk41QhFw== X-Google-Smtp-Source: AGHT+IGJeUHtDImRVjGciqVrRsz/PWIXxQ7WSfI6uLHG9O4P2QnWbbCHb3FzkTUGuxWW6Y5SCxek X-Received: by 2002:ac8:7f83:0:b0:43a:699e:114c with SMTP id d75a77b69052e-43fa74df508mr37207781cf.31.1716472893666; Thu, 23 May 2024 07:01:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716472893; cv=pass; d=google.com; s=arc-20160816; b=JSNMVEYMc3TffJNsaXWf+rtNQhBjmF/HLl759lrIjl0DUHd+Qi2UK+ErKydux7SnZd jij6MMxVeFD5ErzoDT0NqAKcsdi9t0NjHXUrSSc3XxUK44L0KsW5lthP6HLNWJyZQeq4 kdAsCtoVYcLSvCDuhj+Z9OknZ5/PTJzAuV+qyBeEaS5jHInOMucQGU0FM9YWD37oQjTQ UYepQMSIsPmUJsVQDq1z5w4TjJhTogebnQf8knMRMab/zjx8F4bjapedtfeIwvMI/NyV +4p4A4ALuQcRM/3Ytw6j6fyX6Lh5hpoafw3PUDK69Gbq4JlM06bwPhjbaqEOf33lmjib EFtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=Tv+M/BPMsIg6To/5xqGV2+JTONUffFDqq0gaFaKDyH4=; fh=Gqo6XPvI8PtVvH1fOvfMFe387sMIuokEHWSI58pG2/c=; b=Yndmz0V00VHhd6E6eL2cj15pShRpPXxGlH2QQwCdLaseIGHL0TT/yJSLs1kwKSG/SR z3ydpL4ypbMdyVna3UE80HBPHGY1mammTrK5IHoA8Qm8WhaW3gg6b9KWMXwTdfv1lbTN Ncj832Be8Av7rvkS/kcvVGfU1pS11ZiuSjNzZu/uN8kKlp7FnHotbl+7EhXKhBMuwXZz Nh45iJRuNGYerquZt1P1VWlA/XGR9GeveHjQIzChA3+csVL7mRpLQCJOGyUIfOG7GWcq MHn01r/6OHTHTARAPDnGlQXnEWv9yoyd0Ny/V7ugEbob7rO3jYQXn3vzg2Uz33xtRaP2 WMcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gGjpHLR9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4357-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4357-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a1e0cc1a2514c-7f8ff9ebc68si5881543241.6.2024.05.23.07.01.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 07:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4357-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gGjpHLR9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4357-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4357-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id ADD5D1C228AA for ; Thu, 23 May 2024 14:01:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43CC514A62B; Thu, 23 May 2024 14:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gGjpHLR9" 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 E3E901DFF8; Thu, 23 May 2024 14:01:19 +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=1716472880; cv=none; b=bf5kBh97xEMxUV8kL+Nc1S5l4jOWXeN4bz/+3a/rSKlYN7EdV0YXHtx0CvM7OH1RaLnYAD4TqiMe9Er41AUBqx3zKjGuQg+qZ6GpEHfXvwlLqhxXRou7oTI5LtJDjNYziis9KPC2K0pRDOBy21VjBYBOZg44xb8fnKP8oH8dey0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716472880; c=relaxed/simple; bh=tRKZmbPOTvI23VV67m+vV9W4fwcgI39dj6FthEbjgi8=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=njM+N0TyQ/OA0yrBqjPtSzJw1lHQIk/2c3FNTtAfG/1z4btDdBQ16zC8vRHQDzWJ4DMwQ1rjre7OEtVVKksRl0vDGUAmd0xAygOvB4LFkh/Eudqiz8smayVkzwcfpsxtmyiZ5ERg2hC40sLDzqnDp14l8XB+TB0BuT50GVQyDUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gGjpHLR9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45FA9C2BD10; Thu, 23 May 2024 14:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716472879; bh=tRKZmbPOTvI23VV67m+vV9W4fwcgI39dj6FthEbjgi8=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=gGjpHLR9w345lhL8pxttkPEpky4+fa6YtHkdcCUWM08co1kKjYD9+Q0cyUtVBZONN Lw+TsMUFQYmq/xWzr9lmWVsKbiYbCwCXosLZtmqq+kAiQynlnlxB3gzshLWHyosTs3 S/Nr8gMPsHWKB9I9kUxDdr3TPBOQjI655XRen2zwRKZNZ+Xb2RRXAfedfLKplf5JI2 NsUWSf/pc12UbaPPrgFLf1YpCyT9Ypnaj6j90/ge238n0m7lrsM2FWoNDES0GMkdPS 5gpkPEmuAMAMvkZ7xPKV6xoxwdxbgsiZczivCCdYjnxVgrtHG2vTmOgTCaWQNxhWhP 4boxiv62xXGLA== 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 17:01:14 +0300 Message-Id: To: "David Howells" Cc: , , "David Woodhouse" , "Eric Biggers" , "James Bottomley" , "Herbert Xu" , "David S. Miller" , "Andrew Morton" , "Mimi Zohar" , "Paul Moore" , "James Morris" , "Serge E. Hallyn" , "open list:CRYPTO API" , "open list" , "open list:SECURITY SUBSYSTEM" Subject: Re: [PATCH v2] KEYS: trusted: Use ASN.1 encoded OID From: "Jarkko Sakkinen" X-Mailer: aerc 0.17.0 References: <20240523132341.32092-1-jarkko@kernel.org> <576061.1716471541@warthog.procyon.org.uk> In-Reply-To: <576061.1716471541@warthog.procyon.org.uk> On Thu May 23, 2024 at 4:39 PM EEST, David Howells wrote: > Jarkko Sakkinen wrote: > > > There's no reason to encode OID_TPMSealedData at run-time, as it never > > changes. > >=20 > > Replace it with the encoded version, which has exactly the same size: > >=20 > > 67 81 05 0A 01 05 > >=20 > > Include OBJECT IDENTIFIER (0x06) tag and length as the epilogue so that > > the OID can be simply copied to the blob. > >=20 > > Signed-off-by: Jarkko Sakkinen > > Reviewed-by: David Howells Thanks! BR, Jarkko