diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scrypt.go | 8 |
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() { |