X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FUtil%2FCrypto.php;h=6e054df9737510bdc1a1c575c95beed716ae3302;hb=55e54bb9500f54bb075dcbc2054018de0969d9e7;hp=3426babe36e27aa2102bf6d36152f80a939903ed;hpb=895b3abf320a28ecf0f797f4f4900e6baf429308;p=friendica.git diff --git a/src/Util/Crypto.php b/src/Util/Crypto.php index 3426babe36..6e054df973 100644 --- a/src/Util/Crypto.php +++ b/src/Util/Crypto.php @@ -4,10 +4,9 @@ */ namespace Friendica\Util; -use Friendica\Core\Addon; use Friendica\Core\Config; +use Friendica\Core\Hook; use Friendica\Core\Logger; -use Friendica\Util\Strings; use ASN_BASE; use ASNValue; @@ -372,7 +371,7 @@ class Crypto return $result; } else { $x = ['data' => $data, 'pubkey' => $pubkey, 'alg' => $alg, 'result' => $data]; - Addon::callHooks('other_encapsulate', $x); + Hook::callAll('other_encapsulate', $x); return $x['result']; } @@ -455,7 +454,7 @@ class Crypto return self::$fn(Strings::base64UrlDecode($data['data']), $k, $i); } else { $x = ['data' => $data, 'prvkey' => $prvkey, 'alg' => $alg, 'result' => $data]; - Addon::callHooks('other_unencapsulate', $x); + Hook::callAll('other_unencapsulate', $x); return $x['result']; }