Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
osiastedian committed Dec 11, 2023
1 parent bba97ba commit 116d436
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/merkle.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ void merkle_combine_hashes(const uint8_t left[static 32],
cx_sha256_init_no_throw(&G_cx.sha256);

uint8_t prefix = 0x01;
cx_sha256_update(&G_cx.sha256, &prefix, 1);
int prefResult = cx_sha256_update(&G_cx.sha256, &prefix, 1);

cx_sha256_update(&G_cx.sha256, left, 32);
cx_sha256_update(&G_cx.sha256, right, 32);
int leftResult = cx_sha256_update(&G_cx.sha256, left, 32);
int rightResult = cx_sha256_update(&G_cx.sha256, right, 32);

cx_sha256_final(&G_cx.sha256, out);
explicit_bzero(&G_cx.sha256, sizeof(cx_sha256_t));
Expand Down

0 comments on commit 116d436

Please sign in to comment.