Skip to content

std/crypto: add scrypt kdf - #9577

Merged
jedisct1 merged 1 commit into
ziglang:masterfrom
x13a:scrypt
Aug 24, 2021
Merged

jedisct1 merged 1 commit into
ziglang:masterfrom
x13a:scrypt

Conversation

@x13a

@x13a x13a commented Aug 17, 2021

Copy link
Copy Markdown
Contributor

Hello everyone!

This is the second time to try to add scrypt kdf.

add scrypt kdf
add phc encoding parser
add password hashing functions to benchmark
change bcrypt to be consistent with scrypt

Previous pull: 8200
/cc @jedisct1

@jedisct1

Copy link
Copy Markdown
Contributor

Good job, @x13a ! And happy to see that CI is now green! 🎉

I'm going to review it as soon as possible.

Yescrypt is the successor to scrypt and is already used in Fedora and Debian, so we want to make sure that it can be added without breaking the API. The generic parameters should already take care of this. So only the fact that Yescrypt supports encryption might require a minor API change.

Thanks again for this!

@jedisct1 jedisct1 self-assigned this Aug 20, 2021
@jedisct1 jedisct1 added breaking Implementing this issue could cause existing code to no longer compile or have different behavior. standard library This issue involves writing Zig code for the standard library. labels Aug 20, 2021
Comment thread lib/std/crypto/bcrypt.zig Outdated
Comment thread lib/std/crypto/phc_encoding.zig
Comment thread lib/std/crypto/phc_encoding.zig Outdated
Comment thread lib/std/crypto/scrypt.zig Outdated
Comment thread lib/std/crypto/scrypt.zig Outdated
Comment thread lib/std/crypto/bcrypt.zig Outdated
add phc encoding parser
add password hash functions to benchmark
change bcrypt to be consistent with scrypt
@jedisct1

Copy link
Copy Markdown
Contributor

Let's get this in! 🍻

@jedisct1
jedisct1 merged commit 8c41a8e into ziglang:master Aug 24, 2021
@x13a
x13a deleted the scrypt branch August 24, 2021 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Implementing this issue could cause existing code to no longer compile or have different behavior. standard library This issue involves writing Zig code for the standard library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants