[lamps] Re: WGLC for draft-ietf-lamps-csr-attestation-18
Michael StJohns <msj@nthpermutation.com> Mon, 05 May 2025 20:02 UTC
Return-Path: <msj@nthpermutation.com>
X-Original-To: spasm@mail2.ietf.org
Delivered-To: spasm@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 36CC62506728 for <spasm@mail2.ietf.org>; Mon, 5 May 2025 13:02:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=nthpermutation-com.20230601.gappssmtp.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2RrJ0G6kKuax for <spasm@mail2.ietf.org>; Mon, 5 May 2025 13:02:38 -0700 (PDT)
Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 323F2250671D for <spasm@ietf.org>; Mon, 5 May 2025 13:02:38 -0700 (PDT)
Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-7c9376c4bddso615915785a.3 for <spasm@ietf.org>; Mon, 05 May 2025 13:02:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nthpermutation-com.20230601.gappssmtp.com; s=20230601; t=1746475357; x=1747080157; darn=ietf.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=sP0qLxy1xvdYuUUaBgh/fuHGMFBetTZ4hPjGcTQ9Y8E=; b=CMQv/VnlUqCS1nygy3Awh4PH7MKqXaC0O6GHVLmFrR8sq9awYO03MU5p3j+xAY34lN kQX/mUPTxMAnF0dgtMC6WNuWobednM+oIl1dRdtnk1/G0PzQqUvkw8GeZXkX9ANx2wk7 4yrMuQwLQ+AWWySHxbcby584sMOzibsPFuIZkXNqv6l6u/i0tdFik0IaDbophk73SWFo O4P3kT8L92GcRrHupM9HJUAryVhOLkWHCenSjfbDLgoRZ28mxq2HHqZPRimmKdzwNMNe MnyJtwkrhowWH3ba7CrnnzLXGMeaM+RfFSzBK18o9iK6mDi6Nvs5lJcEAiT/QSnw2UaP EnMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746475357; x=1747080157; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=sP0qLxy1xvdYuUUaBgh/fuHGMFBetTZ4hPjGcTQ9Y8E=; b=BuJ5gYXk8CgvhVEwUXyrD4B/WD6VI4jwXPRSAWU7Qe7a4BVXL3f8tC2EyYOZc34P68 IsHUkDS5SmMsT5GHWSW3Ble0N7EpsXqey4PeZUoXIId0KJ8t1FYzO01kDAXeQWlZPqwR yLxZ4/r5VlcVd9wfHE/T71ugfU2agw4zbFktND6Z/mdK95/LubTiaJLfQ3Pn//imU0Rn D2/eDz2QS3+NYmLIlm+C7WoHDhDI/sfi6JucAp0yQWW4/0JPW1RZRnqRcvBWp36MPp1y PjIbvybi3B8UjtOTq3qwxvSxLgUdsgsK0cNQ6/UhnhZ5mRHNqxpxS9d8GQVy3hnHIuOH UAbA==
X-Gm-Message-State: AOJu0YwfX/RTCXIR7FLZzszTBVW/ZDUkmwAMMUrJwL3D56OBy7Vt9EB7 chxKBVWBD8bh/vuBaO44wXuJ+eDzvCK9B6JzZWsI0U7i6wvIfrp0UGdrS37amWtL5bHt1VA5J0W sCqI=
X-Gm-Gg: ASbGncvsZDoA8SdTEb+GHXuHcxLhLQ7z0r7QNps51d0JoaNuGCAUfnU8xI+qJZ+Hjwc iyRhQIG4Pny9sLjZBV/Vdi931fH4FrAC9AdOiaAICP1PKaTpI6axYMwNpFFziphDutMhfw4ibZC glSXiEjnb3//vxOHIQLy9VIYLD8KLHkVvZ/nvooNlN+UvqVcO49YAqeoAd12shre5lPGnQ9zQRl uvXMNmGPHHHBFbRp5BMR0pvVb8IsXDPXSIaxW1Ftp/Q5HRyuD+Q6OI2kyANAP7OS+pt0ibfynoS q9HZBkPkSAgwf4F36xMXtzBsiCL3eu0Kg1p5m7DJoAOOpKiyXIKkzPUjFHy7rHP5QhY6gnzliJk h+KZVag==
X-Google-Smtp-Source: AGHT+IFjUmsRd7rRYSzDfFDKwUv7Yk1a+6km0c5gU5uWNSd34etECdT+3mIVE7fJ8yNvK1xu57/Veg==
X-Received: by 2002:a05:620a:25cc:b0:7c7:c772:7442 with SMTP id af79cd13be357-7cae3aa03a4mr1013255185a.20.1746475357541; Mon, 05 May 2025 13:02:37 -0700 (PDT)
Received: from [192.168.1.10] (pool-108-48-44-44.washdc.fios.verizon.net. [108.48.44.44]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7cad2441448sm605790285a.100.2025.05.05.13.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 May 2025 13:02:37 -0700 (PDT)
Content-Type: multipart/alternative; boundary="------------ATin0UPx76sns009jUIoJDV7"
Message-ID: <b4070217-b202-4316-9cc6-da65a71b9b06@nthpermutation.com>
Date: Mon, 05 May 2025 16:02:33 -0400
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Russ Housley <housley@vigilsec.com>
References: <07795EC6-BE7E-40D9-A860-B53A268D69CB@vigilsec.com> <9c438de1-bec9-4bb4-b1d0-589163cec00c@nthpermutation.com> <73616952-97F4-47A5-8C2F-55B966CE181F@vigilsec.com> <CANeU+ZCd9Gn6BTn+qFQD=-9LnLN=sdzVOrjhm3hZ-a2nV372Vg@mail.gmail.com> <be09bb1c-ea20-46ac-87e5-f1ddff20ccbf@nthpermutation.com> <61A2DB74-C4D5-43B4-A36D-F7FF60938ECA@vigilsec.com> <0f3a638c-9027-4e07-a05c-0fe694d5da8b@nthpermutation.com> <990CA506-7234-43C9-A17B-D58F172438E8@vigilsec.com>
Content-Language: en-US
From: Michael StJohns <msj@nthpermutation.com>
In-Reply-To: <990CA506-7234-43C9-A17B-D58F172438E8@vigilsec.com>
X-Antivirus: Norton (VPS 250505-6, 5/5/2025), Outbound message
X-Antivirus-Status: Clean
Message-ID-Hash: WLTHEYFGGRQW3CCIOZDY32SLGDDMWWFV
X-Message-ID-Hash: WLTHEYFGGRQW3CCIOZDY32SLGDDMWWFV
X-MailFrom: msj@nthpermutation.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-spasm.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: spasm@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [lamps] Re: WGLC for draft-ietf-lamps-csr-attestation-18
List-Id: This is the mail list for the LAMPS Working Group <spasm.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/y_IPbmg65ZbtsYtUqfo2Kok563k>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Owner: <mailto:spasm-owner@ietf.org>
List-Post: <mailto:spasm@ietf.org>
List-Subscribe: <mailto:spasm-join@ietf.org>
List-Unsubscribe: <mailto:spasm-leave@ietf.org>
The silly mistakes are partially avoided by the default setting of
&auxPresence to "absent".
Looking at RFC5912, I'm slightly confused as it's possible to do (for
MESSAGE-DIGEST) a "PARAMS ARE required" (vice "PARAMS TYPE OCTET STRING
ARE required") without specifying a type for &Params. Which doesn't
break anything exactly in the compile... but .. it's weird not to have
a default for the &Params type in that case.
That said, I think I'm fine with the change. E.g. &AuxType OPTIONAL in
the CLASS section and no internal option brackets around [TYPE
&AuxType] in the SYNTAX section. I have no problem with requiring a
complete specification without defaults for all of the various
EVIDENCE-STATEMENT definitions.
Thanks - Mike
ps - I keep confusing "present" for "required" too....
On 5/5/2025 3:31 PM, Russ Housley wrote:
> I think it would be better to have the party that is defining an
> evidence statement to ALWAYS specify the aux information if it exists.
> The DEFAULT OCTET STRING can lead to a silly mistake. It seems
> trivial to say:
>
> AUX TYPE OCTET STRING IS present
>
> to avoid the silly mistakes.
>
> Russ
>
>> On May 5, 2025, at 3:00 PM, Michael StJohns <msj@nthpermutation.com>
>> wrote:
>>
>> Aux(illary) works.
>>
>> I'd based the EVIDENCE-STATEMENT class on how some of the definitions
>> were written in RFC5912, (see DIGEST-ALGORITHM for one) especially
>> with respect to the &AuxType/aux field. E.g. would changes
>>
>> s/&AuxType OPTIONAL/&AuxType OCTET STRING OPTIONAL/
>>
>> and
>>
>> s/[AUX TYPE &AuxType IS &auxPresent]/[AUX [TYPE &AuxType] IS
>> &auxPresent]/
>>
>> to restore the original intent be useful?
>>
>> AFAICT, ParamOptions for &auxPresent is just a way to carry
>> implementation information, but can't actually be applied to the
>> EvidenceStatement SEQUENCE definition. But it makes me twitchy that
>> &AuxType might not be set when instantiating the
>> EvidenceStatement.... I'm actually surprised it compiled as is.
>>
>> Thanks - Mike
>>
>>
>> On 5/5/2025 1:55 PM, Russ Housley wrote:
>>> This compiles:
>>>
>>> FooBarModule
>>> DEFINITIONS IMPLICIT TAGS ::= BEGIN
>>>
>>> EVIDENCE-STATEMENT ::= CLASS {
>>> &id OBJECT IDENTIFIER UNIQUE,
>>> &Type,
>>> &auxPresent ParamOptions DEFAULT absent,
>>> &AuxType OPTIONAL
>>> } WITH SYNTAX {
>>> &Type IDENTIFIED BY &id
>>> [AUX TYPE &AuxType IS &auxPresent]
>>> }
>>>
>>> EvidenceStatementSet EVIDENCE-STATEMENT ::= {
>>> mikesEvidenceStatement | otherEvidenceStatement |
>>> tcgDiceAttestTPMCertify,
>>> ... }
>>>
>>> EvidenceStatements ::= SEQUENCE SIZE (1..MAX) OF EvidenceStatement
>>>
>>> EvidenceStatement ::= SEQUENCE {
>>> type EVIDENCE-STATEMENT.&id({EvidenceStatementSet}),
>>> stmt EVIDENCE-STATEMENT.&Type({EvidenceStatementSet}{@type}),
>>> aux EVIDENCE-STATEMENT.&AuxType({EvidenceStatementSet}{@type})
>>> OPTIONAL }
>>>
>>> ParamOptions ::= ENUMERATED {
>>> required, -- Parameters MUST be encoded in structure
>>> preferredPresent, -- Parameters SHOULD be encoded in structure
>>> preferredAbsent, -- Parameters SHOULD NOT be encoded in structure
>>> absent, -- Parameters MUST NOT be encoded in structure
>>> inheritable, -- Parameters are inherited if not present
>>> optional, -- Parameters MAY be encoded in the structure
>>> ... }
>>>
>>> mikesEvidenceStatement EVIDENCE-STATEMENT ::= {
>>> MikesASN1Structure IDENTIFIED BY id-mikes-statement
>>> AUX TYPE MikesHint IS required }
>>>
>>> id-mikes-statement OBJECT IDENTIFIER ::= { 1 1 1 1 1 1 }
>>>
>>> MikesASN1Structure ::= OCTET STRING
>>>
>>> MikesHint ::= IA5String
>>>
>>> otherEvidenceStatement EVIDENCE-STATEMENT ::= {
>>> PrintableString IDENTIFIED BY id-other-statement }
>>>
>>> id-other-statement OBJECT IDENTIFIER ::= { 2 2 2 2 2 2 }
>>>
>>> tcgDiceAttestTPMCertify EVIDENCE-STATEMENT ::= {
>>> Tcg-attest-tpm-certify IDENTIFIED BY tcg-attest-tpm-certify
>>> AUX TYPE Hint IS preferredPresent }
>>> tcg OBJECT IDENTIFIER ::= { 2 23 133 }
>>>
>>> tcg-kp-AIKCertificate OBJECT IDENTIFIER ::= { tcg 8 3 }
>>>
>>> tcg-attest OBJECT IDENTIFIER ::= { tcg 20 }
>>>
>>> tcg-attest-tpm-certify OBJECT IDENTIFIER ::= { tcg-attest 1 }
>>>
>>> Tcg-attest-tpm-certify ::= SEQUENCE {
>>> tpmSAttest OCTET STRING,
>>> signature OCTET STRING,
>>> tpmTPublic OCTET STRING OPTIONAL }
>>>
>>> Hint ::= IA5String (FROM ("a".."z" | "A".."Z" | "0".."9" | ".:"))
>>>
>>> END
>>>
>>>
>>>
>>> Note: there are several problems in the TCG example that are
>>> correctesd in the above, including these typos:
>>>
>>> s/id-tcg/tcg/
>>>
>>> s/Tcg-csr-tpm-certify/Tcg-attest-tpm-certify/
>>>
>>> Russ
>>>
- [lamps] WGLC for draft-ietf-lamps-csr-attestation… Russ Housley
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Russ Housley
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… StJohns, Michael
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Russ Housley
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Russ Housley
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Carl Wallace
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Carl Wallace
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Carl Wallace
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Carl Wallace
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… StJohns, Michael
- [lamps] Re: [EXTERNAL] Re: WGLC for draft-ietf-la… Mike Ounsworth
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Carl Wallace
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Mike Ounsworth
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Carl Wallace
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Mike Ounsworth
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Carl Wallace
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Michael StJohns
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Russ Housley
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… StJohns, Michael
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Russ Housley
- [lamps] Re: WGLC for draft-ietf-lamps-csr-attesta… Russ Housley