mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
fix missing paths (#9754)
increase bcrypt benchmark rounds Co-authored-by: lucky <>
This commit is contained in:
parent
50e34a063c
commit
f011f13933
@ -300,10 +300,14 @@ const CryptoPwhash = struct {
|
||||
params: anytype,
|
||||
name: []const u8,
|
||||
};
|
||||
const bcrypt_params = bcrypt.Params{ .rounds_log = 5 };
|
||||
const bcrypt_params = crypto.pwhash.bcrypt.Params{ .rounds_log = 12 };
|
||||
const pwhashes = [_]CryptoPwhash{
|
||||
CryptoPwhash{ .hashFn = bcrypt.strHash, .params = bcrypt_params, .name = "bcrypt" },
|
||||
CryptoPwhash{ .hashFn = scrypt.strHash, .params = scrypt.Params.interactive, .name = "scrypt" },
|
||||
.{ .hashFn = crypto.pwhash.bcrypt.strHash, .params = bcrypt_params, .name = "bcrypt" },
|
||||
.{
|
||||
.hashFn = crypto.pwhash.scrypt.strHash,
|
||||
.params = crypto.pwhash.scrypt.Params.interactive,
|
||||
.name = "scrypt",
|
||||
},
|
||||
};
|
||||
|
||||
fn benchmarkPwhash(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user