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 F0F7C723 for ; Tue, 2 Aug 2016 00:33:58 +0000 (UTC) Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [66.63.167.143]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id 729551BA for ; Tue, 2 Aug 2016 00:33:58 +0000 (UTC) Message-ID: <1470098031.18751.58.camel@HansenPartnership.com> From: James Bottomley To: Andy Lutomirski , "Luis R. Rodriguez" Date: Mon, 01 Aug 2016 20:33:51 -0400 In-Reply-To: References: <1469934481.23563.274.camel@linux.vnet.ibm.com> <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> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: Jason Cooper , "ksummit-discuss@lists.linuxfoundation.org" , Kyle McMartin , 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: , On Mon, 2016-08-01 at 14:14 -0700, Andy Lutomirski wrote: > 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. > }; Where's the signature in this? I see a hash but not a signature. However since you NAK'd them: now you're reinventing stuff pkcs7 already has. pkcs7 has ASN.1 encodings of the hash and the signature, so no need to repeat it in a non standard way. In fact, since the kernel already understands pkcs7, why not just use it (DER encoded). pkcs7 can do an attached and detached signature format, so we could just simply use it to package signed modules. James