tpm2-util: tighten rules on the nvindex handle range we allocate from
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Jun 2024 16:58:54 +0000 (18:58 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 11 Jun 2024 21:40:23 +0000 (22:40 +0100)
commita5139b1415cf85489a6c55b5d7c14d08c13bc64d
treee112889d6ba74053b08ad8b7344b7d006b4460db
parent9afc6ac87c01c70917e996e7d3e2d381bf2b4f07
tpm2-util: tighten rules on the nvindex handle range we allocate from

Let's follow the conventions set by "Registry of Reserved TPM 2.0 Handles
and Localities" and only allocate nvindex currently not assigned to any
vendor.

For details see:

https://trustedcomputinggroup.org/resource/registry/

Section 2.2
src/shared/tpm2-util.c
src/shared/tpm2-util.h