]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Crypto.php
Simplified attachment handling
[friendica.git] / src / Util / Crypto.php
index ad2a6fb2cb5ed4790f287bd3ea4d653ba1ded496..6a49626bd2e5b377911182a45195372beebd2a8f 100644 (file)
@@ -394,7 +394,7 @@ class Crypto
                $key = random_bytes(32);
                $iv  = random_bytes(16);
                $result = ['encrypted' => true];
-               $result['data'] = base64url_encode(self::AES256CBC_encrypt($data, $key, $iv), true);
+               $result['data'] = base64url_encode(self::encryptAES256CBC($data, $key, $iv), true);
 
                // log the offending call so we can track it down
                if (!openssl_public_encrypt($key, $k, $pubkey)) {