Thread (38 messages) flat view 38 messages, 3 authors, 2018-09-26

[PATCH v4 21/21] tpm: use u32 instead of int for PCR index

From: Jarkko Sakkinen <hidden>
Date: 2018-09-25 14:42:04
Also in: linux-integrity, lkml

On Fri, 2018-09-21 at 16:58 +0300, Tomas Winkler wrote:
The TPM specs defines PCR index a positive number, there is
no reason to use a signed number and it's also a possible security
issue as currently no functions check for a negative index,
which my into a large number when converted to u32.

Adjust the API to use u32 instead of int in all PCR related
functions.

Signed-off-by: Tomas Winkler <redacted>
I think I barked something about this in prev version but after giving
some thought. I think this a good change (more exact API).

Reviewed-by: Jarkko Sakkinen <redacted>

/Jarkko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help