chore: fix typos
This commit is contained in:
parent
5bcec7c5a0
commit
2faeefb094
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user