summaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-09-25 22:35:12 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-09-25 22:35:12 -0700
commit6cb1031bcbea0c13fb49f9ae445641aed53d2e8e (patch)
tree123ae4ebdcd865e93ecb5076acc4ae011c6adfe8 /internal
parentaa6ac0717938c3b2b59ded74adeeb4bdf7777f39 (diff)
downloadroseh.moe-6cb1031bcbea0c13fb49f9ae445641aed53d2e8e.tar.zst
Fix test
Diffstat (limited to 'internal')
-rw-r--r--internal/cryptoutil/cryptoutil_test.go8
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 {