From d5246146c7e8fb3da6ccb7163aaa4d501b55e5b6 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 15 Sep 2014 11:42:46 +0200 Subject: Make two comments @doc. --- src/plop.erl | 5 ++--- 1 file 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), -- cgit v1.1