From 291eec0ce59ca5fced297a42c22942d8389a3769 Mon Sep 17 00:00:00 2001 From: Claude Pache Date: Fri, 13 Aug 2021 18:16:08 +0200 Subject: [PATCH] PublicKeyLoader: make all methods static --- phpseclib/Crypt/PublicKeyLoader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpseclib/Crypt/PublicKeyLoader.php b/phpseclib/Crypt/PublicKeyLoader.php index a63565cd..ff93a6ec 100644 --- a/phpseclib/Crypt/PublicKeyLoader.php +++ b/phpseclib/Crypt/PublicKeyLoader.php @@ -72,7 +72,7 @@ abstract class PublicKeyLoader * @param string|array $key * @param string $password optional */ - public function loadPrivateKey($key, $password = false) + public static function loadPrivateKey($key, $password = false) { $key = self::load($key, $password); if (!$key instanceof PrivateKey) { @@ -88,7 +88,7 @@ abstract class PublicKeyLoader * @access public * @param string|array $key */ - public function loadPublicKey($key) + public static function loadPublicKey($key) { $key = self::load($key); if (!$key instanceof PublicKey) { @@ -104,7 +104,7 @@ abstract class PublicKeyLoader * @access public * @param string|array $key */ - public function loadParameters($key) + public static function loadParameters($key) { $key = self::load($key); if (!$key instanceof PrivateKey && !$key instanceof PublicKey) {