aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/src/public_key.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-04-23 16:51:01 +0200
committerIngela Anderton Andin <[email protected]>2013-05-08 10:39:19 +0200
commit2c1b0c61e2f6177d755e5bee9a865db646b6dca1 (patch)
tree1733c6d4ac76f1222561dfa056aa7c983489128c /lib/public_key/src/public_key.erl
parentd9d8d008728b4522c62ed90540b1d90097fddb68 (diff)
downloadotp-2c1b0c61e2f6177d755e5bee9a865db646b6dca1.tar.gz
otp-2c1b0c61e2f6177d755e5bee9a865db646b6dca1.tar.bz2
otp-2c1b0c61e2f6177d755e5bee9a865db646b6dca1.zip
crypto, public_key: Switch places of ecdh_compute_key arguments
Diffstat (limited to 'lib/public_key/src/public_key.erl')
-rw-r--r--lib/public_key/src/public_key.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl
index d1484c5b2b..b11a225761 100644
--- a/lib/public_key/src/public_key.erl
+++ b/lib/public_key/src/public_key.erl
@@ -364,7 +364,7 @@ compute_key(PubKey, #'ECPrivateKey'{} = PrivateKey) ->
compute_key(PubKey, format_ecdh_key(PrivateKey));
compute_key(#'ECPoint'{point = Point}, ECDHKeys) ->
- crypto:ecdh_compute_key(ECDHKeys, Point).
+ crypto:ecdh_compute_key(Point, ECDHKeys).
compute_key(OthersKey, MyKey, {dh, Prime, Base}) when is_binary(OthersKey),
is_binary(MyKey),