Skip to content

Commit

Permalink
Fix clearing the used bit in the aux data
Browse files Browse the repository at this point in the history
I'm pretty sure the code is correct anyways, but still this should be cleaned up
  • Loading branch information
sfluhrer authored Nov 25, 2024
1 parent d1f07e1 commit c639af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hss_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ struct expanded_aux_data *hss_expand_aux_data( const unsigned char *aux_data,
const unsigned char *orig_aux_data = aux_data;
unsigned long aux_level = get_bigendian( aux_data, 4 );
aux_data += 4;
aux_level &= 0x7ffffffffL; /* Turn off the 'used' marker */
aux_level &= 0x7fffffffL; /* Turn off the 'used' marker */

unsigned h;
for (h = 0; h <= MAX_MERKLE_HEIGHT; h++, aux_level >>= 1) {
Expand Down

0 comments on commit c639af2

Please sign in to comment.