Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tools/testcertgen/*.der
*.code-workspace
.vscode
compile_commands.json
**/.cache

# Static analysis
tools/static-analysis/reports/
Expand Down
8 changes: 6 additions & 2 deletions src/wh_client_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -3838,8 +3838,12 @@ int wh_Client_CmacDma(whClientContext* ctx, Cmac* cmac, CmacType type,
/* If this is just a deferred initialization (NULL key, but keyId set),
* don't send a request - server will initialize on first update */
if ((key == NULL) && (in == NULL) && (outMac == NULL)) {
/* Just a keyId set operation, nothing to do via DMA */
return 0;
/* Just a keyId set operation, nothing to do via DMA except for
* cleanup of the state buffer */
(void)wh_Client_DmaProcessClientAddress(
ctx, (uintptr_t)cmac, (void**)&stateAddr, req->state.sz,
WH_DMA_OPER_CLIENT_WRITE_POST, (whDmaFlags){0});
return WH_ERROR_OK;
}

if (ret == WH_ERROR_OK) {
Expand Down