From fa616ac090edacef74b788ac148d3e52ecbfe2c6 Mon Sep 17 00:00:00 2001 From: aidan garske Date: Tue, 26 May 2026 12:13:11 -0700 Subject: [PATCH] =?UTF-8?q?F-4157=20=E2=80=94=20Fix=20native=5Ftest=20hash?= =?UTF-8?q?=20check=20using=20&&=20instead=20of=20||?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/native/native_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/native/native_test.c b/examples/native/native_test.c index 79eec0e9..41a43df0 100644 --- a/examples/native/native_test.c +++ b/examples/native/native_test.c @@ -963,7 +963,7 @@ int TPM2_Native_TestArgs(void* userCtx, int argc, char *argv[]) TPM2_GetRCString(rc)); goto exit; } - if (cmdOut.seqComp.result.size != TPM_SHA256_DIGEST_SIZE && + if (cmdOut.seqComp.result.size != TPM_SHA256_DIGEST_SIZE || XMEMCMP(cmdOut.seqComp.result.buffer, hashTestDig, TPM_SHA256_DIGEST_SIZE) != 0) { printf("Hash SHA256 test failed, result not as expected!\n");