Skip to content

[v24.x] test: fix crypto tests against BoringSSL - #65808

Open
codebytere wants to merge 2 commits into
nodejs:v24.x-stagingfrom
codebytere:v24.x-test-boringssl-crypto
Open

[v24.x] test: fix crypto tests against BoringSSL#65808
codebytere wants to merge 2 commits into
nodejs:v24.x-stagingfrom
codebytere:v24.x-test-boringssl-crypto

Conversation

@codebytere

Copy link
Copy Markdown
Member

Four parallel crypto tests fail on v24.x-staging when Node is built with --shared-openssl against BoringSSL (the boringssl that tools/nix/openssl-matrix.nix pins on main, 0.20260803.0). main is unaffected and its BoringSSL job is green; each of these is specific to how the BoringSSL work was backported to v24.x.

test-crypto-pqc-key-objects-ml-dsa and -ml-kem compare a seeded key's PKCS#8 export against the seed+expanded fixture, and BoringSSL only writes the seed-only encoding, so they now expect private_seed_only there. main expects seed-only on every backend since #62178 (semver-major), so the backport in #63563 kept the old expectation. test-crypto-keygen-deprecation and test-crypto-keygen-duplicate-deprecated-option generate rsa-pss key pairs, which BoringSSL doesn't support; the other rsa-pss keygen tests skip since #62883, but these two were already gone from main (#58706), so that backport never touched them.

Tests: built v24.x-staging against that BoringSSL on linux-x64 and ran parallel and sequential; these four were the only BoringSSL-related failures and pass with this change. The OpenSSL paths are unchanged.

cc @nodejs/crypto


Disclosure: the code and this description were written by Claude Code, directed and reviewed by @codebytere.

test-crypto-pqc-key-objects-ml-dsa and -ml-kem compare a seeded key's
PKCS#8 export against the seed+expanded fixture on every backend.
BoringSSL only writes the seed-only encoding, so expect the
private_seed_only fixture there. main expects seed-only on every
backend since nodejs#62178, which is
semver-major, so the BoringSSL support backported in
nodejs#63563 kept the old expectation.

Refs: nodejs#63563
Signed-off-by: Shelley Vohr <[email protected]>
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 nodejs#62883, but these
two only exist on v24.x (nodejs#58706
removed them from main earlier), so its backport could not cover them.

Refs: nodejs#62883
Signed-off-by: Shelley Vohr <[email protected]>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch. labels Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants