Skip to content

Commit

Permalink
Consolidate crypto cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
relatko committed Oct 10, 2023
1 parent 0f87fff commit 44e50fc
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 387 deletions.
3 changes: 3 additions & 0 deletions src/decodeDH.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ void decode_handleAPDU(uint8_t p1,
TRACE_BUFFER(ctx->buffer, ctx->bufferLen);
uint16_t err = dh_decode(&ctx->pathSpec, &ctx->otherPubKey, ctx->buffer, &ctx->bufferLen);
if (err != SUCCESS) {
explicit_bzero(ctx->buffer, ctx->bufferLen);
TRACE();
PRINTF("Error: %d\n", err);
THROW(err);
}
ctx->messageDecodedMagic = DECODING_FINISHED_MAGIC;
Expand Down
Loading

0 comments on commit 44e50fc

Please sign in to comment.