aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/src/crypto.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/crypto/src/crypto.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/crypto/src/crypto.erl')
-rw-r--r--lib/crypto/src/crypto.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index 543d589d7e..6f4092ea74 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -1286,9 +1286,9 @@ term_to_ec_key({Curve, PrivKey, PubKey}) ->
term_to_ec_key_nif(_Curve, _PrivKey, _PubKey) -> ?nif_stub.
--spec ecdh_compute_key(ec_key_res(), ec_key_res() | ec_point()) -> binary().
+-spec ecdh_compute_key(ec_point(), ec_key_res()) -> binary().
ecdh_compute_key(Others, My) ->
- ecdh_compute_key_nif(term_to_ec_key(Others), My).
+ ecdh_compute_key_nif(Others, term_to_ec_key(My)).
ecdh_compute_key_nif(_Others, _My) -> ?nif_stub.