F-4622 — Pass full hex length to hexToByte in policy.c -digest=

pull/512/head
aidan garske 2026-05-26 12:13:37 -07:00
parent fa616ac090
commit 5477be2125
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ int TPM2_PCR_Policy_Test(void* userCtx, int argc, char *argv[])
usage();
return 0;
}
hexRet = hexToByte(digestStr, digest, digestLen / 2);
hexRet = hexToByte(digestStr, digest, digestLen);
if (hexRet < 0) {
printf("Invalid hex digest string\n");
usage();