diff options
author | Linus Nordberg <linus@nordberg.se> | 2022-04-29 15:08:53 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-04-29 22:16:22 +0200 |
commit | cb5c579ae46ee0570f2f32408e0427f989bd33ab (patch) | |
tree | 3848d1e492a8d947062494d935b432f25b352370 /integration/test.sh | |
parent | 26a04562c886dd1c46e738e29d2754631ff33992 (diff) |
change 'preimage' to 'message'
Issue: #40
Diffstat (limited to 'integration/test.sh')
-rwxr-xr-x | integration/test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/integration/test.sh b/integration/test.sh index 0a5dd78..7ba9dc9 100755 --- a/integration/test.sh +++ b/integration/test.sh @@ -344,8 +344,8 @@ function test_get_leaf() { return fi - preimage=$(openssl dgst -binary <(echo $1) | base16) - checksum=$(openssl dgst -binary <(echo $preimage | base16 -d) | base16) + message=$(openssl dgst -binary <(echo $1) | base16) + checksum=$(openssl dgst -binary <(echo $message | base16 -d) | base16) if [[ $(value_of checksum) != $checksum ]]; then fail "$desc: wrong checksum $(value_of checksum)" return @@ -362,7 +362,7 @@ function test_get_leaf() { function test_add_leaf() { desc="POST add-leaf (data \"$1\")" echo "shard_hint=$ssrv_shard_start" > $log_dir/req - echo "preimage=$(openssl dgst -binary <(echo $1) | base16)" >> $log_dir/req + echo "message=$(openssl dgst -binary <(echo $1) | base16)" >> $log_dir/req echo "signature=$(echo $1 | sigsum-debug leaf sign -k $cli_priv -h $ssrv_shard_start)" >> $log_dir/req echo "verification_key=$cli_pub" >> $log_dir/req |