diff options
Diffstat (limited to 'internal/cryptoutil/cryptoutil_test.go')
| -rw-r--r-- | internal/cryptoutil/cryptoutil_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/cryptoutil/cryptoutil_test.go b/internal/cryptoutil/cryptoutil_test.go index 6235878..79a53a9 100644 --- a/internal/cryptoutil/cryptoutil_test.go +++ b/internal/cryptoutil/cryptoutil_test.go @@ -21,9 +21,9 @@ func TestPassword(t *testing.T) { if err != nil { t.Fatalf("Hash(%q) failed: %s", password, err) } - _, err = CheckPassword(password, hash) + _, err = hash.CheckPassword(password) if err != nil { - t.Errorf("CheckPassword(%q, %q) failed: %s", password, hash, err) + t.Errorf("%x.CheckPassword(%q) failed: %s", hash, password, err) } } @@ -62,9 +62,9 @@ func TestDeriveKey(t *testing.T) { if err != nil { t.Fatalf("Hash(%q) failed: %s", password, err) } - rawKey, err := CheckPassword(password, hash) + rawKey, err := hash.CheckPassword(password) if err != nil { - t.Fatalf("CheckPassword(%q, %x) failed: %s", password, hash, err) + t.Fatalf("%x.CheckPassword(%q) failed: %s", hash, password, err) } key, err := rawKey.EncryptionKey() if err != nil { |
