Fix indentation .. again ;-)

This commit is contained in:
Philipp Holzer 2020-09-14 06:34:03 +02:00
父節點 9d9489494e
當前提交 4db45aca06
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 9A28B7D4FF5667BD
共有 2 個檔案被更改,包括 8 行新增10 行删除

查看文件

@ -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();
}

查看文件

@ -90,11 +90,10 @@ class CryptoTest extends TestCase
Crypto::pemToMe($key, $m, $e);
$expectedRSA = new RSA();
$expectedRSA->loadKey(
[
'e' => new BigInteger($e, 256),
'n' => new BigInteger($m, 256)
]);
$expectedRSA->loadKey([
'e' => new BigInteger($e, 256),
'n' => new BigInteger($m, 256)
]);
$this->assertEquals($expectedRSA->getPublicKey(), $key);
}