Re: [COSE] Help with RFC8152 encryption example

Carsten Bormann <cabo@tzi.org> Mon, 10 May 2021 14:36 UTC

Return-Path: <cabo@tzi.org>
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 756F43A1EE1 for <cose@ietfa.amsl.com>; Mon, 10 May 2021 07:36:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 tt3LPGkufIct for <cose@ietfa.amsl.com>; Mon, 10 May 2021 07:36:08 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 817E53A1EDC for <cose@ietf.org>; Mon, 10 May 2021 07:36:08 -0700 (PDT)
Received: from [192.168.217.118] (p548dcb12.dip0.t-ipconnect.de [84.141.203.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4Ff3Wn6z6CzySy; Mon, 10 May 2021 16:36:05 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <53320179-c867-d0c3-4b50-6eeb11ab5fd4@gmail.com>
Date: Mon, 10 May 2021 16:36:05 +0200
Cc: cose@ietf.org
X-Mao-Original-Outgoing-Id: 642350165.571336-cc30df79adbf5eff85c176305a764953
Content-Transfer-Encoding: quoted-printable
Message-Id: <25CC1B9F-FBE1-482D-BDE4-724A684F53D5@tzi.org>
References: <b9138e0c-a63f-bb15-11f1-b7c4519ebf2e@gmail.com> <BEEEB4E5-5FAC-4EA6-88FD-23D7B031C7AB@tzi.org> <53320179-c867-d0c3-4b50-6eeb11ab5fd4@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: Apple Mail (2.3608.120.23.2.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/1m1h61bARl1mr6CkF6SIyZ_YBi4>
Subject: Re: [COSE] Help with RFC8152 encryption example
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 10 May 2021 14:36:12 -0000

On 2021-05-10, at 13:59, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
> 
> I obviously have a few things to learn about CDDL ;)

That is always good, but the example was in CBOR Diagnostic Notation, which is almost but not entirely unlike CDDL…
(CBOR Extended Diagnostic Notation (EDN) is defined in the CDDL RFC 8610. 
Economies of process…
But 8152 predates that document, so it uses basic DN, which doesn’t have <</>> yet, which is part of the problem you had.)

Grüße, Carsten