Re: [COSE] Key identifier of type bstr / int

Laurence Lundblade <lgl@island-resort.com> Tue, 22 March 2022 08:02 UTC

Return-Path: <lgl@island-resort.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 06FAB3A0C06 for <cose@ietfa.amsl.com>; Tue, 22 Mar 2022 01:02:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.905
X-Spam-Level:
X-Spam-Status: No, score=-1.905 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 Z-2MPstCXveE for <cose@ietfa.amsl.com>; Tue, 22 Mar 2022 01:01:53 -0700 (PDT)
Received: from p3plsmtpa11-04.prod.phx3.secureserver.net (p3plsmtpa11-04.prod.phx3.secureserver.net [68.178.252.105]) (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 8F1773A0C00 for <cose@ietf.org>; Tue, 22 Mar 2022 01:01:53 -0700 (PDT)
Received: from [192.168.8.106] ([213.225.36.78]) by :SMTPAUTH: with ESMTPSA id WZSfnQuNRAndzWZSgnAFUC; Tue, 22 Mar 2022 01:01:51 -0700
X-CMAE-Analysis: v=2.4 cv=IMrHtijG c=1 sm=1 tr=0 ts=6239826f a=73sqJBfw4EOcj9Wd6QYAcA==:117 a=73sqJBfw4EOcj9Wd6QYAcA==:17 a=l70xHGcnAAAA:8 a=K6EGIJCdAAAA:8 a=1fii2XXcsEIEIKbVhokA:9 a=QEXdDO2ut3YA:10 a=Iw82taXM1Mrm7DuBXl4A:9 a=-x5vOzVgyzNhx2J5:21 a=_W_S_7VecoQA:10 a=JtN_ecm89k2WOvw5-HMO:22 a=L6pVIi0Kn1GYQfi8-iRI:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <E4E75111-C65A-457F-A09D-8B64DA2432A3@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_D294B34D-E67C-426C-A15D-2C57C49FE649"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
Date: Tue, 22 Mar 2022 09:01:49 +0100
In-Reply-To: <641639.1647901233@dooku>
Cc: Orie Steele <orie@transmute.industries>, =?utf-8?Q?G=C3=B6ran_Selander?= <goran.selander@ericsson.com>, "cose@ietf.org" <cose@ietf.org>
To: Michael Richardson <mcr+ietf@sandelman.ca>
References: <95B75634-B147-4756-A950-C6B139CF3ADD@ericsson.com> <9DF382AC-12A8-47A5-AAE7-2B0D75EAA669@island-resort.com> <EDFDB6E4-2BDE-4E2E-9CF0-D771E2DEF3C6@ericsson.com> <823C00C2-4F6C-4DF5-99B0-87D8524D4A9C@island-resort.com> <C059B669-4C5D-4980-A665-96A39F4457C3@island-resort.com> <AM4PR0701MB21958541C07CEA44DB1B1578F4169@AM4PR0701MB2195.eurprd07.prod.outlook.com> <CAN8C-_+3sWckZKo7KS2fsPU4pBHo+NNGgQpxg7p8LytFX01eEw@mail.gmail.com> <AM4PR0701MB2195D76D8CFCC873C1D05A04F4169@AM4PR0701MB2195.eurprd07.prod.outlook.com> <CAN8C-_K4EfFSar9H_QR+cV_pz+xhXtWA=pKK+rFv241E5DQofQ@mail.gmail.com> <DC1C335A-629D-4E4F-97BD-B4CA3519EDC6@island-resort.com> <641639.1647901233@dooku>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
X-CMAE-Envelope: MS4xfKx52DcyUYluTxmJNCg84PTlIVz/KRXmrMQqE19Sndxq3ElDbv9qkUEApiiX8ROdUZm7v3bT2oUrVa0i/VLIW2afKUKzMogK2RBK1ybt2awN7SPXYp38 2pXdatNiWuch8/62PPOG432s9ZA5OsfZHnsEwo2072XQd+zYudT1H7EUE7JQ4sNgKO3qTEVIeCQ0Fvw+qo0tfDOxG3zIWJeMQzHM1xcaXUJFDmUV2Q1IEcdI 3rz4dSzecSN6nIcuZqVg5xP+SXFBzqoVdo71IS7vLc9hw0FWM2wknGRSLR8mngex
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/0Gqhj3I1TqRyW_AprOs26PgC5bY>
Subject: Re: [COSE] Key identifier of type bstr / int
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: Tue, 22 Mar 2022 08:02:22 -0000


> On Mar 21, 2022, at 11:20 PM, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
> 
> Laurence Lundblade <lgl@island-resort.com <mailto:lgl@island-resort.com>> wrote:
>> Let me try to be more clear.
> 
>> The COSE standard now is:
> 
>>   kid => bstr
> 
>> If we make this change:
> 
>>   kid => int / bstr
> 
>> then we break backwards compatibility for COSE as Mike pointed out
> 
> I don't think that this breaks *compatibility*
> Old signed objects are still valid.

I guess you are right.

If you give 

    kid => int

to an existing implementation it will say “kid is in the wrong format”

If you give
   
   Intkid => int

to an existing implémentation it will say “there is no kid”

Can’t see it matters that much which.

LL