Skip to content

Commit

Permalink
PKCS8: RC2 encrypted keys didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Nov 12, 2023
1 parent 80e82ba commit c21db26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phpseclib/Crypt/Common/Formats/Keys/PKCS8.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ private static function getPBES1EncryptionObject($algo)
break;
case 'RC2':
$cipher = new RC2('cbc');
$cipher->setKeyLength(64);
break;
case '3-KeyTripleDES':
$cipher = new TripleDES('cbc');
Expand Down

1 comment on commit c21db26

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1958

Please sign in to comment.