port hubzillas OpenWebAuth - fix wrong table name + fix wrong method name

This commit is contained in:
rabuzarus 2018-06-20 20:11:26 +02:00
parent e4aaf8eb16
commit 9f493357f4
2 changed files with 8 additions and 8 deletions

View 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)) {