From 233f617e084a507e762bd0be88628aa455017685 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 11 Feb 2023 17:56:02 -0600 Subject: [PATCH] Tests: don't test encrypted OpenSSH private keys on 32-bit installs --- tests/Unit/Crypt/RSA/LoadKeyTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Unit/Crypt/RSA/LoadKeyTest.php b/tests/Unit/Crypt/RSA/LoadKeyTest.php index 8ef39ad2..24b5af29 100644 --- a/tests/Unit/Crypt/RSA/LoadKeyTest.php +++ b/tests/Unit/Crypt/RSA/LoadKeyTest.php @@ -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