From 9bfd1362598d2990a8cd9e671d1691563ccc64d9 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 19 Nov 2023 09:51:15 -0600 Subject: [PATCH] PKCS8: PBES2 / DES encrypted keys didn't work --- phpseclib/Crypt/Common/Formats/Keys/PKCS8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/Common/Formats/Keys/PKCS8.php b/phpseclib/Crypt/Common/Formats/Keys/PKCS8.php index ce525c28..7aa55480 100644 --- a/phpseclib/Crypt/Common/Formats/Keys/PKCS8.php +++ b/phpseclib/Crypt/Common/Formats/Keys/PKCS8.php @@ -219,7 +219,7 @@ abstract class PKCS8 extends PKCS { switch ($algo) { case 'desCBC': - $cipher = new TripleDES('cbc'); + $cipher = new DES('cbc'); break; case 'des-EDE3-CBC': $cipher = new TripleDES('cbc');