samuel-lucas6 / draft-lucas-bkdf

An Internet-Draft for the Balloon Key Derivation Function (BKDF), a memory-hard password hashing and password-based key derivation function.
Other
4 stars 1 forks source link

Fix the modulo bias #9

Closed samuel-lucas6 closed 3 months ago

samuel-lucas6 commented 7 months ago

spaceCost can be required to be a power of two.

samuel-lucas6 commented 6 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.