Thread (40 messages) 40 messages, 5 authors, 2018-12-14

Re: [PATCH v6 7/7] tpm: pass an array of tpm_bank_list structures to tpm_pcr_extend()

From: Roberto Sassu <roberto.sassu@huawei.com>
Date: 2018-12-06 18:10:02
Also in: linux-security-module, lkml


On 12/5/2018 1:14 AM, Jarkko Sakkinen wrote:
On Tue, Dec 04, 2018 at 09:21:38AM +0100, Roberto Sassu wrote:
quoted
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?
quoted
+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help