summaryrefslogtreecommitdiff
path: root/src/plop.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-03-02 19:15:09 +0100
committerMagnus Ahltorp <map@kth.se>2015-03-02 19:15:31 +0100
commit9eaa1ef1b558043b809fd7c7f869128c186ec0e9 (patch)
treece2e59b845248e016e709ed01ca5ce1f3e1a4b27 /src/plop.erl
parent35a43b7b1951fdb45e2367122a3928ddba49c894 (diff)
Implement external signing
Diffstat (limited to 'src/plop.erl')
-rw-r--r--src/plop.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plop.erl b/src/plop.erl
index 63579d1..5eb0c1f 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -132,7 +132,7 @@ spt(Data) ->
#signature{algorithm = #sig_and_hash_alg{
hash_alg = sha256,
signature_alg = ecdsa},
- signature = sign:sign(Data)}.
+ signature = sign:sign_sct(Data)}.
consistency(TreeSizeFirst, TreeSizeSecond) ->
TreeSize = db:size(),
@@ -314,7 +314,7 @@ sth(#sth_signed{version = Version, timestamp = Timestamp_in}) ->
algorithm = #sig_and_hash_alg{
hash_alg = sha256,
signature_alg = ecdsa},
- signature = sign:sign(BinToSign)},
+ signature = sign:sign_sth(BinToSign)},
STH = {Treesize, Timestamp, Roothash, Signature},
%%io:format("STH: ~p~nBinToSign: ~p~nSignature: ~p~nTimestamp: ~p~n",
%% [STH, BinToSign, Signature, Timestamp]),