diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-03-28 19:06:49 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-03-28 19:10:49 +0200 |
commit | 999cf63440bb08bd2588b924a8a4309c7273adff (patch) | |
tree | f3924eb899e646df47878163b0a3b04536d10ec7 /pkg/requests/requests_test.go | |
parent | caa2c5c56bc009f36a22828b4a5885602bc9675d (diff) |
fix asymmetry in testv0.0.3
Next layer of hashing is when computing a checksum.
Diffstat (limited to 'pkg/requests/requests_test.go')
-rw-r--r-- | pkg/requests/requests_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/requests/requests_test.go b/pkg/requests/requests_test.go index 365f90f..a4d4992 100644 --- a/pkg/requests/requests_test.go +++ b/pkg/requests/requests_test.go @@ -244,7 +244,7 @@ func validLeaf(t *testing.T) *Leaf { t.Helper() return &Leaf{ ShardHint: 1, - Preimage: *types.HashFn(newHashBufferInc(t)[:]), + Preimage: *newHashBufferInc(t), Signature: *newSigBufferInc(t), VerificationKey: *newPubBufferInc(t), DomainHint: "example.com", @@ -255,7 +255,7 @@ func validLeafASCII(t *testing.T) string { t.Helper() return fmt.Sprintf("%s=%d\n%s=%x\n%s=%x\n%s=%x\n%s=%s\n", "shard_hint", 1, - "preimage", types.HashFn(newHashBufferInc(t)[:])[:], + "preimage", newHashBufferInc(t)[:], "signature", newSigBufferInc(t)[:], "verification_key", newPubBufferInc(t)[:], "domain_hint", "example.com", |