diff options
Diffstat (limited to 'include/crypto.php')
-rw-r--r-- | include/crypto.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/crypto.php b/include/crypto.php index 84d639f3f..d91d3749c 100644 --- a/include/crypto.php +++ b/include/crypto.php @@ -1,5 +1,7 @@ <?php /** @file */ +use Zotlabs\Lib\Crypto; + require_once('library/ASNValue.class.php'); require_once('library/asn1.php'); @@ -192,7 +194,6 @@ function crypto_methods() { function signing_methods() { - $r = [ 'sha256' ]; call_hooks('signing_methods',$r); return $r; @@ -461,12 +462,12 @@ function convert_salmon_key($key) { function z_obscure($s) { - return json_encode(crypto_encapsulate($s,get_config('system','pubkey'))); + return json_encode(Crypto::encapsulate($s,get_config('system','pubkey'))); } function z_unobscure($s) { if(strpos($s,"{\"") !== 0) return $s; - return crypto_unencapsulate(json_decode($s,true),get_config('system','prvkey')); + return Crypto::unencapsulate(json_decode($s,true),get_config('system','prvkey')); } |