Skip to content

Commit e52beab

Browse files
committed
Addressed reviewer's comment
1 parent 1fdb3b3 commit e52beab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tpm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ int wolfBoot_seal_auth(const uint8_t* pubkey_hint,
903903
seal_blob.handle.auth.size = authSz;
904904

905905
if (auth != NULL)
906-
XMEMCPY(seal_blob.handle.auth.buffer, auth, authSz);
906+
memcpy(seal_blob.handle.auth.buffer, auth, authSz);
907907

908908
/* creates a sealed keyed hash object (not loaded to TPM) */
909909
rc = wolfBoot_seal_blob(pubkey_hint, policy, policySz, &seal_blob,
@@ -1095,7 +1095,7 @@ int wolfBoot_unseal_blob(const uint8_t* pubkey_hint,
10951095
if (authSz > (int)sizeof(seal_blob->handle.auth.buffer))
10961096
return BAD_FUNC_ARG;
10971097
seal_blob->handle.auth.size = authSz;
1098-
XMEMCPY(seal_blob->handle.auth.buffer, auth, authSz);
1098+
memcpy(seal_blob->handle.auth.buffer, auth, authSz);
10991099
wolfTPM2_SetAuthHandle(&wolftpm_dev, 0, &seal_blob->handle);
11001100
}
11011101
else {

0 commit comments

Comments
 (0)