chore: fix typos

This commit is contained in:
Jon Lundy 2022-12-07 15:53:33 -07:00
parent 5bcec7c5a0
commit 2faeefb094
Signed by untrusted user who does not match committer: xuu
GPG Key ID: C63E6D61F3035024
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ func (p *Passwd) IsPreferred(hash string) bool {
_, algo := p.getAlgo(hash) _, algo := p.getAlgo(hash)
if algo != nil && algo == p.d { 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 { if ck, ok := algo.(interface{ IsPreferred(string) bool }); ok {
return ck.IsPreferred(hash) return ck.IsPreferred(hash)
} }

View File

@ -16,7 +16,7 @@ import (
type scryptpw struct { type scryptpw struct {
N int // CPU/memory cost parameter (logN) N int // CPU/memory cost parameter (logN)
R int // block size parameter (octets) 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) SaltLen int // bytes to use as salt (octets)
DKLen int // length of the derived key (octets) DKLen int // length of the derived key (octets)
@ -29,7 +29,7 @@ type scryptpw struct {
type scryptArgs struct { type scryptArgs struct {
N int // CPU/memory cost parameter (logN) N int // CPU/memory cost parameter (logN)
R int // block size parameter (octets) 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) SaltLen int // bytes to use as salt (octets)
DKLen int // length of the derived key (octets) DKLen int // length of the derived key (octets)