From 16d06da9fb425fe652f3826275f3f9bf87c881f0 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Thu, 16 May 2013 20:04:24 +0200 Subject: crypto,ssh, netconf, inets: binary_to_integer -> bytes_to_integer --- lib/ssh/src/ssh_math.erl | 2 +- lib/ssh/src/ssh_transport.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ssh') diff --git a/lib/ssh/src/ssh_math.erl b/lib/ssh/src/ssh_math.erl index e05964daa1..569c1cb58d 100644 --- a/lib/ssh/src/ssh_math.erl +++ b/lib/ssh/src/ssh_math.erl @@ -33,7 +33,7 @@ %% calculate A^B mod M ipow(A, B, M) when M > 0, B >= 0 -> - crypto:binary_to_integer(crypto:mod_pow(A, B, M)). + crypto:bytes_to_integer(crypto:mod_pow(A, B, M)). diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl index e3d1d3c8a0..beaffdc025 100644 --- a/lib/ssh/src/ssh_transport.erl +++ b/lib/ssh/src/ssh_transport.erl @@ -1047,7 +1047,7 @@ dh_group1() -> dh_gen_key(G, P, _) -> {Public, Private} = crypto:generate_key(dh, [P, G]), - {crypto:binary_to_integer(Private), crypto:binary_to_integer(Public)}. + {crypto:bytes_to_integer(Private), crypto:bytes_to_integer(Public)}. trim_tail(Str) -> lists:reverse(trim_head(lists:reverse(Str))). -- cgit v1.2.3