mirror of https://github.com/wolfSSL/wolfTPM.git
F-4622 — Pass full hex length to hexToByte in policy.c -digest=
parent
fa616ac090
commit
5477be2125
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue