Re: [Teep] Formatting of the TEEP messages

Akira Tsukamoto <akira.tsukamoto@aist.go.jp> Tue, 07 April 2020 12:41 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 0DCFA3A0860 for <teep@ietfa.amsl.com>; Tue, 7 Apr 2020 05:41:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.899
X-Spam-Level:
X-Spam-Status: No, score=0.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, BITCOIN_SPAM_02=2.499, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, PDS_BTC_ID=0.499, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 ovym6dcoacEn for <teep@ietfa.amsl.com>; Tue, 7 Apr 2020 05:41:10 -0700 (PDT)
Received: from JPN01-TY1-obe.outbound.protection.outlook.com (mail-eopbgr1400057.outbound.protection.outlook.com [40.107.140.57]) (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 43C453A085E for <teep@ietf.org>; Tue, 7 Apr 2020 05:41:10 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a5P/m1g/62ySj7owdCertHND/4AWpJwsR5amcde8+v8BStKt9VtxGBbn1CkBB2UB7Ocll3Hd92vFvVB8aMSKzHkRQ2yGLPjNDsFA1RcMKD77TSNjJY6RJISRoTj/hKKsw3Zw4dOSysybqvHlkS/fzgKBU4KBlxDWQUeyl2Ic6I/lVL03pnrHei5sUmy3id0bQycihBaHXlN8Muxs8bGjwrWwzybG6DWhqhHdwQnXujh6GAoxU7HTaTE0uNtngD177KQdqZocRAeGiqk99Bq3F/hVBQJBavjAYEVf/6AbBuiOwpS6bgWRZhoruaKSHHphXC1nkQfBVrPVVcgm2sPb4w==
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=ntuun6nqQSc3DWq3pXtzsq7IppN+X1VCW1qZzvhOlkE=; b=nZia4JiuTqq1lHLohFESdQQK/wiAlPTugicDH3gGJUUOfKvxuMovJ6rU3Mid4y82Xg4l/LpWWzeKEEcsm2sj/f+iXZ5X6HlPfqAX8+jecMi4akwIj16jYC0EULevYK8Jy40+xoFG3w6Y2asgTjMlqzYIDDqGW6Olmns8p57XKNDnm+9ezh/mt5JP02LwoPp5Rvm5fSZcP1KuM0o578D6gVc/K/r02x1CUStgg1bTQQFyqZxnnVy1SzMxlEXkP0uztMb2JZccGajDehUd4xkw0CPg+ljzx/7HtZMmQN5wlYp6HOa58GF8YGgErUjiQDowiViVL2EFWmlfPRRyEJtqmg==
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=ntuun6nqQSc3DWq3pXtzsq7IppN+X1VCW1qZzvhOlkE=; b=J7kyjraiUlozp4xZcuVjzXauqSEd1tYhDHlUahQOm4e8GuoA3MUo7g6GJ+J8aWxFVsuZk0GZjK5pn1QHIn/XyQHVO0e6T9WrGCK5Q9cnucFSSeC2UjMtKa+V04bKdoy5pTk8nCXxrwGO4tDjyHmhlwPsra4VzSNlbrEbp+TwlF8=
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 TYAPR01MB2269.jpnprd01.prod.outlook.com (52.133.177.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.19; Tue, 7 Apr 2020 12:41:07 +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; Tue, 7 Apr 2020 12:41:07 +0000
To: Hannes Tschofenig <Hannes.Tschofenig@arm.com>, "teep@ietf.org" <teep@ietf.org>
References: <AM0PR08MB3716EC86266D9325B021C7F7FAC30@AM0PR08MB3716.eurprd08.prod.outlook.com> <ec056bca-45f9-a0ca-67f8-2564980d15fc@aist.go.jp> <AM0PR08MB371642313A40A14CDA062957FAC30@AM0PR08MB3716.eurprd08.prod.outlook.com>
From: Akira Tsukamoto <akira.tsukamoto@aist.go.jp>
Message-ID: <34e91e42-1d67-666a-402c-5931ebe9c69e@aist.go.jp>
Date: Tue, 07 Apr 2020 21:41:07 +0900
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
In-Reply-To: <AM0PR08MB371642313A40A14CDA062957FAC30@AM0PR08MB3716.eurprd08.prod.outlook.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: TYAPR01CA0149.jpnprd01.prod.outlook.com (2603:1096:404:7e::17) To TYAPR01MB3406.jpnprd01.prod.outlook.com (2603:1096:404:cc::19)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.1.153] (217.178.18.13) by TYAPR01CA0149.jpnprd01.prod.outlook.com (2603:1096:404:7e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20 via Frontend Transport; Tue, 7 Apr 2020 12:41:07 +0000
X-Originating-IP: [217.178.18.13]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-HT: Tenant
X-MS-Office365-Filtering-Correlation-Id: 10daf1c0-5fbe-4e5e-bc8a-08d7daf0f15b
X-MS-TrafficTypeDiagnostic: TYAPR01MB2269:
X-Microsoft-Antispam-PRVS: <TYAPR01MB2269307689FB5A8055384241D8C30@TYAPR01MB2269.jpnprd01.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-Forefront-PRVS: 036614DD9C
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)(396003)(376002)(346002)(366004)(39860400002)(136003)(53546011)(81156014)(316002)(81166006)(16576012)(36756003)(8936002)(8676002)(6486002)(110136005)(15650500001)(45080400002)(31686004)(66946007)(16526019)(186003)(956004)(26005)(2616005)(44832011)(5660300002)(86362001)(478600001)(66476007)(966005)(31696002)(2906002)(66556008)(52116002); 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: +bY58XcrsdOOm03diHVsUqBUHwBSwIFRJCT5x72kaN/Uy8PCTWOifmOqcc4ZTOVH3kLTVLwQclmgegAhmgg3v+WG3TDIrUj+Vt5sBT6rz9A+rD2+bn7g5fUiOx3pNOrule+46wguPlz7rudhUmwiwtRZ5Y6HtJrF6wXkbUJR6wCgKKzeJVkzHkYbalKiBRygjKELsPqzN/BFrqJ+5KtQZLz3hOPgoozsKyeYz6NkXtLBfNAr6BXE57aQ3X0/CRyokHAt5TXNRrfP9KV/cdMLsTM3rqkaOAdoFajHiq5QZtCn169JSK5qOa4hUAK7LEcwJs8qEmo1bqzfa29RmSOF00OMFpOMTLAcXmpIw+7maMv8aEeO96TMOsbX1utVLHgD2YQ+mDFm3H06SaC2VRCbSjI6NlTPp/GeperK5kK4DRMKHv5RMJYYN94U2Vq1bEQZhT9oTO3bg3g+VkugjwYdN2WzICHAChGonR0MtmdAqmVdZdtrYsRPBMyCIgTa66lPSCUGIXVlXmCUZx+etisdwQ==
X-MS-Exchange-AntiSpam-MessageData: amHszZxb6h02O/2vESp19IaUUa//4Zkk0fHbLvtaj653FKobLUrh92ItPjHBQfxVecyqI9VPtnqE6gbFTRqICCDeH1TI8wfEkw7LHeG0Wq9O7/FCtvOvGXYjWoPOESEoqSGNEeM3XIsuli798GbQMw==
X-OriginatorOrg: aist.go.jp
X-MS-Exchange-CrossTenant-Network-Message-Id: 10daf1c0-5fbe-4e5e-bc8a-08d7daf0f15b
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2020 12:41:07.3761 (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: dXx91iR88NVEujCunV2+oI266cGSa8217AXO9xvy47e2yby55+YpuwFD8VOb2thuG5pGlGELNFpdIWOvmsiRM7iBcIz9XOT03ZP0KQ68Z+s=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB2269
Archived-At: <https://mailarchive.ietf.org/arch/msg/teep/32gXjVBIsbcTP9fNZzghiYujYew>
Subject: Re: [Teep] Formatting of the TEEP messages
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, 07 Apr 2020 12:41:12 -0000

Hi Hannes,

Yes, I know,
my email was something similar to express the reason behind the array and uint are good choice what we discussed last night, for who was not attending the interim meeting...
Because the TOKEN was in bstr, and I thought it was the discussion of explanation...

Best,
-Akira

On 4/7/20 21:09, Hannes Tschofenig wrote:
> Hi Akira,
> 
> In your example you still use a map instead of an array and for the type you should use the unsigned int instead of int. That's at least what was proposed yesterday in the virtual interim meeting.
> 
> Ciao
> Hannes
> 
> -----Original Message-----
> From: Akira Tsukamoto <akira.tsukamoto@aist.go.jp>
> Sent: Tuesday, April 7, 2020 1:59 PM
> To: Hannes Tschofenig <Hannes.Tschofenig@arm.com>; teep@ietf.org
> Subject: Re: [Teep] Formatting of the TEEP messages
> 
> Hi,
> 
> I just post current example in binary format with my hand binary encoding at the github.
> 
> https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fietf-teep%2Fteep-protocol%2Fissues%2F21&amp;data=02%7C01%7Cakira.tsukamoto%40aist.go.jp%7Cb8eafc62e3ac4be7f38008d7daec8ad2%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637218581788571186&amp;sdata=TjApvLZb0fp89L3BIZMjQJkMedcZgQFNelkhg4TLKj0%3D&amp;reserved=0
> 
> Which the
> 
> QueryRequest = {
>        TYPE : int,  // TYPE is 1 for QueryRequest
>        TOKEN : bstr, // TOKEN using 1C76CB4EF2665BC68B9198E76EE21C71
>        REQUEST : [+data_item], // using 2 here as an example
>       ...
> 
> will be something similar to
> 
> A4 // the map is A? and number of members, so if it has four members then it will be A4
> 58 04 45 95 05 54 // h'45950554' // TYPE label name in bstr will be embedded in map
> 01 // 1 for TYPE value
> 58 05 45 F4 B4 54 E4 // h'45F4B454E4' // TOKEN label name in bstr will be embedded in map
> 58 10 1C 76 CB 4E F2 66 5B C6 8B 91 98 E7 6E E2 1C 71 // h'1C76CB4EF2665BC68B9198E76EE21C71' // value for TOKEN in bstr
> 81 //  the array is 8? and number of members, so if it has one member then it will be 81
> 02
> and ...
> 
> I will probably come back to this topic next week.
> 
> Best,
> 
> -Akira
> 
> On 4/7/20 18:58, Hannes Tschofenig wrote:
>> Hi all,
>>
>> I am posting this topic to the list (although it is also discussed in a Github issue at https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fietf-teep%2Fteep-protocol%2Fissues%2F21&amp;data=02%7C01%7Cakira.tsukamoto%40aist.go.jp%7Cb8eafc62e3ac4be7f38008d7daec8ad2%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637218581788571186&amp;sdata=TjApvLZb0fp89L3BIZMjQJkMedcZgQFNelkhg4TLKj0%3D&amp;reserved=0 <https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fietf-teep%2Fteep-protocol%2Fissues%2F21&amp;data=02%7C01%7Cakira.tsukamoto%40aist.go.jp%7Cb8eafc62e3ac4be7f38008d7daec8ad2%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637218581788571186&amp;sdata=TjApvLZb0fp89L3BIZMjQJkMedcZgQFNelkhg4TLKj0%3D&amp;reserved=0>) because it blocks any implementation activity going forward.
>>
>> I want to make sure that I understand the tentative conclusion from our virtual interim meeting yesterday correctly. The suggestion is to use an array for the mandatory fields of the requests and to use a map for the rest.
>>
>> In the QueryRequest the first 3 elements of the array are type, token, requested (which are parameters defined in the TEEP protocol spec) followed by the last array entry, which is a map containing the optional parameters found in the QueryRequest message.
>>
>> Here is an example:
>> [1, h'1C76CB4EF2665BC68B9198E76EE21C71', [2], {3 : 1, 5 : 1}]
>>
>> Is my understanding correct?
>>
>> Ciao
>>
>> Hannes
>>
>> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
>>
>> _______________________________________________
>> 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%7Cb8eafc62e3ac4be7f38008d7daec8ad2%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637218581788571186&amp;sdata=g0W9kaf8cHoXqVZ7AHrnFYk6vnOZ8jWrZsYPlBZpj64%3D&amp;reserved=0
>>
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
> 
> _______________________________________________
> 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%7Cb8eafc62e3ac4be7f38008d7daec8ad2%7C18a7fec8652f409b8369272d9ce80620%7C0%7C0%7C637218581788571186&amp;sdata=g0W9kaf8cHoXqVZ7AHrnFYk6vnOZ8jWrZsYPlBZpj64%3D&amp;reserved=0
>