diff options
Diffstat (limited to 'src/plop.erl')
-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), |