From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 24AE671 for ; Mon, 1 Aug 2016 22:56:48 +0000 (UTC) Received: from outbound1.eu.mailhop.org (outbound1.eu.mailhop.org [52.28.251.132]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 20EAF263 for ; Mon, 1 Aug 2016 22:56:46 +0000 (UTC) Date: Mon, 1 Aug 2016 22:56:38 +0000 From: Jason Cooper To: Andy Lutomirski Message-ID: <20160801225638.GE4541@io.lakedaemon.net> References: <1469979098.23563.300.camel@linux.vnet.ibm.com> <1469986138.23563.312.camel@linux.vnet.ibm.com> <20160801172920.GU3296@wotan.suse.de> <20160801202320.GB3296@wotan.suse.de> <20160801205706.GE3296@wotan.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: "ksummit-discuss@lists.linuxfoundation.org" , Kyle McMartin , James Bottomley , Mark Brown , Andy Lutomirski , Johannes Berg Subject: Re: [Ksummit-discuss] Last minute nominations: mcgrof and toshi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hey Andy, Luis, Mimi, On Mon, Aug 01, 2016 at 02:14:52PM -0700, Andy Lutomirski wrote: > Or he could use my old suggestion instead: rather than signing the > firmware blob itself, sign a little data structure like this: > > struct linux_blob_signed_data { > unsigned char magic[8]; // "LINUXSIG" -- for domain separation in case someone messes up > uint32_t version; // = 1 > unsigned char sha256[32]; // SHA256 hash of the blob > uint32_t type; // what type of thing this is (firmware, etc) > unsigned char description[]; // the remainder of the structure is "iwlwifi-whatever.ucode", etc. > }; I would include the length of the blob in here as well. thx, Jason.