summaryrefslogtreecommitdiff
path: root/tests/fuzz/api
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-19 09:07:14 -0300
committerEuAndreh <eu@euandre.org>2024-10-19 09:07:14 -0300
commite37c1fc7fe6b211c05f9124653c9b338e587ca8a (patch)
tree4b73a455eafe03646403e4ae84dab50ce53bb834 /tests/fuzz/api
parentRemove Go code in favor of upstream libscrypt-kdf (diff)
downloadscrypt-e37c1fc7fe6b211c05f9124653c9b338e587ca8a.tar.gz
scrypt-e37c1fc7fe6b211c05f9124653c9b338e587ca8a.tar.xz
src/scrypt.go: Create HashInput and CheckInput for named arguments
Diffstat (limited to 'tests/fuzz/api')
-rw-r--r--tests/fuzz/api/scrypt.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/fuzz/api/scrypt.go b/tests/fuzz/api/scrypt.go
index 8e785a5..c037add 100644
--- a/tests/fuzz/api/scrypt.go
+++ b/tests/fuzz/api/scrypt.go
@@ -14,7 +14,11 @@ func api(f *testing.F) {
return
}
- _, err := Hash(password, salt)
+ input := HashInput{
+ Password: password,
+ Salt: salt,
+ }
+ _, err := Hash(input)
if err != nil {
t.Errorf("Failed on: %#v\n", err)
}