From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E0053A7F59 for ; Wed, 13 May 2026 18:36:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778697368; cv=none; b=ncUcJMAJJYl8C656ByNyKINufgxVfwIwDreIx6R6m69wblPH0I9In1+cu1wrFZ0wqa0V4CawpOiPABjxoxBx5Fj9GBMhSsgmHHMnZrut7/brucWRsN3CgmKR3OmpjFlj1huMzl4TrT4QhrSg5/eyTK/kTfI5J3L1hioCfKcGA4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778697368; c=relaxed/simple; bh=+TqM+PtcKsHz4Xzb0T/t9rjYOVVf8Wg55mJJ72MLd6A=; h=Date:Message-ID:MIME-Version:Content-Type:From:To:Subject: References:In-Reply-To; b=koGTdTXP0tZZH9H0R8XjNNYW2HLrMTo76WrpTXWsB7j7+Mn36t+lT2gLbK6KI/Y48l3SYMhXpsPeLOsNtz5ggW+bXpyiNg6iKX9ZvRxe7swPbK6/I0s7otfOAor9CEDbHV+XE338kf9gHq4XQBNRFHHhFtSxhzuzhRvHhdu5v44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=ZIKMEq8x; arc=none smtp.client-ip=209.85.222.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="ZIKMEq8x" Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-8f231f3b130so555287585a.3 for ; Wed, 13 May 2026 11:36:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1778697365; x=1779302165; darn=vger.kernel.org; h=in-reply-to:references:subject:to:from:content-transfer-encoding :mime-version:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=xmWhw8+BzycLbCZdUGo17yGhh7wc4olKhqN+RMzekS4=; b=ZIKMEq8xkGrjNG30QC3AIMbJd4ZWWAHLxvfJ94Q6RCyNGZd9fwLroog1punB40QvFw h8KizRwT7DCSOqhahlu5AoaV+rubVpQRLjun/HFcvoTThml4QjLWlRQoJ5hnpDsmTHE/ Gv5QJwFxNbvZpBjI46IdVB9Aao7868mlGoIKkjM5khsE8oQ6T9Ln5Zg9TYWPUXmtcW8V vdYwMl3mbr/4A3Zr2aXuX6gpQOzHHZ/+i0IgjYz+Y0zCB3fwyhxIT0i2WmCRsL6dOeH9 /9fDED+mzZLL5XvzHn6CW3wb7jj7pt1a8irMpLgDj7cT9O0VSwV1DbsmhhA6TU4UJ0CJ EMMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778697365; x=1779302165; h=in-reply-to:references:subject:to:from:content-transfer-encoding :mime-version:message-id:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xmWhw8+BzycLbCZdUGo17yGhh7wc4olKhqN+RMzekS4=; b=MT2qSnwExzDl9qcKfBqwaxdnFcz7Yg2SnE5Uttvdf4fLr/3zktk4D1S83lr551KD2h W9w1fnJp/7Jd7SjrZgsuCStDQADLTTDpbc9q4g7fn/tQaEhmrwoZO0MvaFvVS0wZtsyW nmfYWJjyj12Y2+UJPzecXtqxmDRLt3NTWHvO5HuJtOzFIxVr5cJtdi+sDkEtO1ebBF8S NTQbHDy342HJM8IvhJKcoyBjLt/ilg4dxMRWu9RNQCKOZoZoob6tIJETRW/rfqi358Ca JSlKAtUucKlWaMoH0BDSO3Ik5+e5Rwl0+UY7lTrgBlOc29PCpgU+SFIAyAI+exc/Mdwy x66A== X-Forwarded-Encrypted: i=1; AFNElJ9vZR89Xc9y7VJnmdGPuteuWXhYXrOSUctz481mYmilrr/8Q45a3pC3ixT8/UYuDgFBM1Vkd8Z6imLd7kM=@vger.kernel.org X-Gm-Message-State: AOJu0YzryAuDDWsdWCcIfrpsF2r7/LJpt9s908/wp6FKvMy4vdIBoWi6 PP0vAEK4WYgdHuHZCU+dWXUutjRNCJMWtqgj2wRK1MtKa6aEP4W8wKX7zVyRMLEFgQ== X-Gm-Gg: Acq92OEue6ZNYmr4xPOf+BYrokUjkWrohZFXHbHPvI4usg2F/OZVLOSLw3bp/2TABqT 2IWOtDS3mOogZGvD+A4LSmQ829js6CdHZ+EahUAD9vt/qMQdA5/E1zOqzmvJT3mNCN5ndigwMLB d2gg64Hmxg9NEFOcNTY+tX1+r2vtkL4bsXw+ggeT9ctlLLKs5ieSziqG0BUxU4fiy1p1M692NXT xuR60JlhFiKyXYp22kQR8Lg2xf5XdMjg2nktcHQf/K0DueaddTRru3qs9HlPZB6v4/mH4Ozd2av L5LMM0ROoRyzoQS+BBriIZ3JGsw1AUjO9Y/9IpQ0fCuFaGPADohIAxjN/Wo/PAOGnei8v0lM3Bo v4pgE49X8nv1eCn1WL0fnaousV+5WQFUthMQx50RDFcTO2n1cMMDgDZFY5AraKVUIu+JYJMqukR +6vWvFmTQ+CnLLxEhqPVpjqsB5fUPPzdQmWXmPzh6VgzocJWjct63VLE9Y3O6d2elcWUYl X-Received: by 2002:a05:620a:290d:b0:90b:9dca:2187 with SMTP id af79cd13be357-90fad385651mr655950285a.38.1778697364951; Wed, 13 May 2026 11:36:04 -0700 (PDT) Received: from localhost (pool-71-126-255-178.bstnma.fios.verizon.net. [71.126.255.178]) by smtp.gmail.com with ESMTPSA id af79cd13be357-910bcf3732dsm28874785a.33.2026.05.13.11.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2026 11:36:03 -0700 (PDT) Date: Wed, 13 May 2026 14:36:02 -0400 Message-ID: <64548a3cec806e2080ce4515777b4a39@paul-moore.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: pstg-pwork:20260512_1604/pstg-lib:20260513_1343/pstg-pwork:20260512_1604 From: Paul Moore To: Blaise Boscaccy , "Blaise Boscaccy" , "Jonathan Corbet" , "" , "James Morris" , "Serge E. Hallyn" , =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , =?UTF-8?q?G=C3=BCnther=20Noack?= , "Dr. David Alan Gilbert" , "Andrew Morton" , James.Bottomley@HansenPartnership.com, dhowells@redhat.com, "Fan Wu" , "Ryan Foster" , "Randy Dunlap" , linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, "Song Liu" Subject: Re: [PATCH v7 2/10] crypto: pkcs7: add ability to extract signed attributes by OID References: <20260507191416.2984054-3-bboscaccy@linux.microsoft.com> In-Reply-To: <20260507191416.2984054-3-bboscaccy@linux.microsoft.com> On May 7, 2026 Blaise Boscaccy wrote: > > Signers may add any information they like in signed attributes and > sometimes this information turns out to be relevant to specific > signing cases, so add an api pkcs7_get_authattr() to extract the value > of an authenticated attribute by specific OID. The current > implementation is designed for the single signer use case and simply > terminates the search when it finds the relevant OID. > > Signed-off-by: James Bottomley > Signed-off-by: Blaise Boscaccy > --- > crypto/asymmetric_keys/Makefile | 4 +- > crypto/asymmetric_keys/pkcs7_aa.asn1 | 18 ++++++ > crypto/asymmetric_keys/pkcs7_parser.c | 81 +++++++++++++++++++++++++++ > include/crypto/pkcs7.h | 4 ++ > 4 files changed, 106 insertions(+), 1 deletion(-) > create mode 100644 crypto/asymmetric_keys/pkcs7_aa.asn1 Merged into lsm/dev, thanks. -- paul-moore.com