Re: [Suit] [Teep] Value of COSE_Mac_Tagged/COSE_Sign_Tagged/COSE_Mac0_Tagged/COSE_Sign1_Tagged

Henk Birkholz <henk.birkholz@sit.fraunhofer.de> Thu, 09 April 2020 14:13 UTC

Return-Path: <henk.birkholz@sit.fraunhofer.de>
X-Original-To: suit@ietfa.amsl.com
Delivered-To: suit@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B30C43A00E1; Thu, 9 Apr 2020 07:13:53 -0700 (PDT)
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 gp7r2GYC4rEJ; Thu, 9 Apr 2020 07:13:49 -0700 (PDT)
Received: from mail-edgeKA27.fraunhofer.de (mail-edgeka27.fraunhofer.de [153.96.1.27]) (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 073D13A03F1; Thu, 9 Apr 2020 07:13:45 -0700 (PDT)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2FmAAAjLI9e/xoBYJlmGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYFpAwEBAQELAYIobANVLyoKhBKPAoFkCCWUJ4UngT8yCgoBAQEBAQEBAQEGAQEYCwoCBAEBAoMvgRMCghAkNgcOAhABAQYBAQEBAQUEAgJphVYMgnZdfgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBEgINNh43EgEBHgEBAQMBASEPAQU2CxAJAhgCAiYCAicgEAYBCQMBBQIBAYMiAYJ7BQuUOpt5gTKFToNugToGgQ4qAYUihxAPgUw/gREnDAOCWj6CZwEBAgGEdIJeBI1rKoI7O4YrmggHgUp4fQSGd48+I49GBYxLLY8ZiSuTDAIEAgkCFYFZCCuBV00kT4JpUBgNkSsDFxWDO4UUhUNyAoEnjQ8BgQ8BAQ
X-IPAS-Result: A2FmAAAjLI9e/xoBYJlmGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYFpAwEBAQELAYIobANVLyoKhBKPAoFkCCWUJ4UngT8yCgoBAQEBAQEBAQEGAQEYCwoCBAEBAoMvgRMCghAkNgcOAhABAQYBAQEBAQUEAgJphVYMgnZdfgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBEgINNh43EgEBHgEBAQMBASEPAQU2CxAJAhgCAiYCAicgEAYBCQMBBQIBAYMiAYJ7BQuUOpt5gTKFToNugToGgQ4qAYUihxAPgUw/gREnDAOCWj6CZwEBAgGEdIJeBI1rKoI7O4YrmggHgUp4fQSGd48+I49GBYxLLY8ZiSuTDAIEAgkCFYFZCCuBV00kT4JpUBgNkSsDFxWDO4UUhUNyAoEnjQ8BgQ8BAQ
X-IronPort-AV: E=Sophos;i="5.72,363,1580770800"; d="scan'208";a="21214743"
Received: from mail-mtaka26.fraunhofer.de ([153.96.1.26]) by mail-edgeKA27.fraunhofer.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2020 16:13:42 +0200
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0A1AADMLI9e/1lIDI1mGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYFpAwEBAQELAYIobANNBzAqCoQSjwKBZAgllCeFJ4F7CgEDAQEBAQEGAQEYCwoCBAEBgzGBEwKCDyQ2Bw4CEAEBBQEBAQIBBQRthVYMhXEBAQEDAQEhDwEFNgsQCQIYAgImAgInIBAGAQkDAQUCAQGDIgGDAAuUQJt5gTKFToNygToGgQ4qAYUihxAPgUw/gREnDAOCWj6CZwEBAgGEdIJeBI1rKoI7O4YrmggHgUp4fQSGd48+I49GBYxLLY8ZiSuTDAIEAgkCFYFZCCqBV00kT4JpUBgNkSsDFxWDO4UUhUNBMQKBJ40PAYEPAQE
X-IronPort-AV: E=Sophos;i="5.72,363,1580770800"; d="scan'208";a="79986779"
Received: from mailext.sit.fraunhofer.de ([141.12.72.89]) by mail-mtaKA26.fraunhofer.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2020 16:13:40 +0200
Received: from mail.sit.fraunhofer.de (mail.sit.fraunhofer.de [141.12.84.171]) by mailext.sit.fraunhofer.de (8.15.2/8.15.2/Debian-10) with ESMTPS id 039EDcah015869 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NOT); Thu, 9 Apr 2020 16:13:38 +0200
Received: from [192.168.16.50] (79.234.123.239) by mail.sit.fraunhofer.de (141.12.84.171) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 9 Apr 2020 16:13:32 +0200
To: Akira Tsukamoto <akira.tsukamoto@gmail.com>, Carsten Bormann <cabo@tzi.org>
CC: "suit@ietf.org" <suit@ietf.org>, Brendan Moran <Brendan.Moran@arm.com>, Akira Tsukamoto <akira.tsukamoto@aist.go.jp>, Jim Schaad <ietf@augustcellars.com>, teep <teep@ietf.org>, Hannes Tschofenig <Hannes.Tschofenig@arm.com>
References: <4e6db9fe-c0c7-7ca0-95c7-843ebc164a4c@aist.go.jp> <05ef01d60e21$4bdd1ce0$e39756a0$@augustcellars.com> <e40771d1-e2bb-15b8-d00d-563ce022499a@aist.go.jp> <AM0PR08MB3716989A65CFEE8FF6E8F2A6FAC10@AM0PR08MB3716.eurprd08.prod.outlook.com> <799C44A6-515B-40A7-88C5-ACED609BE6A0@tzi.org> <70520B88-66B4-48DD-A3A8-9129B3C14D31@arm.com> <B1444DBF-2D65-4DF3-9980-BCDA1820ABE4@tzi.org> <CACuRN0OsFuq5hVVSAtLgpjYee8WqMFzFb6ObYBKTjxUXUBrUAw@mail.gmail.com>
From: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
Message-ID: <3e608b68-7232-4ca0-f94c-22dc3adc8724@sit.fraunhofer.de>
Date: Thu, 09 Apr 2020 16:13:31 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
MIME-Version: 1.0
In-Reply-To: <CACuRN0OsFuq5hVVSAtLgpjYee8WqMFzFb6ObYBKTjxUXUBrUAw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Originating-IP: [79.234.123.239]
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/Ipbe8w1GPLqVfJhlYGryP8mxrQk>
Subject: Re: [Suit] [Teep] Value of COSE_Mac_Tagged/COSE_Sign_Tagged/COSE_Mac0_Tagged/COSE_Sign1_Tagged
X-BeenThere: suit@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Software Updates for Internet of Things <suit.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/suit>, <mailto:suit-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/suit/>
List-Post: <mailto:suit@ietf.org>
List-Help: <mailto:suit-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/suit>, <mailto:suit-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Apr 2020 14:13:54 -0000

Hello Akira,

in an array context, the name (aka label) is annotation only. It is not 
transferred over "the wire", so we did not bother to define a 
corresponding type.

In other words, you could simply omit "type: " and "token: " and nothing 
would change. It is annotation for humans, basically.

See https://tools.ietf.org/html/rfc8610#section-2.1

Viele Grüße,

Henk

On 09.04.20 15:38, Akira Tsukamoto wrote:
> Hi Carsten and Hannes,
> 
> https://github.com/ietf-teep/teep-protocol/pull/27
> 
> The new pull request reflects all the discussion points of converting
> from map and using minimum major type size for the array member.
> 
> When I was reading the cddl draft, I was not quite sure how to
> describe the array with the label name.
> In your pull request,
> 
> query-request = [
>       type: TEEP-TYPE-query-request,
>       token: uint,
> 
> The above cddl description has label name type and token with semicolon.
> We were trying to avoid having label name inside the array.
> I thought I have to use => for this purpose.
> 
> Other discussion we had with the teep is to use the same nonce as the
> EAT defines.
> 
> nonce => bytes,
> to be
> nonce => bstr .size (8..64)
> 
> And the size of token we never really agreed about it.
> How bout
>    token: uint .size 4
> 
> The 32bit unsign integer seems to be reasonable for the usage in teep.
> 
> Best,
> -Akira
> 
> On Thu, Apr 9, 2020 at 9:12 PM Carsten Bormann <cabo@tzi.org> wrote:
>>
>> On 2020-04-09, at 14:07, Brendan Moran <Brendan.Moran@arm.com> wrote:
>>>
>>>  From a SUIT perspective, I’m still inclined to make sure that this is tagged as that allows for use-cases that we may not have considered.
>>
>> Makes sense.  Let’s fix the definition of `SUIT-envelope` in the below.
>>
>> Henk and I created a cleaned up version of the CBOR encoding and accompanying CDDL.
>> We should check whether this encoding helps us and then integrate it into the document.
>>
>> https://github.com/ietf-teep/teep-protocol/pull/27
>>
>> Grüße, Carsten
>>
>> _______________________________________________
>> TEEP mailing list
>> TEEP@ietf.org
>> https://www.ietf.org/mailman/listinfo/teep
> 
> _______________________________________________
> Suit mailing list
> Suit@ietf.org
> https://www.ietf.org/mailman/listinfo/suit
>