summaryrefslogtreecommitdiff
path: root/tests/scrypt.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-09-28 06:38:23 -0300
committerEuAndreh <eu@euandre.org>2024-09-28 06:38:23 -0300
commitf356328c9ffae6580cf788007588c3dc8c63cbae (patch)
tree4f5e819810fc960612b5643e38c1600815b7c380 /tests/scrypt.go
parentsrc/scrypt.go: Remove "scrypt" prefix from consts (diff)
downloadscrypt-f356328c9ffae6580cf788007588c3dc8c63cbae.tar.gz
scrypt-f356328c9ffae6580cf788007588c3dc8c63cbae.tar.xz
src/scrypt.go: Rename XxxError to ErrXxx
Diffstat (limited to '')
-rw-r--r--tests/scrypt.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/scrypt.go b/tests/scrypt.go
index b7d87f1..58e4341 100644
--- a/tests/scrypt.go
+++ b/tests/scrypt.go
@@ -332,10 +332,10 @@ var good = []scryptTestVector {
const halfMax = maxInt / 2
var bad = []scryptTestVector {
- {"p", "s", 0, 1, 1, nil, BadNError}, // N == 0
- {"p", "s", 1, 1, 1, nil, BadNError}, // N == 1
- {"p", "s", 7, 8, 1, nil, BadNError}, // N is not power of 2
- {"p", "s", 16, halfMax, halfMax, nil, ParamsTooLargeError}, // p * r too large
+ {"p", "s", 0, 1, 1, nil, ErrBadN}, // N == 0
+ {"p", "s", 1, 1, 1, nil, ErrBadN}, // N == 1
+ {"p", "s", 7, 8, 1, nil, ErrBadN}, // N is not power of 2
+ {"p", "s", 16, halfMax, halfMax, nil, ErrParamsTooLarge}, // p * r too large
}
func test_validParams() {