Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #12 from blakehartin/main
Browse files Browse the repository at this point in the history
Changes as per sphincs/sphincsplus#51
  • Loading branch information
DogeProtocol authored Nov 25, 2023
2 parents d13f9d3 + 0589422 commit c9de6b2
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 c9de6b2

Please sign in to comment.