From 8d097316c0a12f14de4b9e27e1fe4c458c32f4b0 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 21 May 2022 20:31:09 +0200 Subject: use hashing from merkle package --- pkg/dns/dns.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/dns') 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 -- cgit v1.2.3