Re: [COSE] [Rats] RAM requirements for COSE/CWT

Laurence Lundblade <lgl@island-resort.com> Wed, 23 February 2022 21:39 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 105183A0FC4 for <cose@ietfa.amsl.com>; Wed, 23 Feb 2022 13:39:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.896
X-Spam-Level:
X-Spam-Status: No, score=-6.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 B4tMCYPSbJwX for <cose@ietfa.amsl.com>; Wed, 23 Feb 2022 13:39:12 -0800 (PST)
Received: from p3plsmtpa06-08.prod.phx3.secureserver.net (p3plsmtpa06-08.prod.phx3.secureserver.net [173.201.192.109]) (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 889FE3A0E42 for <cose@ietf.org>; Wed, 23 Feb 2022 13:39:12 -0800 (PST)
Received: from [192.168.1.7] ([75.80.148.139]) by :SMTPAUTH: with ESMTPSA id MzJgnuFbmtbo2MzJgn7hkb; Wed, 23 Feb 2022 14:36:56 -0700
X-CMAE-Analysis: v=2.4 cv=M8iIlw8s c=1 sm=1 tr=0 ts=6216a8f8 a=qS/Wyu6Nw1Yro6yF1S+Djg==:117 a=qS/Wyu6Nw1Yro6yF1S+Djg==:17 a=gKmFwSsBAAAA:8 a=NEAV23lmAAAA:8 a=yQ0hMmJQFT9ZCyF6CuIA:9 a=QEXdDO2ut3YA:10 a=7PnlBysqKf8N78CN0UsA:9 a=guNBluFjyaxAMa1b:21 a=_W_S_7VecoQA:10 a=nnPW6aIcBuj1ljLj_o6Q:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <B15CE08B-E9D3-43A5-ACF5-5118AFBA3F8B@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_15B610A7-042F-4736-B324-BCDDE010C067"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
Date: Wed, 23 Feb 2022 13:36:56 -0800
In-Reply-To: <2A13AF29-6309-4FA3-9A84-59D4E0C8F089@tzi.org>
Cc: "rats@ietf.org" <rats@ietf.org>, cbor@ietf.org, "cose@ietf.org" <cose@ietf.org>
To: Carsten Bormann <cabo@tzi.org>
References: <e8995f0c-ad85-f702-da6b-051ffdc4cb08@gmail.com> <DBBPR08MB5915B874FD16107A7B0105AAFA3A9@DBBPR08MB5915.eurprd08.prod.outlook.com> <1a16c80d-40cd-baba-b1ce-2033dd0db294@gmail.com> <D22D0D63-F76C-48B3-A034-F8B5B2BB6005@tzi.org> <2c8be442-9899-d117-155c-f6f2096b7055@gmail.com> <92C7CF7C-ED23-41B3-AB32-8438C4C88C20@tzi.org> <14c8d106-3b4b-f973-94b8-018852ff4769@gmail.com> <8C2C6592-D5B9-430A-B878-E1009E9BCF22@tzi.org> <AB9F0C55-9C23-43F1-A83F-91D4159C888F@island-resort.com> <59939C29-5370-4385-AE61-A21ADDC0D194@tzi.org> <ED025590-3CA0-42B8-B50E-030D94FA88D6@island-resort.com> <E74C7303-E7D5-45EA-886C-158DB6D83844@tzi.org> <E5AD55D7-33B2-4E50-83EA-5BD1C1462F01@island-resort.com> <2A13AF29-6309-4FA3-9A84-59D4E0C8F089@tzi.org>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
X-CMAE-Envelope: MS4xfB2nElEGEHCZ3vvSgvWMyGWfIlNjQVJK26Hm9TvhNmuPQyJyzklsNfVuRYsGNNzjTSMaP5lPBuQ/xJvmzucnRI+2w77nC39sDzCZcNBeGDoXqDM4ni+s wEDE+Ew1eLUVyw5/WvTvhNw5kc+iLARIlCnMmYF2bVbyNSaPB9+WdPzAQ4rPV2fsRRaV3kfunVgPee4Qmi9thV3vpa2IA4hChn99TdUvfc1jlbCuI/lbEIX3 u78Tu0t5GHz19zETPxS/MA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/ptqE8AC-Fm4S0UVAcvjlVb9wyhA>
Subject: Re: [COSE] [Rats] RAM requirements for COSE/CWT
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: Wed, 23 Feb 2022 21:39:27 -0000

> On Feb 23, 2022, at 1:08 PM, Carsten Bormann <cabo@tzi.org> wrote:
>> 
>> Pulling an ldexp library could be a big deal. It could increase code size by a lot.
> 
> Yes. 
> I should probably write some alternative C code that is a couple lines longer but doesn’t need ldexp.
> (But what do you do with the binary32 then?)

I did that with shifts and masks and got a good education about floating point. :-)

https://github.com/laurencelundblade/QCBOR/blob/master/src/ieee754.c

More on the other parts later. Appreciate the discussion.

LL