Fix for older TPM's that don't support ECC384/SHA384.

pull/418/head
David Garske 2025-05-30 18:09:14 -07:00
parent f1507c697b
commit a45f922c6d
1 changed files with 4 additions and 0 deletions

View File

@ -429,6 +429,10 @@ static void test_wolfTPM2_EccSignVerifyDig(WOLFTPM2_DEV* dev,
AssertIntEQ(rc, 0);
rc = wolfTPM2_CreateAndLoadKey(dev, &eccKey, &storageKey->handle,
&publicTemplate, (byte*)gKeyAuth, sizeof(gKeyAuth)-1);
if ((rc & TPM_RC_HASH) == TPM_RC_HASH) {
printf("Hash type not supported... Skipping\n");
return;
}
AssertIntEQ(rc, 0);
/* Sign with TPM */