From 12864bd9f68aa67e511a87d9370a40c5a2e00f00 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 14 Aug 2021 12:03:23 -0500 Subject: [PATCH] AsymmetricKey: make more methods static --- phpseclib/Crypt/Common/AsymmetricKey.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpseclib/Crypt/Common/AsymmetricKey.php b/phpseclib/Crypt/Common/AsymmetricKey.php index 9253234b..4b70ac73 100644 --- a/phpseclib/Crypt/Common/AsymmetricKey.php +++ b/phpseclib/Crypt/Common/AsymmetricKey.php @@ -198,7 +198,7 @@ abstract class AsymmetricKey * @param string|array $key * @param string $password optional */ - public function loadPrivateKey($key, $password = '') + public static function loadPrivateKey($key, $password = '') { $key = self::load($key, $password); if (!$key instanceof PrivateKey) { @@ -214,7 +214,7 @@ abstract class AsymmetricKey * @access public * @param string|array $key */ - public function loadPublicKey($key) + public static function loadPublicKey($key) { $key = self::load($key); if (!$key instanceof PublicKey) { @@ -230,7 +230,7 @@ abstract class AsymmetricKey * @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) {