aczid / crypto1_bs

Bitsliced Crypto-1 brute-forcer
200 stars 78 forks source link

Fix possible overflow when space is not multiple of `MAX_BITSLICES` #49

Closed danroc closed 6 months ago

danroc commented 6 months ago

This PR ensures that the arrays bucket_size and bitsliced_even_states are long enough to fit all bit-sliced blocks by rounding up the division (task[4]-task[3])/MAX_BITSLICES.

Fixes: https://github.com/aczid/crypto1_bs/issues/47

aczid commented 6 months ago

Thanks for finding and fixing this.