Skip to content

Commit

Permalink
Changes as per sphincs/sphincsplus#51
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Hartin committed Nov 25, 2023
1 parent 462b368 commit 0589422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphincs/fors.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static void message_to_indices(uint32_t *indices, const unsigned char *m) {
for (i = 0; i < SPX_FORS_TREES; i++) {
indices[i] = 0;
for (j = 0; j < SPX_FORS_HEIGHT; j++) {
indices[i] ^= (uint32_t)(((m[offset >> 3] >> (offset & 0x7)) & 0x1) << j);
indices[i] ^= ((m[offset >> 3] >> (~offset & 0x7)) & 0x1) << (SPX_FORS_HEIGHT-1-j);
offset++;
}
}
Expand Down

0 comments on commit 0589422

Please sign in to comment.