diff options
author | EuAndreh <eu@euandre.org> | 2024-10-19 09:07:14 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-19 09:07:14 -0300 |
commit | e37c1fc7fe6b211c05f9124653c9b338e587ca8a (patch) | |
tree | 4b73a455eafe03646403e4ae84dab50ce53bb834 /tests/benchmarks | |
parent | Remove Go code in favor of upstream libscrypt-kdf (diff) | |
download | scrypt-e37c1fc7fe6b211c05f9124653c9b338e587ca8a.tar.gz scrypt-e37c1fc7fe6b211c05f9124653c9b338e587ca8a.tar.xz |
src/scrypt.go: Create HashInput and CheckInput for named arguments
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/hash/scrypt.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/benchmarks/hash/scrypt.go b/tests/benchmarks/hash/scrypt.go index 82f9ed5..54657d0 100644 --- a/tests/benchmarks/hash/scrypt.go +++ b/tests/benchmarks/hash/scrypt.go @@ -18,9 +18,13 @@ func MainTest() { password := []byte("password") salt := []byte("salt0123456789abcdef0123456789abcdef") + input := HashInput{ + Password: password, + Salt: salt, + } for i := 0; i < n; i++ { - _, err := Hash(password, salt) + _, err := Hash(input) if err != nil { panic(err) } |