]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Crypto.php
Display the publish time in the local timezone
[friendica.git] / src / Util / Crypto.php
index 55852d59ba58defc7fc644ae09db9ea2486eafc0..0187079e39d8087579c8c4478ba4ed4aab2c6b12 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -73,11 +73,10 @@ class Crypto
        public static function meToPem($m, $e)
        {
                $rsa = new RSA();
-               $rsa->loadKey(
-                       [
-                               'e' => new BigInteger($e, 256),
-                               'n' => new BigInteger($m, 256)
-                       ]);
+               $rsa->loadKey([
+                       'e' => new BigInteger($e, 256),
+                       'n' => new BigInteger($m, 256)
+               ]);
                return $rsa->getPublicKey();
        }