summaryrefslogtreecommitdiff
path: root/src/plop.erl
diff options
context:
space:
mode:
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 0ba14cc..eb16aa8 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -65,13 +65,13 @@ stop() ->
gen_server:call(?MODULE, stop).
%%%%%%%%%%%%%%%%%%%%
-init([PubKeyfile, PrivKeyfile]) ->
+init([PrivKeyfile, PubKeyfile]) ->
%% Read RSA keypair.
%% {Private_key, Public_key} = read_keyfile_rsa(Keyfile, Passphrase),
%% LogID = crypto:hash(sha256,
%% public_key:der_encode('RSAPublicKey', Public_key)),
%% Read EC keypair.
- {Private_key, Public_key} = read_keyfiles_ec(PubKeyfile, PrivKeyfile),
+ {Private_key, Public_key} = read_keyfiles_ec(PrivKeyfile, PubKeyfile),
LogID = crypto:hash(sha256, public_key:der_encode(
'ECPoint',
element(2, element(1, Public_key)))), % FIXME!