Skip to content

Commit

Permalink
Rewrite expression to be the same as in key_scramble1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Aug 9, 2021
1 parent 06da1c1 commit b4480d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blkstuff/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void mhy0_header_scramble2(uint8_t* input)

int idx = j % 8;

tmp[j] = smol_key[idx] ^ key_scramble_table1[j % 4 * 256 | gf256_mul(v25[idx], input[i])];
tmp[j] = smol_key[idx] ^ key_scramble_table1[((j & 3) << 8) | gf256_mul(v25[idx], input[i])];
}
memcpy(input, tmp, 16);
}
Expand Down

0 comments on commit b4480d0

Please sign in to comment.