mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 19:54:57 +00:00
PKCS8: RC2 encrypted keys didn't work
This commit is contained in:
parent
80e82babe9
commit
c21db263b0
@ -141,6 +141,7 @@ abstract class PKCS8 extends PKCS
|
|||||||
break;
|
break;
|
||||||
case 'RC2':
|
case 'RC2':
|
||||||
$cipher = new RC2('cbc');
|
$cipher = new RC2('cbc');
|
||||||
|
$cipher->setKeyLength(64);
|
||||||
break;
|
break;
|
||||||
case '3-KeyTripleDES':
|
case '3-KeyTripleDES':
|
||||||
$cipher = new TripleDES('cbc');
|
$cipher = new TripleDES('cbc');
|
||||||
|
Loading…
Reference in New Issue
Block a user