From 2faeefb094924c2368008562acf89c4279ea58ba Mon Sep 17 00:00:00 2001 From: Jon Lundy Date: Wed, 7 Dec 2022 15:53:33 -0700 Subject: [PATCH] chore: fix typos --- passwd.go | 2 +- pkg/scrypt/scrypt.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)