Re: [COSE] SCITT receipts as COSE V2 countersignatures
Russ Housley <housley@vigilsec.com> Tue, 04 October 2022 12:44 UTC
Return-Path: <housley@vigilsec.com>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 59F02C1522C1; Tue, 4 Oct 2022 05:44:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.907
X-Spam-Level:
X-Spam-Status: No, score=-1.907 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pLcaqbXJwVTV; Tue, 4 Oct 2022 05:44:16 -0700 (PDT)
Received: from mail3.g24.pair.com (mail3.g24.pair.com [66.39.134.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7D1F3C14F74D; Tue, 4 Oct 2022 05:44:16 -0700 (PDT)
Received: from mail3.g24.pair.com (localhost [127.0.0.1]) by mail3.g24.pair.com (Postfix) with ESMTP id 3BE871694F8; Tue, 4 Oct 2022 08:44:15 -0400 (EDT)
Received: from [10.0.1.2] (pfs.iad.rg.net [198.180.150.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail3.g24.pair.com (Postfix) with ESMTPSA id 0C8AD1693A5; Tue, 4 Oct 2022 08:44:14 -0400 (EDT)
From: Russ Housley <housley@vigilsec.com>
Message-Id: <250BB963-B6A5-4B6B-9E08-6D234521CD9A@vigilsec.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_0DB4F00E-1046-4B56-974B-76B90F1C325F"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\))
Date: Tue, 04 Oct 2022 08:44:14 -0400
In-Reply-To: <AS8PR83MB05017C84CBB825904F03C2C5F75A9@AS8PR83MB0501.EURPRD83.prod.outlook.com>
Cc: "scitt@ietf.org" <scitt@ietf.org>, "cose@ietf.org" <cose@ietf.org>
To: Maik Riechert <Maik.Riechert@microsoft.com>
References: <AS8PR83MB05017C84CBB825904F03C2C5F75A9@AS8PR83MB0501.EURPRD83.prod.outlook.com>
X-Mailer: Apple Mail (2.3445.104.21)
X-Scanned-By: mailmunge 3.09 on 66.39.134.11
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/-lSkhJQ1lLPErnrL2JicVfT3e9c>
Subject: Re: [COSE] SCITT receipts as COSE V2 countersignatures
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Oct 2022 12:44:20 -0000
If I understand this proposal correctly, a value for SCITT-CCF-ES256 would be added to the IANA-maintained COSE Algorithms registry. Right now, all of the entries are for cryptographic algorithms. I'd like to hear what the Designated Experts think about using the registry to identify an application-specific structure in addition to the cryptographic algorithm. Russ > On Oct 4, 2022, at 8:00 AM, Maik Riechert <Maik.Riechert=40microsoft.com@dmarc.ietf.org> wrote: > > Hi all, > > In the SCITT community call yesterday we had a discussion on receipts (https://datatracker.ietf.org/doc/html/draft-birkholz-scitt-receipts-01 <https://datatracker.ietf.org/doc/html/draft-birkholz-scitt-receipts-01>) and whether they should be represented as standard COSE V2 countersignatures (https://datatracker.ietf.org/doc/html/draft-ietf-cose-countersign <https://datatracker.ietf.org/doc/html/draft-ietf-cose-countersign>). > > The current receipt format’s CDDL is as follows: > > [ > service_id: tstr > contents: any > ] > > where `contents` depends on the “tree” algorithm (with the requirement that it has to contain a protected header somewhere in it) identified via parameters associated to the service_id. Currently there is only a single tree algorithm (based on a CCF ledger implementation) where the CDDL is as follows: > > [ > signature: bstr > node_certificate: bstr > inclusion_proof: [+ ProofElement] > leaf_info: [ > internal_hash: bstr > internal_data: bstr > protected: bstr .cbor { > issuedAt: uint > } > ] > ] > > In order to support more schemes around key discovery (e.g., DID), it makes sense to move the protected header to the front and make it part of the common top-level structure: > > [ > protected: bstr .cbor { > service_id: tstr > issuedAt: uint > }, > contents: any > ] > > The new `contents` would then look like this: > > [ > signature: bstr > node_certificate: bstr > inclusion_proof: [+ ProofElement] > leaf_info: [ > internal_hash: bstr > internal_data: bstr > ] > ] > > If you then squint a bit more, you can re-imagine this as a COSE V2 countersignature: > > [ > protected: bstr .cbor { > alg: tstr > service_id: tstr > issuedAt: uint > }, > unprotected: { * label => values } > signature: bstr > ] > > For the CCF tree algorithm, this would equate to `alg` being a new identifier (e.g., “SCITT-CCF-ES256”) and the signature being the `contents` structure wrapped as bstr. > > Russ raised concerns that carrying all of the additional bits in the signature bytes may be hard to justify when it comes to registration of the new signature algorithm in COSE’s IANA registry. There seems to be precedent though, for example https://datatracker.ietf.org/doc/html/rfc8778 <https://datatracker.ietf.org/doc/html/rfc8778> where for Leighton-Micali the signature value (see 2.2) is a structure containing a leaf number, an LM-OTS signature, a type code indicating a subalgorithm, and a tree path from leaf to root. > > We discussed two alternatives: 1. Keeping it a separate format specific to SCITT. 2. Establishing receipts as new COSE message type, though this may be more challenging. > > Any discussions and opinions on this topic are highly appreciated. > > Maik > _______________________________________________ > COSE mailing list > COSE@ietf.org <mailto:COSE@ietf.org> > https://www.ietf.org/mailman/listinfo/cose <https://www.ietf.org/mailman/listinfo/cose>
- [COSE] SCITT receipts as COSE V2 countersignatures Maik Riechert
- Re: [COSE] SCITT receipts as COSE V2 countersigna… Russ Housley
- Re: [COSE] SCITT receipts as COSE V2 countersigna… Orie Steele
- Re: [COSE] SCITT receipts as COSE V2 countersigna… Mike Prorock
- Re: [COSE] [EXTERNAL] Re: SCITT receipts as COSE … Maik Riechert
- Re: [COSE] [EXTERNAL] Re: SCITT receipts as COSE … Orie Steele
- Re: [COSE] [EXTERNAL] Re: SCITT receipts as COSE … Maik Riechert
- Re: [COSE] [EXTERNAL] Re: SCITT receipts as COSE … Orie Steele
- Re: [COSE] [EXTERNAL] Re: SCITT receipts as COSE … Maik Riechert
- Re: [COSE] [EXTERNAL] Re: SCITT receipts as COSE … Orie Steele
- Re: [COSE] [EXTERNAL] Re: SCITT receipts as COSE … Maik Riechert
- Re: [COSE] [EXTERNAL] Re: SCITT receipts as COSE … Orie Steele
- Re: [COSE] SCITT receipts as COSE V2 countersigna… Ilari Liusvaara
- Re: [COSE] SCITT receipts as COSE V2 countersigna… Orie Steele
- Re: [COSE] [EXTERNAL] Re: [SCITT] SCITT receipts … Maik Riechert
- Re: [COSE] [EXTERNAL] Re: [SCITT] SCITT receipts … Ilari Liusvaara
- Re: [COSE] [SCITT] [EXTERNAL] Re: SCITT receipts … Maik Riechert