Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lineage of KDF #21

Open
rain-1 opened this issue Jul 12, 2018 · 3 comments
Open

lineage of KDF #21

rain-1 opened this issue Jul 12, 2018 · 3 comments

Comments

@rain-1
Copy link

rain-1 commented Jul 12, 2018

This KDF seems to be a homebrew thing https://github.com/skeeto/enchive/blob/master/src/enchive.c#L664

why not use scrypt?

how was this particular KDF designed? is it based on some literature? no links to references are provided in the source. Thanks!

@skeeto
Copy link
Owner

skeeto commented Jul 12, 2018 via email

@xorhash
Copy link

xorhash commented Jul 13, 2018

Since I couldn't find a drop-in implementation of any memory-hard KDF, I designed this one myself. So, yes, it's homebrew.

You may be interested in Monocypher. monocypher.c is just one source file with a bit less than 2000 lines and provides you with argon2i, (optionally AEAD) ChaCha20, a wrapped X25519, BLAKE-2 and more, while using nothing of the C stdandard library. You may be interested in switching to that. The licensing is CC0, alternatively 2-clause BSD, so that should work in as more or less a drop-in replacement.

@skeeto
Copy link
Owner

skeeto commented Jul 14, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants