1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-02 09:38:06 +01:00

Tests: don't test encrypted OpenSSH private keys on 32-bit installs

This commit is contained in:
terrafrost 2023-02-11 17:56:02 -06:00
parent e3b9a97200
commit 233f617e08

View File

@ -633,6 +633,10 @@ Private-MAC: d26baf87446604974287b682ed9e0c00ce54e460e1cb719953a81291147b3c59
public function testOpenSSHEncrypted()
{
if (PHP_INT_SIZE === 4) {
self::markTestSkipped('bcrypt is far too slow to be practical on 32-bit versions of PHP');
}
$key = '-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABBN2Ff3Kw
SIOWyzRiboPRIhAAAAEAAAAAEAAAGXAAAAB3NzaC1yc2EAAAADAQABAAABgQCpxMxDEG0S