Re: [Teep] JSON/JOSE vs. CBOR/COSE
Michael Richardson <mcr+ietf@sandelman.ca> Mon, 24 February 2020 17:07 UTC
Return-Path: <mcr+ietf@sandelman.ca>
X-Original-To: teep@ietfa.amsl.com
Delivered-To: teep@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4A89B3A0EA9 for <teep@ietfa.amsl.com>; Mon, 24 Feb 2020 09:07:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zh-pX4ZMnlUH for <teep@ietfa.amsl.com>; Mon, 24 Feb 2020 09:07:11 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AB6473A0EA4 for <teep@ietf.org>; Mon, 24 Feb 2020 09:07:11 -0800 (PST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id B3EFA3897D; Mon, 24 Feb 2020 12:06:10 -0500 (EST)
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 4B5565A0; Mon, 24 Feb 2020 12:07:10 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Brendan Moran <Brendan.Moran@arm.com>
cc: "teep@ietf.org" <teep@ietf.org>
In-Reply-To: <9802731C-231B-4010-BE53-AD35D33EC25F@arm.com>
References: <9802731C-231B-4010-BE53-AD35D33EC25F@arm.com>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 25.1.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature"
Date: Mon, 24 Feb 2020 12:07:10 -0500
Message-ID: <1257.1582564030@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/teep/u2ZJnumvV_UFKBcFFnhMr08niT4>
Subject: Re: [Teep] JSON/JOSE vs. CBOR/COSE
X-BeenThere: teep@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: A Protocol for Dynamic Trusted Execution Environment Enablement <teep.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/teep>, <mailto:teep-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/teep/>
List-Post: <mailto:teep@ietf.org>
List-Help: <mailto:teep-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/teep>, <mailto:teep-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Feb 2020 17:07:16 -0000
Brendan Moran <Brendan.Moran@arm.com> wrote: > I also support using only one encoding, and I second keeping the TCB as > small as possible, so I support using CBOR/COSE as the only > encoding. In particular, if TEEP is going to keep a dependency on SUIT, > this means that using JSON/JOSE for TEEP requires supporting both > JSON/JOSE and CBOR/COSE, since SUIT already has a single encoding: > CBOR/COSE. As such, using JSON/JSOE for TEEP dramatically increases the > TCB from a single parser & cryptographic wrapper to two of each. This is true from a generality of specification point of view, but are there any ways to use TEEP without SUIT? (I think so, but I could be wrong, as my TEEP-fu is weak) It could be that those uses could specify JSON/JOSE, while all SUIT/TEEP uses could specify CBOR/COSE. Having said this, I'm already in favour of CBOR/COSE only, I just want to make sure that we are clear about the possibilities. A client implementation could support one or the other, but not both. > Personally, I don’t find CBOR/COSE significantly harder to debug than > JSON. I find JSON unreadable unless it’s been formatted. I find CBOR > unreadable unless it’s been decoded into diagnostic notation. I don’t > find a substantial difference in overhead between these two. +1 -- Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works -= IPv6 IoT consulting =-
- [Teep] JSON/JOSE vs. CBOR/COSE Hannes Tschofenig
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Emmanuel Baccelli
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Michael Richardson
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Henk Birkholz
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Anders Rundgren
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Nicolae Paladi
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Mingliang Pei
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Konda, Tirumaleswar Reddy
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Henk Birkholz
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Carsten Bormann
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Brendan Moran
- [Teep] Fwd: JSON/JOSE vs. CBOR/COSE Akira Tsukamoto
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Hannes Tschofenig
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Henk Birkholz
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Hannes Tschofenig
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Henk Birkholz
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Michael Richardson
- Re: [Teep] JSON/JOSE vs. CBOR/COSE 塚本明
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Carsten Bormann
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Hannes Tschofenig
- Re: [Teep] JSON/JOSE vs. CBOR/COSE 塚本明
- Re: [Teep] JSON/JOSE vs. CBOR/COSE Konda, Tirumaleswar Reddy