PKCS8: PBES2 / DES encrypted keys didn't work

This commit is contained in:
terrafrost 2023-11-19 09:51:15 -06:00
parent 820ec76610
commit 9bfd136259

View File

@ -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');