Skip to content

tpm2_makecredential: fix wrong tcg ek templates#3527

Merged
JuergenReppSIT merged 1 commit into
tpm2-software:masterfrom
shmset:fix-wrong-tcg-ek-templates
Nov 17, 2025
Merged

tpm2_makecredential: fix wrong tcg ek templates#3527
JuergenReppSIT merged 1 commit into
tpm2-software:masterfrom
shmset:fix-wrong-tcg-ek-templates

Conversation

@shmset

@shmset shmset commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

The current implementation assumes low-range RSA and ECC keys. Therefore if another key type is used, the default values are used and either the tpm2_makecredential call or the tpm2_activatecredential call fails.

This commit reduces the required template values to a minimum and supports additional key types.

Fixes: #3526

@shmset shmset force-pushed the fix-wrong-tcg-ek-templates branch 2 times, most recently from 4b120f5 to f8ec865 Compare November 14, 2025 14:41
The current implementation assumes low-range RSA and ECC keys. Therefore
if another key type is used, the default values are used and either the
tpm2_makecredential call or the tpm2_activatecredential call fails.

This commit reduces the required template values to a minimum and
supports additional key types.

Fixes: tpm2-software#3526

Signed-off-by: Silas Meier <silas.meier@gapfruit.com>
@shmset shmset force-pushed the fix-wrong-tcg-ek-templates branch from f8ec865 to f80462c Compare November 17, 2025 08:42
@JuergenReppSIT JuergenReppSIT merged commit c539cb2 into tpm2-software:master Nov 17, 2025
23 checks passed
@shmset shmset deleted the fix-wrong-tcg-ek-templates branch March 5, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tpm2_makecredential wrong default TCG EK template

2 participants