aboutsummaryrefslogtreecommitdiff
path: root/pkg/dns
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-05-21 20:31:09 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-06-21 19:46:54 +0200
commit8d097316c0a12f14de4b9e27e1fe4c458c32f4b0 (patch)
tree84ff3998b167bb5e12f26842ddff2c565c7a86bb /pkg/dns
parent97540f9ded30f68f9fda62f66f3006414cbfd5b7 (diff)
use hashing from merkle package
Diffstat (limited to 'pkg/dns')
-rw-r--r--pkg/dns/dns.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/dns/dns.go b/pkg/dns/dns.go
index 8fbcfdf..606ce7b 100644
--- a/pkg/dns/dns.go
+++ b/pkg/dns/dns.go
@@ -9,6 +9,7 @@ import (
"strings"
"git.sigsum.org/sigsum-go/pkg/hex"
+ "git.sigsum.org/sigsum-go/pkg/merkle"
"git.sigsum.org/sigsum-go/pkg/types"
)
@@ -45,7 +46,7 @@ func (dr *DefaultResolver) Verify(ctx context.Context, name string, pub *types.P
}
func validResponse(pub *types.PublicKey, rsps []string) error {
- keyHash := hex.Serialize(types.HashFn(pub[:])[:])
+ keyHash := hex.Serialize(merkle.HashFn(pub[:])[:])
for _, rsp := range rsps {
if rsp == keyHash {
return nil