]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Util/CryptoTest.php
Merge remote-tracking branch 'upstream/develop' into inbox-gsid
[friendica.git] / tests / src / Util / CryptoTest.php
index 8be5bbcc87c8f4c9486cae2c4ce9d315d3243996..82afc24832264f94a1f4c8e13cf3600749efc9a2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -65,7 +65,7 @@ class CryptoTest extends TestCase
                self::assertEquals(11111111, $test);
        }
 
-       public function dataRsa()
+       public function dataRsa(): array
        {
                return [
                        'diaspora' => [
@@ -92,34 +92,6 @@ class CryptoTest extends TestCase
                        ],
                ];
        }
-
-       /**
-        * @dataProvider dataPEM
-        */
-       public function testPemToMe(string $key)
-       {
-               Crypto::pemToMe($key, $m, $e);
-
-               $expectedRSA = new RSA();
-               $expectedRSA->loadKey([
-                       'e' => new BigInteger($e, 256),
-                       'n' => new BigInteger($m, 256)
-               ]);
-
-               self::assertEquals($expectedRSA->getPublicKey(), $key);
-       }
-
-       /**
-        * @dataProvider dataPEM
-        */
-       public function testMeToPem(string $key)
-       {
-               Crypto::pemToMe($key, $m, $e);
-
-               $checkKey = Crypto::meToPem($m, $e);
-
-               self::assertEquals($key, $checkKey);
-       }
 }
 
 /**