Skip to content

Commit 577a46b

Browse files
fix typo for state address with cmac
1 parent c6c3c21 commit 577a46b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wh_client_crypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,7 +2527,7 @@ int wh_Client_CmacDma(whClientContext* ctx, Cmac* cmac, CmacType type,
25272527
/* Set up DMA state buffer in client address space */
25282528
req->state.sz = sizeof(*cmac);
25292529
ret = wh_Client_DmaProcessClientAddress(
2530-
ctx, (uintptr_t)key, (void**)&stateAddr, req->state.sz,
2530+
ctx, (uintptr_t)cmac, (void**)&stateAddr, req->state.sz,
25312531
WH_DMA_OPER_CLIENT_READ_PRE, (whDmaFlags){0});
25322532
req->state.addr = stateAddr;
25332533

@@ -2616,7 +2616,7 @@ int wh_Client_CmacDma(whClientContext* ctx, Cmac* cmac, CmacType type,
26162616
WH_DMA_OPER_CLIENT_WRITE_POST, (whDmaFlags){0});
26172617
}
26182618
(void)wh_Client_DmaProcessClientAddress(
2619-
ctx, (uintptr_t)key, (void**)&stateAddr, req->state.sz,
2619+
ctx, (uintptr_t)cmac, (void**)&stateAddr, req->state.sz,
26202620
WH_DMA_OPER_CLIENT_READ_POST, (whDmaFlags){0});
26212621
return ret;
26222622
}

0 commit comments

Comments
 (0)