aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-05-16 20:04:24 +0200
committerIngela Anderton Andin <[email protected]>2013-05-22 10:51:18 +0200
commit16d06da9fb425fe652f3826275f3f9bf87c881f0 (patch)
treed800970cb14e172725d52b50504652864ceef008 /lib/common_test/test
parent355e919653c8178b9144db9e0fa01c329e077de4 (diff)
downloadotp-16d06da9fb425fe652f3826275f3f9bf87c881f0.tar.gz
otp-16d06da9fb425fe652f3826275f3f9bf87c881f0.tar.bz2
otp-16d06da9fb425fe652f3826275f3f9bf87c881f0.zip
crypto,ssh, netconf, inets: binary_to_integer -> bytes_to_integer
Diffstat (limited to 'lib/common_test/test')
-rw-r--r--lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl b/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl
index a3309b844d..0535eb924b 100644
--- a/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl
+++ b/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl
@@ -1072,7 +1072,7 @@ gen_dsa2(LSize, NSize) ->
Y = crypto:mod_pow(G, X, P), %% Calculate y = g^x mod p.
#'DSAPrivateKey'{version=0, p = P, q = Q,
- g = crypto:binary_to_integer(G), y = crypto:binary_to_integer(Y), x = X}
+ g = crypto:bytes_to_integer(G), y = crypto:bytes_to_integer(Y), x = X}
end.
%% See fips_186-3.pdf
@@ -1104,7 +1104,7 @@ is_prime(_, 0) -> true;
is_prime(Candidate, Test) ->
CoPrime = odd_rand(10000, Candidate),
Result = crypto:mod_pow(CoPrime, Candidate, Candidate) ,
- is_prime(CoPrime, crypto:binary_to_integer(Result), Candidate, Test).
+ is_prime(CoPrime, crypto:bytes_to_integer(Result), Candidate, Test).
is_prime(CoPrime, CoPrime, Candidate, Test) ->
is_prime(Candidate, Test-1);