From 81f0c44d475e57fd56c6d8009e0c88f65d2fd84e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 15 May 2025 13:23:59 -0300 Subject: src/scrypt.go: Improve CLI handling, add tests alongside --- tests/functional/hash-and-check/scrypt.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/functional/hash-and-check/scrypt.go') diff --git a/tests/functional/hash-and-check/scrypt.go b/tests/functional/hash-and-check/scrypt.go index 065b9b5..9eeeb22 100644 --- a/tests/functional/hash-and-check/scrypt.go +++ b/tests/functional/hash-and-check/scrypt.go @@ -14,14 +14,14 @@ func MainTest() { salt = []byte("a fixed salt____________________") ) - hashInput := HashInput{ + hashInput := HashInputT{ Password: password, Salt: salt, } hash, err := Hash(hashInput) g.TErrorIf(err) - checkInput := CheckInput{ + checkInput := CheckInputT{ Password: password, Salt: salt, Hash: hash, @@ -38,14 +38,14 @@ func MainTest() { salt, err := Salt() g.TErrorIf(err) - hashInput := HashInput{ + hashInput := HashInputT{ Password: password, Salt: salt, } hash, err := Hash(hashInput) g.TErrorIf(err) - checkInput := CheckInput{ + checkInput := CheckInputT{ Password: password, Salt: salt, Hash: hash, -- cgit v1.2.3