aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/src/crypto.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-02-13 17:16:42 +0100
committerLukas Larsson <[email protected]>2014-02-24 15:16:06 +0100
commit6c4ee8337dff6e9b680dbff0796038948d718b5a (patch)
tree049f8b8b93353547141de24c0a294674f477d565 /lib/crypto/src/crypto.erl
parentd58602adef3412b354fd521bbd4bda24a0b1a789 (diff)
downloadotp-6c4ee8337dff6e9b680dbff0796038948d718b5a.tar.gz
otp-6c4ee8337dff6e9b680dbff0796038948d718b5a.tar.bz2
otp-6c4ee8337dff6e9b680dbff0796038948d718b5a.zip
ose: Fix support for crypto
To enable it you have to modify the OSESSL variable in the ose xcomp file.
Diffstat (limited to 'lib/crypto/src/crypto.erl')
-rw-r--r--lib/crypto/src/crypto.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index d953bd3bca..5bf52fc8a4 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -35,6 +35,7 @@
-export([private_encrypt/4, public_decrypt/4]).
-export([dh_generate_parameters/2, dh_check/1]). %% Testing see
-export([ec_curve/1, ec_curves/0]).
+-export([rand_seed/1]).
%% DEPRECATED
%% Replaced by hash_*
@@ -437,6 +438,11 @@ rand_uniform_pos(_,_) ->
rand_uniform_nif(_From,_To) -> ?nif_stub.
+-spec rand_seed(binary()) -> ok.
+rand_seed(Seed) ->
+ rand_seed_nif(Seed).
+
+rand_seed_nif(_Seed) -> ?nif_stub.
-spec mod_pow(binary()|integer(), binary()|integer(), binary()|integer()) -> binary() | error.
mod_pow(Base, Exponent, Prime) ->
@@ -1774,6 +1780,7 @@ mod_exp_nif(_Base,_Exp,_Mod,_bin_hdr) -> ?nif_stub.
rand_bytes,
strong_rand_bytes,
rand_uniform,
+ rand_seed,
mod_pow,
exor,
%% deprecated