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

Support key derivation properly #4

Closed samuel-lucas6 closed 3 months ago

samuel-lucas6 commented 8 months ago

Balloon has a limited output length, with the paper only discussing it in terms of being a password hashing algorithm, not a password-based key derivation function. By contrast, Wikipedia and NIST call it a PBKDF.

It would be nice to have longer outputs, like with scrypt and Argon2, without bringing in another primitive. For example, by doing something akin to NIST's One-Step KDF or NIST's KDF in Feedback Mode. However, XOF functionality should be used when available like NIST's KDF using KMAC but for algorithms such as SHAKE and BLAKE3.

Like #1, this would be a breaking change for existing implementations.