diff --git a/passwd.go b/passwd.go index 3353061..b66861c 100644 --- a/passwd.go +++ b/passwd.go @@ -63,7 +63,7 @@ func (p *Passwd) IsPreferred(hash string) bool { _, algo := p.getAlgo(hash) if algo != nil && algo == p.d { - // if the algorithem defines its own check for preference. + // if the algorithm defines its own check for preference. if ck, ok := algo.(interface{ IsPreferred(string) bool }); ok { return ck.IsPreferred(hash) } diff --git a/pkg/scrypt/scrypt.go b/pkg/scrypt/scrypt.go index 31d85c1..c69f7ec 100644 --- a/pkg/scrypt/scrypt.go +++ b/pkg/scrypt/scrypt.go @@ -16,7 +16,7 @@ import ( type scryptpw struct { N int // CPU/memory cost parameter (logN) R int // block size parameter (octets) - P int // parallelisation parameter (positive int) + P int // parallelization parameter (positive int) SaltLen int // bytes to use as salt (octets) DKLen int // length of the derived key (octets) @@ -29,7 +29,7 @@ type scryptpw struct { type scryptArgs struct { N int // CPU/memory cost parameter (logN) R int // block size parameter (octets) - P int // parallelisation parameter (positive int) + P int // parallelization parameter (positive int) SaltLen int // bytes to use as salt (octets) DKLen int // length of the derived key (octets)