diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-09-15 11:42:46 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-09-15 11:42:46 +0200 |
commit | d5246146c7e8fb3da6ccb7163aaa4d501b55e5b6 (patch) | |
tree | 40e61dca40d2da3c51a0be82f59792815c796f5c | |
parent | 43d65e7e322615eb9345e43294c3fb4930a37f53 (diff) |
Make two comments @doc.
-rw-r--r-- | src/plop.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plop.erl b/src/plop.erl index 70b52c8..f99d45d 100644 --- a/src/plop.erl +++ b/src/plop.erl @@ -242,15 +242,14 @@ sth(PrivKey, #sth_signed{version = Version, timestamp = Timestamp_in}) -> STH. %% TODO: Merge the keyfile reading functions. - -%% Read one password protected PEM file with an RSA keypair. +%% @doc Read one password protected PEM file with an RSA keypair. read_keyfile_rsa(Filename, Passphrase) -> {ok, PemBin} = file:read_file(Filename), [KeyPem] = public_key:pem_decode(PemBin), % Use first entry. Privatekey = decode_key(KeyPem, Passphrase), {Privatekey, public_key(Privatekey)}. -%% Read two PEM files, one with a private EC key and one with the +%% @doc Read two PEM files, one with a private EC key and one with the %% corresponding public EC key. read_keyfiles_ec(PrivkeyFile, Pubkeyfile) -> {ok, PemBinPriv} = file:read_file(PrivkeyFile), |