Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11019102imu; Thu, 6 Dec 2018 10:11:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/V04ihZnRlxT1Jeqw5m/FNMt2zD+BDtn+2W2GSRzx7pXag5TXV6GNpZDdsheRFk6pvVVgH/ X-Received: by 2002:a17:902:1102:: with SMTP id d2mr25023746pla.138.1544119873973; Thu, 06 Dec 2018 10:11:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544119873; cv=none; d=google.com; s=arc-20160816; b=tj3JIIfU3jFaUdEcVtC33n3F/YocdzNwijwM77JyhF29KSuRh/OI9rlx5+dXWvlPl2 psaqAGMhgKQfgvChW24+Aar1yM6Sy6s0dj8XpHpw0/z5shX8gX53IHdhOpRWOnJMeak0 OlpGbdZsySB4F4VqaA7d32Ll3YYL2z6vBCU26ikLODZYyrL6LRUOpInLwgSs82whedDn NvAEZinKr0B0hwmipSZNYVxvJLBGVFe+DwdTp6+WwBdaodgXGLwBBdfiWrWnMuKsHRxd HJn6UsKIFELSTvwwqqdJOhbFTAZdmiddN96E5exJAu7sVtcGCidbUzU1iYEZmcs7iG+N OIDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ISlidQbBH1/002KtiiT+whY4A0KSYzww1U76VgrzqTU=; b=qEgcu8w7VyggdZng0frBjK72/gQyJWOnjY/BlWvNI0QeQJpEAjkwe1wAWhbFbrgE1E kv7bWmlOkqyOfYpmi/mxnxOLNolFGzPcj22T0C27ZtnHucWtJg7oGVrZKZ5gTx+Cay6t PbX5qRGChS5jtsIPF9E03aVAyVh0EXUfV06LQnfAv9q1vrvQyN7HdPsqBwFVZoLOH3vc LlTYUHF5z+yT9kg5t/x3pk37HSi09InGbtD0+B4G0G4ZHaChS+752qUa52TQUXKQTnfj EqEuqdqeOKlTwyZtwobPZVJ/S0NjBhawnIMA19eaJvr1VwOrUacUhc4YPhg3CNkQIuM1 Fmhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v30si673897pga.45.2018.12.06.10.10.57; Thu, 06 Dec 2018 10:11:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725989AbeLFSKB (ORCPT + 99 others); Thu, 6 Dec 2018 13:10:01 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:32803 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725898AbeLFSKA (ORCPT ); Thu, 6 Dec 2018 13:10:00 -0500 Received: from LHREML711-CAH.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id A25A1B8E11A92; Thu, 6 Dec 2018 18:09:56 +0000 (GMT) Received: from [10.204.65.144] (10.204.65.144) by smtpsuk.huawei.com (10.201.108.34) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 6 Dec 2018 18:09:48 +0000 Subject: Re: [PATCH v6 7/7] tpm: pass an array of tpm_bank_list structures to tpm_pcr_extend() To: Jarkko Sakkinen CC: , , , , , , References: <20181204082138.24600-1-roberto.sassu@huawei.com> <20181204082138.24600-8-roberto.sassu@huawei.com> <20181205001417.GF1233@linux.intel.com> From: Roberto Sassu Message-ID: <63ac9e36-34ac-6a1d-553d-dac5cab98d43@huawei.com> Date: Thu, 6 Dec 2018 19:09:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181205001417.GF1233@linux.intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.204.65.144] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/5/2018 1:14 AM, Jarkko Sakkinen wrote: > On Tue, Dec 04, 2018 at 09:21:38AM +0100, Roberto Sassu wrote: >> The new tpm_bank_list structure has been preferred to the tpm_digest >> structure, to let the caller specify the size of the digest (which may be >> unknown to the TPM driver). > > Why is that? Didn't previous commit query these? > >> +struct tpm_bank_list { >> + u16 alg_id; >> + u16 extend_size; >> + const u8 *extend_array; >> +}; > > Naming is not good here. If this only for extending shouldn't that > be in the structs name? tpm_extend_input? Roberto > /Jarkko > -- HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063 Managing Director: Bo PENG, Jian LI, Yanli SHI