| ... | @@ -300,10 +300,14 @@ const CryptoPwhash = struct { | ... | @@ -300,10 +300,14 @@ const CryptoPwhash = struct { |
| 300 | params: anytype, | 300 | params: anytype, |
| 301 | name: []const u8, | 301 | name: []const u8, |
| 302 | }; | 302 | }; |
| 303 | const bcrypt_params = bcrypt.Params{ .rounds_log = 5 }; | 303 | const bcrypt_params = crypto.pwhash.bcrypt.Params{ .rounds_log = 12 }; |
| 304 | const pwhashes = [_]CryptoPwhash{ | 304 | const pwhashes = [_]CryptoPwhash{ |
| 305 | CryptoPwhash{ .hashFn = bcrypt.strHash, .params = bcrypt_params, .name = "bcrypt" }, | 305 | .{ .hashFn = crypto.pwhash.bcrypt.strHash, .params = bcrypt_params, .name = "bcrypt" }, |
| 306 | CryptoPwhash{ .hashFn = scrypt.strHash, .params = scrypt.Params.interactive, .name = "scrypt" }, | 306 | .{ |
| | 307 | .hashFn = crypto.pwhash.scrypt.strHash, |
| | 308 | .params = crypto.pwhash.scrypt.Params.interactive, |
| | 309 | .name = "scrypt", |
| | 310 | }, |
| 307 | }; | 311 | }; |
| 308 | | 312 | |
| 309 | fn benchmarkPwhash( | 313 | fn benchmarkPwhash( |