Re: [Teep] JSON/JOSE vs. CBOR/COSE

塚本明 <akira.tsukamoto@aist.go.jp> Tue, 25 February 2020 08:49 UTC

Return-Path: <akira.tsukamoto@aist.go.jp>
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 D0F2D3A0A4E for <teep@ietfa.amsl.com>; Tue, 25 Feb 2020 00:49:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=aist.go.jp
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 tDhMeE9U97AY for <teep@ietfa.amsl.com>; Tue, 25 Feb 2020 00:49:11 -0800 (PST)
Received: from JPN01-OS2-obe.outbound.protection.outlook.com (mail-eopbgr1410045.outbound.protection.outlook.com [40.107.141.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0D99D3A0A4A for <teep@ietf.org>; Tue, 25 Feb 2020 00:49:10 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lRDCOGxEwYASDcY7MHq2Rx6wDeLqrneG3eEEx+k9fcl0OaNgthVhIt0gXs6NvOM8NfPJ2KyXDoEl03P1BB7vRku5COlYA6WxoJD5ThgwNPFRSe2b1lF5LhLAYSPMBEmDyddpU+cEEmAB/uy/mg+CsDRR3WKzyuHA10kYRgOsS9M6tn3EGonGO+qRQ1UUSAn6Rln0FrUVGfImlGtbbMUwRzduxEWP/64d2mX1OBUjkGlKiHFLLx3IMQa7NSM/vVJTl73cIEvXN3m4ZhVoSrWnR7SUyaIzVp2OSwjNjJiZPVckircMSfxo3iRKnRXE1vQh6nX4oof7ZxoDl8CSSiyz9g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SzkTw6opWiBM1XNEjV55UHAgiUiJSu2hwCxAMgI3zNs=; b=l0xHRN5RK5rSkLj0DrE8I84EF3ZsTbFRmfORXz4F/Ep2YMvPxSiS05OzK9mqUW1MNTIZalI/fc+yIoMP2fAia26MSttO49WXeyklttb+G4N6+IG/bLKP7Kbkou7qsRPsdAtHzPbCJWPpdLmpWr+ClLkRv0BBfHqBNLAnb2lAgXH4uBLr11BNpWuPIh7Y1wFEvs4fQSucVY2y9N2rUHvz3vbcPQdQbs1D5b3RK8pROrCLBAd+ueCWw5alnk6S6Gttgrl6l+FEMW2P8NP1gyD7PSuFKrOQeY/KeQvYRuf7BSu9YAbyTI6o/N7QhA8WO2rk+gKkYnx+/WHaVgdefspGxw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aist.go.jp; dmarc=pass action=none header.from=aist.go.jp; dkim=pass header.d=aist.go.jp; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aist.go.jp; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SzkTw6opWiBM1XNEjV55UHAgiUiJSu2hwCxAMgI3zNs=; b=Xk8KOsKy3LmsDtcPEucODcH+p9uiIjQVyxtRLLi6Ndj2I0qDYo7o3IquGjHEBDHIyUWf7KTg5SyZZrehwHpr5L4ELOCT3RH/X0/ITOCdbujsss2BfZ6sr5sXDmIodG/wpk97yy91tZS+36ZmNYRiQBaBWtwqYBt8+u/b23RMtdo=
Received: from OSBPR01MB3191.jpnprd01.prod.outlook.com (52.134.253.22) by OSBPR01MB3621.jpnprd01.prod.outlook.com (20.178.98.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.18; Tue, 25 Feb 2020 08:49:08 +0000
Received: from OSBPR01MB3191.jpnprd01.prod.outlook.com ([fe80::7c64:7f4d:5d5d:1879]) by OSBPR01MB3191.jpnprd01.prod.outlook.com ([fe80::7c64:7f4d:5d5d:1879%4]) with mapi id 15.20.2750.021; Tue, 25 Feb 2020 08:49:08 +0000
Received: from [150.82.217.251] (150.82.217.251) by TY2PR02CA0049.apcprd02.prod.outlook.com (2603:1096:404:e2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.17 via Frontend Transport; Tue, 25 Feb 2020 08:49:08 +0000
From: 塚本明 <akira.tsukamoto@aist.go.jp>
To: Carsten Bormann <cabo@tzi.org>
CC: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>, Hannes Tschofenig <Hannes.Tschofenig@arm.com>, Konda Tirumaleswar Reddy <TirumaleswarReddy_Konda@mcafee.com>, Nicolae Paladi <nicolae.paladi@ri.se>, teep <teep@ietf.org>, Mingliang Pei <mingliang.pei=40broadcom.com@dmarc.ietf.org>
Thread-Topic: [Teep] JSON/JOSE vs. CBOR/COSE
Thread-Index: AQHV6xQlUYMIV7vJekC2JiCgsN9d7agqVTAAgAAEZYCAAAFEgIAB03sA//9qBoCAAAJegA==
Date: Tue, 25 Feb 2020 08:49:08 +0000
Message-ID: <7fa30370-85bf-a83c-5588-8f8d8826f72f@aist.go.jp>
References: <AM6PR08MB37181998F4E68A7F6BCC8110FA130@AM6PR08MB3718.eurprd08.prod.outlook.com> <59627424-2BE9-4E52-8F57-B7853D71023C@ri.se> <CABDGos7T5rjN4qHUyg_ptC+uB4gEjY26pe3=Z+Kky-LG5gkHDQ@mail.gmail.com> <CY4PR1601MB125438E2058280B86B32F650EA120@CY4PR1601MB1254.namprd16.prod.outlook.com> <a16d028a-43cf-bb5f-f21c-e26315280a2c@sit.fraunhofer.de> <CACuRN0O44V6HCUoRMjYdiz+yU=TykR89Qxsy5BifPfES_wkxkQ@mail.gmail.com> <CACuRN0PDevvPt6AkwgtBu2LhHBDbCZT490jkyQ8CjUNHKutN3g@mail.gmail.com> <AM0PR08MB371658433A963F30E53D5B16FAEC0@AM0PR08MB3716.eurprd08.prod.outlook.com> <e7b36f1d-67da-e072-1d93-4e05808cf4f3@sit.fraunhofer.de> <AM0PR08MB3716E3D68398FC3BA4A08D4DFAEC0@AM0PR08MB3716.eurprd08.prod.outlook.com> <74f54d9a-9590-3a13-abb0-f88ce575f61d@sit.fraunhofer.de> <d7bea679-02be-d27e-b540-704325f8eeb8@aist.go.jp> <B64A63CA-9312-44B8-80BF-7CBD08B9790F@tzi.org>
In-Reply-To: <B64A63CA-9312-44B8-80BF-7CBD08B9790F@tzi.org>
Accept-Language: ja-JP, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: TY2PR02CA0049.apcprd02.prod.outlook.com (2603:1096:404:e2::13) To OSBPR01MB3191.jpnprd01.prod.outlook.com (2603:1096:604:16::22)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=akira.tsukamoto@aist.go.jp;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [150.82.217.251]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 01f2f308-a7ef-42ec-5867-08d7b9cf93b1
x-ms-traffictypediagnostic: OSBPR01MB3621:
x-microsoft-antispam-prvs: <OSBPR01MB36210AA1001D56CFD37590A1D8ED0@OSBPR01MB3621.jpnprd01.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-forefront-prvs: 0324C2C0E2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(136003)(376002)(346002)(366004)(189003)(199004)(16526019)(186003)(26005)(53546011)(6706004)(81166006)(52116002)(8936002)(6916009)(31696002)(8676002)(86362001)(36756003)(81156014)(6486002)(4326008)(2616005)(4744005)(478600001)(54906003)(956004)(66476007)(71200400001)(64756008)(316002)(2906002)(85182001)(16576012)(66446008)(5660300002)(66556008)(31686004)(66946007)(3940600001); DIR:OUT; SFP:1101; SCL:1; SRVR:OSBPR01MB3621; H:OSBPR01MB3191.jpnprd01.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: aist.go.jp does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Nsn0q68MjeE5lVg5LqvPMWcO2GMOUQFUWt9703uW7JIQd6rYnrID+ssCOa0xqfCuexFbkvoWxURRuSB3VOu0lf1gVIiRQ+h8kFkyb5D2Agw26H4uIZQ226AY3fI/ME0lg1polwHFcvgLNPR+aoLWwphgzArNpAPWFCCchQz7A8eDG+AkW5nnvnvS1AgOnfPFeD0VZEZmSJJpoul2JdBuqhbJDoC63X+gFAGnr1njDdVXdBu+q29LyaX6rmVHm+8pURGjvrQpCdJzC4/dnAsRIHzx/BNSwYBOMREgkGVvtZBcK9LHYjf3/qv4Sc/akLDkWhDN/3J5J9WrpEQMGXG9v4E0Vt2qSUQLDz5tJp4I5aKC40apDoOR391jV9VctcJhnXzLC3hR2EL7Zu9sNczWrN75KK3VtJV8xnOD8/V/o1wAYmBgBWjNI47TzkGBMNKTWM5THHbiJvE1LYRkeI7YMh46RPK4DjTP1gugSoWXY/uKBAphYs7COTd3gnnXnyqD
x-ms-exchange-antispam-messagedata: eiQ0bH3nDrBZRXBSRZR84mLD8YIiK7IyGK7my6TPmfel7beI8LUJzMDXn73Ta8KwtTMBS7SaObYu2RNDPilAo4sdBnXNs5FrU7iBIa6p/raNAwPhtOL9aavw3SWDGToEnv1+FfMJOzWPGTRdbA+mGQ==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <CE42E0828029F64C96C3D8DE843C895D@jpnprd01.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: aist.go.jp
X-MS-Exchange-CrossTenant-Network-Message-Id: 01f2f308-a7ef-42ec-5867-08d7b9cf93b1
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2020 08:49:08.4585 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 18a7fec8-652f-409b-8369-272d9ce80620
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: xJMQFqQpugr4yXfoGFFolYr9bodVZKTM54bSuLKylZZNE/y9rhewHlMWt4pTe3Tqf2OZ0qstxIoJiOi9drIdG/PJQKJasH/B7uSL/F3UZ0o=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSBPR01MB3621
Archived-At: <https://mailarchive.ietf.org/arch/msg/teep/eyx04njOfceKh6oT3rQWfvGFYr4>
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: Tue, 25 Feb 2020 08:49:14 -0000

On 2020/02/25 17:40, Carsten Bormann wrote:
> On 2020-02-25, at 09:37, 塚本明 <akira.tsukamoto@aist.go.jp> wrote:
>>
>> Also, during the hackathon at Berlin, we did have a code to show the contents of
>> teem messages in the sources but at the end we had to use WireShark to debug
>> when we could not figure out why it is giving some of the parsing errors for received message,
>> so having text representation in the binary packet helped the prototyping.
> 
> Wireshark has a CBOR dissector.
> Maybe we should collect some information about how to best use tools like Wireshark for debugging and diagnostics.

Wow, I did not know the Wireshark has a CBOR dissector. It seems to be a good topic at the next hackathon.

-Akira