Skip to content

Commit 037a0b9

Browse files
jessepetersongroob
authored andcommitted
1 parent 136567a commit 037a0b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/crypto/password/password.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func SaltedSHA512PBKDF2(plaintext string) (SaltedSHA512PBKDF2Dictionary, error)
5050
// password dictionary.
5151
func Verify(plaintext string, h SaltedSHA512PBKDF2Dictionary) error {
5252
hashed := pbkdf2.Key([]byte(plaintext), h.Salt, h.Iterations, macKeyLen, sha512.New)
53-
if 1 == subtle.ConstantTimeCompare(h.Entropy, hashed) {
53+
if 1 != subtle.ConstantTimeCompare(h.Entropy, hashed) {
5454
return ErrNoMatch
5555
}
5656
return nil

0 commit comments

Comments
 (0)