Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

101.9. tpm2-tools-5.8

The tpm2_* commands — seal a LUKS key to the chip and unseal it at boot

5.8-2 · BSD-3-Clause · 0.2 SBU · 2.5 MiB, 322 files · 41_system, 317 of 1047 · ports/core/crypto/tpm2-tools

Homepage: https://github.com/tpm2-software/tpm2-tools

Why it is in KDOS. The comment above tpm2-tss and tpm2-tools in script/phases/41_system/packages.d/crypto.txt:

The TPM2 stack, so a LUKS key can be sealed to the chip instead of typed on every boot.

Depends on: tpm2-tss, openssl, curl, efivar.

Required by: no port names it.

Sources: tpm2-tools-5.8.tar.gz (1.4 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install tpm2-tools'

build.sh:

./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
	--disable-static \
	--disable-unit \
	--enable-fapi \
	--with-efivar=yes \
	--with-bashcompdir=/usr/share/bash-completion/completions
make
make DESTDIR=$PKG install
install -Dm644 docs/LICENSE "$PKG/usr/share/licenses/$name/LICENSE"

Programs: tpm2, tpm2_activatecredential, tpm2_certify, tpm2_certifyX509certutil, tpm2_certifycreation, tpm2_changeauth, tpm2_changeeps, tpm2_changepps, tpm2_checkquote, tpm2_clear, tpm2_clearcontrol, tpm2_clockrateadjust, tpm2_commit, tpm2_create, tpm2_createak, tpm2_createek, tpm2_createpolicy, tpm2_createprimary, tpm2_dictionarylockout, tpm2_duplicate, tpm2_ecdhkeygen, tpm2_ecdhzgen, tpm2_ecephemeral, tpm2_encodeobject, tpm2_encryptdecrypt, tpm2_eventlog, tpm2_evictcontrol, tpm2_flushcontext, tpm2_getcap, tpm2_getcommandauditdigest, tpm2_geteccparameters, tpm2_getekcertificate, tpm2_getpolicydigest, tpm2_getrandom, tpm2_getsessionauditdigest, tpm2_gettestresult, tpm2_gettime, tpm2_hash, tpm2_hierarchycontrol, tpm2_hmac, tpm2_import, tpm2_incrementalselftest, tpm2_load, tpm2_loadexternal, tpm2_makecredential, tpm2_nvcertify, tpm2_nvdefine, tpm2_nvextend, tpm2_nvincrement, tpm2_nvread, tpm2_nvreadlock, tpm2_nvreadpublic, tpm2_nvsetbits, tpm2_nvundefine, tpm2_nvwrite, tpm2_nvwritelock, tpm2_pcrallocate, tpm2_pcrevent, tpm2_pcrextend, tpm2_pcrread, tpm2_pcrreset, tpm2_policyauthorize, tpm2_policyauthorizenv, tpm2_policyauthvalue, tpm2_policycommandcode, tpm2_policycountertimer, tpm2_policycphash, tpm2_policyduplicationselect, tpm2_policylocality, tpm2_policynamehash, tpm2_policynv, tpm2_policynvwritten, tpm2_policyor, tpm2_policypassword, tpm2_policypcr, tpm2_policyrestart, tpm2_policysecret, tpm2_policysigned, tpm2_policytemplate, tpm2_policyticket, tpm2_print, tpm2_quote, tpm2_rc_decode, tpm2_readclock, tpm2_readpublic, tpm2_rsadecrypt, tpm2_rsaencrypt, tpm2_selftest, tpm2_send, tpm2_sessionconfig, tpm2_setclock, tpm2_setcommandauditstatus, tpm2_setprimarypolicy, tpm2_shutdown, tpm2_sign, tpm2_startauthsession, tpm2_startup, tpm2_stirrandom, tpm2_testparms, tpm2_tr_encode, tpm2_unseal, tpm2_verifysignature, tpm2_zgen2phase, tss2, tss2_authorizepolicy, tss2_changeauth, tss2_createkey, tss2_createnv, tss2_createseal, tss2_decrypt, tss2_delete, tss2_encrypt, tss2_exportkey, tss2_exportpolicy, tss2_getappdata, tss2_getcertificate, tss2_getdescription, tss2_getinfo, tss2_getplatformcertificates, tss2_getrandom, tss2_gettpm2object, tss2_gettpmblobs, tss2_import, tss2_list, tss2_nvextend, tss2_nvincrement, tss2_nvread, tss2_nvsetbits, tss2_nvwrite, tss2_pcrextend, tss2_pcrread, tss2_provision, tss2_quote, tss2_setappdata, tss2_setcertificate, tss2_setdescription, tss2_sign, tss2_unseal, tss2_verifyquote, tss2_verifysignature, tss2_writeauthorizenv.

Directories: /usr/share/licenses/tpm2-tools.