aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/src/pubkey_pem.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-08-26 13:56:22 +0200
committerIngela Anderton Andin <[email protected]>2014-08-27 16:16:01 +0200
commit20aaacb5bc3ad0865c581ced9bd84e0a08a81514 (patch)
treea2c09970946cb1cf4d1a1692bf16c4945d97e106 /lib/public_key/src/pubkey_pem.erl
parent885011a731cf86fb1e1369d2dc00b890e026dc49 (diff)
downloadotp-20aaacb5bc3ad0865c581ced9bd84e0a08a81514.tar.gz
otp-20aaacb5bc3ad0865c581ced9bd84e0a08a81514.tar.bz2
otp-20aaacb5bc3ad0865c581ced9bd84e0a08a81514.zip
public_key: Fix spec and documentation for PBES
Diffstat (limited to 'lib/public_key/src/pubkey_pem.erl')
-rw-r--r--lib/public_key/src/pubkey_pem.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public_key/src/pubkey_pem.erl b/lib/public_key/src/pubkey_pem.erl
index 8d2e97ad77..98881c4a6a 100644
--- a/lib/public_key/src/pubkey_pem.erl
+++ b/lib/public_key/src/pubkey_pem.erl
@@ -68,7 +68,8 @@ encode(PemEntries) ->
%%--------------------------------------------------------------------
-spec decipher({public_key:pki_asn1_type(), DerEncrypted::binary(),
- {Cipher :: string(), Salt :: iodata() | #'PBES2-params'{}}},
+ {Cipher :: string(), Salt :: iodata() | #'PBES2-params'{}
+ | {#'PBEParameter'{}, atom()}}},
string()) -> Der::binary().
%%
%% Description: Deciphers a decrypted pem entry.
@@ -77,7 +78,8 @@ decipher({_, DecryptDer, {Cipher, KeyDevParams}}, Password) ->
pubkey_pbe:decode(DecryptDer, Password, Cipher, KeyDevParams).
%%--------------------------------------------------------------------
--spec cipher(Der::binary(), {Cipher :: string(), Salt :: iodata() | #'PBES2-params'{}} ,
+-spec cipher(Der::binary(), {Cipher :: string(), Salt :: iodata() | #'PBES2-params'{}
+ | {#'PBEParameter'{}, atom()}},
string()) -> binary().
%%
%% Description: Ciphers a PEM entry