From 60edff77e60d2820037984a03325778026b19a07 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 4 Feb 2022 10:38:47 -0600 Subject: [PATCH] EC: CS adjustment --- phpseclib/Crypt/EC/PrivateKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/EC/PrivateKey.php b/phpseclib/Crypt/EC/PrivateKey.php index 6e64f7eb..fa160878 100644 --- a/phpseclib/Crypt/EC/PrivateKey.php +++ b/phpseclib/Crypt/EC/PrivateKey.php @@ -106,7 +106,7 @@ class PrivateKey extends EC implements Common\PrivateKey if ($this->curve instanceof TwistedEdwardsCurve) { if ($this->curve instanceof Ed25519 && self::$engines['libsodium'] && !isset($this->context)) { - $result = sodium_crypto_sign_detached($message, $this->withPassword(false)->toString('libsodium')); + $result = sodium_crypto_sign_detached($message, $this->withPassword()->toString('libsodium')); return $shortFormat == 'SSH2' ? Strings::packSSH2('ss', 'ssh-' . strtolower($this->getCurve()), $result) : $result; }