diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-09-25 22:35:12 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-09-25 22:35:12 -0700 |
| commit | 6cb1031bcbea0c13fb49f9ae445641aed53d2e8e (patch) | |
| tree | 123ae4ebdcd865e93ecb5076acc4ae011c6adfe8 /internal | |
| parent | aa6ac0717938c3b2b59ded74adeeb4bdf7777f39 (diff) | |
| download | roseh.moe-6cb1031bcbea0c13fb49f9ae445641aed53d2e8e.tar.zst | |
Fix test
Diffstat (limited to 'internal')
| -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 { |
