aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/src/pubkey_pbe.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-09-07 18:24:05 +0200
committerHans Nilsson <[email protected]>2017-10-02 12:45:01 +0200
commit8d37b35a3d68a5acf4889d5df20b51790ec19097 (patch)
treed951a1b13857ab7ebf71fd2aa5b6da7b181f81e6 /lib/public_key/src/pubkey_pbe.erl
parentf178f46023da20fb2728e9b95b3d14a1c4c6b5ce (diff)
downloadotp-8d37b35a3d68a5acf4889d5df20b51790ec19097.tar.gz
otp-8d37b35a3d68a5acf4889d5df20b51790ec19097.tar.bz2
otp-8d37b35a3d68a5acf4889d5df20b51790ec19097.zip
ssh: add ecdsa_pass_phrase option in analogy with rsa_pass_phrase
Diffstat (limited to 'lib/public_key/src/pubkey_pbe.erl')
-rw-r--r--lib/public_key/src/pubkey_pbe.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public_key/src/pubkey_pbe.erl b/lib/public_key/src/pubkey_pbe.erl
index 0243bcaa82..e89e16f120 100644
--- a/lib/public_key/src/pubkey_pbe.erl
+++ b/lib/public_key/src/pubkey_pbe.erl
@@ -222,7 +222,8 @@ pbe_pad(Data, {#'PBEParameter'{}, _}) ->
pbe_pad(Data, #'PBES2-params'{}) ->
pbe_pad(Data);
pbe_pad(Data, _) ->
- Data.
+pbe_pad(Data).%% Data.
+
pbe_pad(Data) ->
N = 8 - (erlang:byte_size(Data) rem 8),