We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 918e00c commit 02b88c0Copy full SHA for 02b88c0
src/tpm.c
@@ -1539,15 +1539,14 @@ int wolfBoot_tpm2_clear(void)
1539
int wolfBoot_check_rot(int key_slot, uint8_t* pubkey_hint)
1540
{
1541
int rc;
1542
- size_t auth_sz;
1543
uint8_t digest[WOLFBOOT_SHA_DIGEST_SIZE];
1544
uint32_t digestSz = WOLFBOOT_SHA_DIGEST_SIZE;
1545
WOLFTPM2_NV nv;
1546
1547
memset(&nv, 0, sizeof(nv));
1548
nv.handle.hndl = WOLFBOOT_TPM_KEYSTORE_NV_BASE + key_slot;
1549
#ifdef WOLFBOOT_TPM_KEYSTORE_AUTH
1550
- auth_sz = strlen(WOLFBOOT_TPM_KEYSTORE_AUTH);
+ size_t auth_sz = strlen(WOLFBOOT_TPM_KEYSTORE_AUTH);
1551
if (auth_sz > (size_t)UINT16_MAX ||
1552
auth_sz > sizeof(nv.handle.auth.buffer))
1553
return BAD_FUNC_ARG;
0 commit comments