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

Akira Tsukamoto <akira.tsukamoto@aist.go.jp> Thu, 09 April 2020 23:43 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 6F5C13A13F9; Thu, 9 Apr 2020 16:43:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, MSGID_FROM_MTA_HEADER=0.001, 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 yCHFDL__9gvY; Thu, 9 Apr 2020 16:43:41 -0700 (PDT)
Received: from JPN01-OS2-obe.outbound.protection.outlook.com (mail-eopbgr1410040.outbound.protection.outlook.com [40.107.141.40]) (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 6D6C53A13F7; Thu, 9 Apr 2020 16:43:41 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A9uFaCYQ14JI1su4RIaEJbGG9DQiNZni0XE4+Q3EGJRyE1rCfkgITe3Fznj4O7mu430KHu1GPfcodTzVWmbpSdTKGfuA6IkBuGDiLDc0fQmafTsRMwpq1UKG5iigIjlJYikdqUEXti2Q9nXDhlKSIPNKWgOu9+3+ik3dFRSIcpChDD+JVF+L0AbyjLVyVOTJfvEY7umfvUr7qlLgI48AIU8yndMVGAehktExptqDqU9O+HCDEWkOnvZaRDPXAMcwK1UcrsWqPPPK/b87yvQf+d+DMz2+z0o/HmvnEPbGKA0wBP9sQ5nWSpLAct84kvis87Pjd3Ztzsg4SIg6yxSmqQ==
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=aSOp2KFz3/rhZS0svz698xFK1jS4tyTJNw2Sw3mm14g=; b=k8/jV5m0U1mfnghe59n6godATWfhcBof218jg2YdE6TEevNiItt/8mVaTJnoXNTadDkr0kjmjhF209xZkPMGW4nKuqpSGxjBp6ll3DnHP+AnjByODpk6h5ItzASj+KI251DXQCT5FT9yaTayofCL5sFvgzzMrN4lopAyIAQJ8rXUnQDHifUwdWBUQ/fKvEEhrlyOAGBKEnB+C7uchsOztSVQhVykzODrcVxgyDTbSgkHhYROoF2PVFOucPWjW5oFzhOqfZp8SF1qoqEHYPG98cY6jLaP/yzMq5QyEcq7/zT80xOUpaYEDs8hlAOh0HJ/iN446nOnK1mnTw16RkIY6Q==
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=aSOp2KFz3/rhZS0svz698xFK1jS4tyTJNw2Sw3mm14g=; b=Y+m6FIs2gW5k5BjadmvS+pzdLp4UnzqGENjOTzCYbET4hv5Z1Pew3j8Xz7ECHTgOBkUVPbkXIjxiQDE8c/5sSDmUJye+m4ndU/uZapgOt8NDvbqP8tihgMPD+dc3kZCIN5oT4F7e1NUn3VdRz4ilQc1J7ZTb1o7GD7ehbJ21y4Q=
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=akira.tsukamoto@aist.go.jp;
Received: from TYAPR01MB3406.jpnprd01.prod.outlook.com (20.178.140.147) by TYAPR01MB4975.jpnprd01.prod.outlook.com (20.179.175.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.17; Thu, 9 Apr 2020 23:43:38 +0000
Received: from TYAPR01MB3406.jpnprd01.prod.outlook.com ([fe80::df1:d999:dc75:cdf2]) by TYAPR01MB3406.jpnprd01.prod.outlook.com ([fe80::df1:d999:dc75:cdf2%7]) with mapi id 15.20.2878.018; Thu, 9 Apr 2020 23:43:38 +0000
To: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>, Akira Tsukamoto <akira.tsukamoto@gmail.com>, Carsten Bormann <cabo@tzi.org>
Cc: "suit@ietf.org" <suit@ietf.org>, Brendan Moran <Brendan.Moran@arm.com>, 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> <3e608b68-7232-4ca0-f94c-22dc3adc8724@sit.fraunhofer.de>
From: Akira Tsukamoto <akira.tsukamoto@aist.go.jp>
Message-ID: <f6166058-2ba2-8ec3-cd4f-124b2909c19f@aist.go.jp>
Date: Fri, 10 Apr 2020 08:43:37 +0900
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0
In-Reply-To: <3e608b68-7232-4ca0-f94c-22dc3adc8724@sit.fraunhofer.de>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: TYAPR04CA0024.apcprd04.prod.outlook.com (2603:1096:404:15::36) To TYAPR01MB3406.jpnprd01.prod.outlook.com (2603:1096:404:cc::19)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [150.29.11.3] (150.29.11.3) by TYAPR04CA0024.apcprd04.prod.outlook.com (2603:1096:404:15::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.16 via Frontend Transport; Thu, 9 Apr 2020 23:43:38 +0000
X-Originating-IP: [150.29.11.3]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-HT: Tenant
X-MS-Office365-Filtering-Correlation-Id: a4511df1-bdf3-45f5-2c1f-08d7dcdfd3d8
X-MS-TrafficTypeDiagnostic: TYAPR01MB4975:
X-LD-Processed: 18a7fec8-652f-409b-8369-272d9ce80620,ExtAddr
X-Microsoft-Antispam-PRVS: <TYAPR01MB497589B4CD0597FA319BF01ED8C10@TYAPR01MB4975.jpnprd01.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:8882;
X-Forefront-PRVS: 0368E78B5B
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYAPR01MB3406.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(366004)(136003)(376002)(396003)(346002)(39860400002)(45080400002)(966005)(8936002)(31686004)(36756003)(110136005)(53546011)(4326008)(81156014)(66476007)(2906002)(66556008)(5660300002)(8676002)(478600001)(316002)(66946007)(81166007)(52116002)(16576012)(54906003)(6706004)(86362001)(6486002)(16526019)(2616005)(956004)(31696002)(186003)(44832011)(26005)(3940600001); DIR:OUT; SFP:1101;
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: QnboC/x5hXOZAOJhxJ74JZG3wEIXAtuBXl8R9eaRM62xT9JGcl0JfyO13LcoeumbEVBh2gfzm7vqq2EooisF8AY5R86MgBHYsFLT6tqMBaWbi/DfDY33cKfuiuk7Bl3mWAVirXbO+EQH62jBUCdKBPeQ3wFmJvxqly8qoETXDWo36DRQN9SdBQfKLBABvrx45UcNCX/tAiQ3tFlEfGerG9A5wnD7edlBcTifQqw0cfzBwWtndpXRdMyt8KHUXN79EJgHKrT1Hm9T7OV1vJeHaSgVX4KdU5dy3uy3EkcwVMtYvyz4JZf8QRDmSFFmutIZAXuIIzeu1FjxyQxEwISYz/JYZM9kB+vzNHSAPf5Nz4N5IRGDaFiZysgB/BRQSRXcqJvcmwaYH9nlA5F7P+CIYH+RhstZUm81AYMXqTGzVNjjO72/eHTMkhdTNjIF2Go/m/MIufzhWFpvPF7XH1w79+UQevsgZxtHmNUqA35QA27gdsa3FMFYunZdQWz69vx+N60/UQ4gMB8lUxFa7O7DvQqTZbmYIDw4IHRof530w51sw7dsij50PFXnYx8ScVzX
X-MS-Exchange-AntiSpam-MessageData: q4r71/LmJANT6zb4zbxzlYKNxohPb4B4/DJHVFjux2gD+MydG9TPqEXFaaCKG0rL75r1EyHiccoKYsQEasyjRmYg0wxzBJquzMBBFbYKwIOuj3Kg4CKZrOFMinVy61ltwWCtkoh72UvCLOXG4TwGOQ==
X-OriginatorOrg: aist.go.jp
X-MS-Exchange-CrossTenant-Network-Message-Id: a4511df1-bdf3-45f5-2c1f-08d7dcdfd3d8
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2020 23:43:38.7511 (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: PnrRZPo0X4SSZlKxCFmABJGNb5v1eZzA6bG+ZEffzKg7OF5GgmUvhn5N2doDQLkfBYlnF5pN2Ex+pFl2qab6uORdjFd1uQ3xVHYjND4GBYc=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB4975
Archived-At: <https://mailarchive.ietf.org/arch/msg/teep/RI5NsLYXX8TZC97jn-Xiy-T_WMg>
Subject: Re: [Teep] [Suit] Value of COSE_Mac_Tagged/COSE_Sign_Tagged/COSE_Mac0_Tagged/COSE_Sign1_Tagged
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: Thu, 09 Apr 2020 23:43:44 -0000

Hi Henk,

Thanks for you comment.
I now am perfectly clear about the label name is just annotation for array in cddl.

Best,
-Akira

On 4/9/2020 11:13 PM, Henk Birkholz wrote:
> 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://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc8610%23section-2.1&amp;data=02%7C01%7Cakira.tsukamoto%40aist.go.jp%7C85cf47c432354e5fa73a08d7dc903817%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637220384303337245&amp;sdata=%2B%2Bm5aUI2zpFdEXec5dNElG4KNhC%2B60TeUDxMcXjtGqo%3D&amp;reserved=0
> 
> Viele Grüße,
> 
> Henk
> 
> On 09.04.20 15:38, Akira Tsukamoto wrote:
>> Hi Carsten and Hannes,
>>
>> https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fietf-teep%2Fteep-protocol%2Fpull%2F27&amp;data=02%7C01%7Cakira.tsukamoto%40aist.go.jp%7C85cf47c432354e5fa73a08d7dc903817%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637220384303337245&amp;sdata=ZDVr31cNQdQNR5H2bcvnC%2Bj7m%2BDgVz1kIe4us99%2B%2BsA%3D&amp;reserved=0
>>
>> 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://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fietf-teep%2Fteep-protocol%2Fpull%2F27&amp;data=02%7C01%7Cakira.tsukamoto%40aist.go.jp%7C85cf47c432354e5fa73a08d7dc903817%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637220384303337245&amp;sdata=ZDVr31cNQdQNR5H2bcvnC%2Bj7m%2BDgVz1kIe4us99%2B%2BsA%3D&amp;reserved=0
>>>
>>> Grüße, Carsten
>>>
>>> _______________________________________________
>>> TEEP mailing list
>>> TEEP@ietf.org
>>> https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fteep&amp;data=02%7C01%7Cakira.tsukamoto%40aist.go.jp%7C85cf47c432354e5fa73a08d7dc903817%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637220384303337245&amp;sdata=CG21OuaA8t16%2BzyvSFazbG3l2sEpc9sa8trHUmX5TBI%3D&amp;reserved=0
>>
>> _______________________________________________
>> Suit mailing list
>> Suit@ietf.org
>> https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fsuit&amp;data=02%7C01%7Cakira.tsukamoto%40aist.go.jp%7C85cf47c432354e5fa73a08d7dc903817%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637220384303337245&amp;sdata=Cc9I9ZFT4Ms%2BI198MQw%2B78aJxlDsTlH0EonuB%2B7rKUg%3D&amp;reserved=0
>>