Skip to content

Commit f6f1f7c

Browse files
authored
Bug fix #489 (#508)
Changing the key value "MemoryCost" returned from hash.StandardScrypt.Config() to "cpuMemCost"
1 parent e423056 commit f6f1f7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

auth/hash/hash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (s StandardScrypt) Config() (internal.HashConfig, error) {
6464
"dkLen": s.DerivedKeyLength,
6565
"blockSize": s.BlockSize,
6666
"parallelization": s.Parallelization,
67-
"memoryCost": s.MemoryCost,
67+
"cpuMemCost": s.MemoryCost,
6868
}, nil
6969
}
7070

auth/hash/hash_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var validHashes = []struct {
4848
"blockSize": 1,
4949
"dkLen": 2,
5050
"parallelization": 3,
51-
"memoryCost": 4,
51+
"cpuMemCost": 4,
5252
},
5353
},
5454
{

0 commit comments

Comments
 (0)