test,crypto: update x448 and ed448 expectation when on boringssl

PR-URL: https://github.com/nodejs/node/pull/60387
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
This commit is contained in:
Shelley Vohr 2025-10-29 10:33:10 +01:00 committed by GitHub
parent dec0213c83
commit 63f83408ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,7 @@ const shake256 = crypto.getHashes().includes('shake256');
const chacha = crypto.getCiphers().includes('chacha20-poly1305'); const chacha = crypto.getCiphers().includes('chacha20-poly1305');
const ocb = hasOpenSSL(3); const ocb = hasOpenSSL(3);
const kmac = hasOpenSSL(3); const kmac = hasOpenSSL(3);
const boringSSL = process.features.openssl_is_boringssl;
const { subtle } = globalThis.crypto; const { subtle } = globalThis.crypto;
const X25519 = await subtle.generateKey('X25519', false, ['deriveBits', 'deriveKey']); const X25519 = await subtle.generateKey('X25519', false, ['deriveBits', 'deriveKey']);
@ -108,9 +109,9 @@ export const vectors = {
[true, 'RSA-PSS'], [true, 'RSA-PSS'],
[true, 'RSASSA-PKCS1-v1_5'], [true, 'RSASSA-PKCS1-v1_5'],
[true, 'X25519'], [true, 'X25519'],
[true, 'X448'], [!boringSSL, 'X448'],
[true, 'Ed25519'], [true, 'Ed25519'],
[true, 'Ed448'], [!boringSSL, 'Ed448'],
[true, 'ECDH'], [true, 'ECDH'],
[true, 'ECDSA'], [true, 'ECDSA'],
[pqc, 'ML-DSA-44'], [pqc, 'ML-DSA-44'],