aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/test
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-04-23 16:54:36 +0200
committerIngela Anderton Andin <[email protected]>2013-05-08 10:39:19 +0200
commitc47e4babacedbac46d441228b514b2e650392cf7 (patch)
tree29b7ef51dd27862ea80daeba546d9a2d1daf199e /lib/crypto/test
parent2c1b0c61e2f6177d755e5bee9a865db646b6dca1 (diff)
downloadotp-c47e4babacedbac46d441228b514b2e650392cf7.tar.gz
otp-c47e4babacedbac46d441228b514b2e650392cf7.tar.bz2
otp-c47e4babacedbac46d441228b514b2e650392cf7.zip
crypto: Combine ec_key_new into ecdh_generate_key
and remove curve from the returned tuple.
Diffstat (limited to 'lib/crypto/test')
-rw-r--r--lib/crypto/test/crypto_SUITE.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl
index 55db09d9dd..384d15c68c 100644
--- a/lib/crypto/test/crypto_SUITE.erl
+++ b/lib/crypto/test/crypto_SUITE.erl
@@ -1887,7 +1887,8 @@ ec(Config) when is_list(Config) ->
ec_do() ->
%% test for a name curve
- D2 = crypto:ecdh_generate_key(sect113r2),
+ {D2_priv, D2_pub} = crypto:ecdh_generate_key(sect113r2),
+ D2 = {sect113r2, D2_priv, D2_pub},
%%TODO: find a published test case for a EC key