From ef9e73a69ec15c44010677dee14b2c252db581b1 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Sat, 5 Sep 2026 09:30:10 +0000 Subject: [PATCH] test: skip RSA-PSS keygen deprecation tests with BoringSSL test-crypto-keygen-deprecation and test-crypto-keygen-duplicate-deprecated-option generate rsa-pss key pairs, which BoringSSL does not support. The other rsa-pss keygen tests skip there since https://github.com/nodejs/node/pull/62883, but these two only exist on v24.x (https://github.com/nodejs/node/pull/58706 removed them from main earlier), so its backport could not cover them. Refs: https://github.com/nodejs/node/pull/62883 Signed-off-by: Shelley Vohr --- test/parallel/test-crypto-keygen-deprecation.js | 3 +++ .../parallel/test-crypto-keygen-duplicate-deprecated-option.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/parallel/test-crypto-keygen-deprecation.js b/test/parallel/test-crypto-keygen-deprecation.js index 62266382e2da..4ab93c97cb50 100644 --- a/test/parallel/test-crypto-keygen-deprecation.js +++ b/test/parallel/test-crypto-keygen-deprecation.js @@ -4,6 +4,9 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); +if (process.features.openssl_is_boringssl) + common.skip('BoringSSL does not support RSA-PSS key pair generation'); + const DeprecationWarning = []; DeprecationWarning.push([ '"options.hash" is deprecated, use "options.hashAlgorithm" instead.', diff --git a/test/parallel/test-crypto-keygen-duplicate-deprecated-option.js b/test/parallel/test-crypto-keygen-duplicate-deprecated-option.js index 4f7ffcfce061..47b001ae4a0f 100644 --- a/test/parallel/test-crypto-keygen-duplicate-deprecated-option.js +++ b/test/parallel/test-crypto-keygen-duplicate-deprecated-option.js @@ -4,6 +4,9 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); +if (process.features.openssl_is_boringssl) + common.skip('BoringSSL does not support RSA-PSS key pair generation'); + const assert = require('assert'); const { hasFIPS } = require('../common/crypto'); const modulusLength = hasFIPS(3) ? 2048 : 512;