diff options
| author | lucky <53379023+x13a@users.noreply.github.com> | 2021-09-13 18:31:17 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-13 17:31:17 +0200 |
| commit | f011f13933b72f4d63a5f635c7646b68beee726e (patch) | |
| tree | 6421feec8f8a966d40548c6bc9dfc02b06e4fe31 | |
| parent | 50e34a063c270e1fe4fe9b0342ca300bc937d96a (diff) | |
| download | zig-f011f13933b72f4d63a5f635c7646b68beee726e.tar.gz zig-f011f13933b72f4d63a5f635c7646b68beee726e.zip | |
fix missing paths (#9754)
increase bcrypt benchmark rounds
Co-authored-by: lucky <>
| -rw-r--r-- | lib/std/crypto/benchmark.zig | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/std/crypto/benchmark.zig b/lib/std/crypto/benchmark.zig index 7d55b95a3f..d9ea4b172a 100644 --- a/lib/std/crypto/benchmark.zig +++ b/lib/std/crypto/benchmark.zig @@ -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( |
