aboutsummaryrefslogtreecommitdiff
path: root/cmd/sigsum-debug/leaf/hash/hash.go
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-04-29 15:21:33 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-04-29 22:07:01 +0200
commit60131023dd5b3d28175d4cc5f7519086793482dd (patch)
tree5685b8b8c3342fb24e1ae8c033267a2c27ba6ce4 /cmd/sigsum-debug/leaf/hash/hash.go
parent8db1fdd6b372dab210a77f3c0d48d9deebfe5da3 (diff)
change 'preimage' to 'message'
Issue: #40
Diffstat (limited to 'cmd/sigsum-debug/leaf/hash/hash.go')
-rw-r--r--cmd/sigsum-debug/leaf/hash/hash.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sigsum-debug/leaf/hash/hash.go b/cmd/sigsum-debug/leaf/hash/hash.go
index 9bc845e..81531b5 100644
--- a/cmd/sigsum-debug/leaf/hash/hash.go
+++ b/cmd/sigsum-debug/leaf/hash/hash.go
@@ -26,11 +26,11 @@ func Main(args []string, optKeyHash, optSignature string, optShardHint uint64) e
return fmt.Errorf("parse signature: %w", err)
}
- preimage := types.HashFn(data)
+ message := types.HashFn(data)
leaf := types.Leaf{
Statement: types.Statement{
ShardHint: optShardHint,
- Checksum: *types.HashFn(preimage[:]),
+ Checksum: *types.HashFn(message[:]),
},
Signature: sig,
KeyHash: keyHash,