Re: [Suit] Fwd: Firmware Update Paper

Koen <koen@bergzand.net> Fri, 06 December 2019 20:20 UTC

Return-Path: <koen@bergzand.net>
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 3EC2B1200CD for <suit@ietfa.amsl.com>; Fri, 6 Dec 2019 12:20:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.599
X-Spam-Level:
X-Spam-Status: No, score=-0.599 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bergzand.net
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 ssboG6b2qLXo for <suit@ietfa.amsl.com>; Fri, 6 Dec 2019 12:20:47 -0800 (PST)
Received: from mail.bergzand.net (mail.bergzand.net [IPv6:2a01:4f8:1c0c:6a48::3]) by ietfa.amsl.com (Postfix) with ESMTP id 2C40312006D for <suit@ietf.org>; Fri, 6 Dec 2019 12:20:46 -0800 (PST)
Received: from [IPv6:2001:470:78ad:2:e7ea:48f2:f69:c78a] (unknown [IPv6:2001:470:78ad:2:e7ea:48f2:f69:c78a]) by mail.bergzand.net (Postfix) with ESMTPSA id B6E8980469 for <suit@ietf.org>; Fri, 6 Dec 2019 21:20:45 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bergzand.net; s=dkim; t=1575663645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=PLhpIa9+16ArC2ODM69BgyAsHLO3TiY3Ya8eW0tPttE=; b=VVkTP9bNnoL7B/yXIvh/305+hhNJiSxbZvD9vG/NhEDYkMbZbuCBdKgrCW5I5Ltq25Hoc8 vaB99yh+r/On0hCQLX3IbcKl3JcwcPYvemEIOo0WFYZzaD3e8KntVJ5e9UlGVQAgbYTbJi gHH/n2W5MADWnU9tUXVFO4bvCPL3AC5WYMOxp/E2Zn0LlDSDcR9dqIaNaJyOyPqR/goRAP JAg0qKDvQlzTOUGPu4OFaw0TwAuVfY7hNCvwajH5rKbPZYCaH31uRU+Mv5ZI5ewmZfO5w3 8lvWW8Xbekvps8LjqfDJMhLD+qLZJmU3mmfGHWk6AuOsHIYeP8sqTDHjwkQAbg==
To: suit@ietf.org
References: <VI1PR08MB53600B1D1A194F49B67B90DFFAC60@VI1PR08MB5360.eurprd08.prod.outlook.com> <20191127203651.GA117656@davidb.org> <CANK0pbaWkn7w2swRgkOqsTubE1os=rDo2BLjrTZ5eW6ePv3WnA@mail.gmail.com> <20191129183627.GA16289@davidb.org> <DB6PR0801MB1879D9742622EA0AE08A8B72EA430@DB6PR0801MB1879.eurprd08.prod.outlook.com> <CABNHR1yEFvgEzHjBhpqTW-FX+LQTVYuSJE_9SP9OMwzjWsdORQ@mail.gmail.com> <CANK0pbaf8TTtMOSKHD0D-73+MCzSdjk7p+6hVO0WzpSxhF2fVg@mail.gmail.com> <CABNHR1z4N=uH9d5DvyYi17DCULqu3T6Ve9k-_EJr-37zUjF-uw@mail.gmail.com> <CANK0pbYGbzu8VAr7ZuzUOY1yQ75qkMKQ6PAncZCfkH2=RZWNUQ@mail.gmail.com> <CABNHR1wOXx6QRYMMFgnNs12qtc5Ofs8MdR-Oe=d4KRCzXtaiQA@mail.gmail.com> <CANK0pbagZtjzE4vsW6ez76aT2sFeNj_vMr=fKP8Xo6kvCcSF9A@mail.gmail.com> <VI1PR08MB5360CF7EFDF7C550D0D7E755FA5D0@VI1PR08MB5360.eurprd08.prod.outlook.com> <5719.1575486149@localhost>
From: Koen <koen@bergzand.net>
Autocrypt: addr=koen@bergzand.net; prefer-encrypt=mutual; keydata= mQINBFfiUE0BEAC2GQfspM4LKuFBsuBVG5f8iKIg3SQIeyK5tG+fHrLYIt+qXIrya1rxX4MQ iGtJmG0F+iVOAZZXLvT3nd1L7jIvT83fUULRKsxGeq8swHhHRdtyiSNDCdpY3Z0PmF6nyoEV kevB5FHQPLWZIMdvX324ihJ1qN34yIBBy+Q2rk2FP8Dn0PDHcCwiY9PCzurpNDcEjQ2EdsO2 pFAUy8m04A0H9pH3Up/o6xhsQsbt4Q9U1YuGJiUpMXXBq+6hufafRtRjPIypr4LCYAVaKsds R5GxLcFrNXiMxDf3tVTrF2PebXhepamDbG7ujpiYZ5x8fKEFvrUJSM2Qz+agf0JqsueXowy7 nwNrcn9ygShydizAZ34OSphGCxnmJ6j6aTp/bo77GXJnvT3hACYHX7vmTg6ODII9pLQCYda4 ML2rL6u06oLnvyoC2Q7RQKgfMSDgA3Vx+yeWI4IoxmtNXjnFvrfGCIY347rhjBrQL4Za1xuL uw0YggCCIH1Qp6z+MNXcIuHEeS5HJJsUQlN6OfBwCWI2hfToilo+/7xv4sIc6+aknLhmE3H2 FuDYFh3Z7TUoLL3K/Jcx3ndmsajh3UNsnYPxiOLkFIKJgDfQg+Xi7eqVSaBslSPNjsw78lNc qkCSOZXuDfd7h4cuvn6m+VdFz2yRLoOhZPxc2jBd9QxSsXBIqwARAQABtCFLb2VuIFphbmRi ZXJnIDxrb2VuQGJlcmd6YW5kLm5ldD6JAlcEEwEIAEECGwMCHgECF4AFCwkIBwMFFQoJCAsF FgIDAQACGQEWIQSDJPGzz5fOvsA7TQxpVo8r+BFKJwUCXaB3nwUJB59a0gAKCRBpVo8r+BFK J0rOEACkarmr6b6V+J+y2lMcaglsBnQwNGtR338ckXIul4Ig82qnFAFA+xg+oIJ/WVSg8WJX 8FyBeAD0dpBNWdOlPCgrh9UuThy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zand.net>
Date: Fri, 6 Dec 2019 21:20:45 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2
MIME-Version: 1.0
In-Reply-To: <5719.1575486149@localhost>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/ltrxSNDCVUK9ygDBXQkZXGHF_f8>
Subject: Re: [Suit] Fwd: Firmware Update Paper
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: Fri, 06 Dec 2019 20:20:49 -0000

Hi all,
>     > [SS] Does that scale linearly with image size? Do memory requirements (RAM
>     > usage) increase with the image size?
>
> I guess what we want to know is how much of that 7s time was the ED25519 operation, and
> how much time was the hash calculation.  Only the hash calculation would
> scale with the image size.

The time we measured spent on hashing (SHA256)is comparatively small for
the typical firmware sizes.It takes ~4ms per kB to hashon the platform
used in the paper. Even with a 200kB binary,it takes just a fraction
(~10%) of the time needed for signature verification and a tinier
fraction if the binary is smaller.

Best regards,
Koen Zandberg