samuel-lucas6 / draft-lucas-balloon-hashing

An Internet-Draft for the Balloon password hashing and password-based key derivation function.
Other
3 stars 1 forks source link

Fix the modulo bias #9

Closed samuel-lucas6 closed 1 month ago

samuel-lucas6 commented 5 months ago

spaceCost can be required to be a power of two.

samuel-lucas6 commented 4 months ago

Another approach would be using UInt128 and doing NIST's Simple Modular Method. However, that goes against #1 unless UInt64 is replaced with UInt128 everywhere.