◐ Shell
clean mode source ↗

test,crypto: update x448 and ed448 expectation when on boringssl · nodejs/node@fd63c27

Original file line numberDiff line numberDiff line change

@@ -9,6 +9,7 @@ const shake256 = crypto.getHashes().includes('shake256');

99

const chacha = crypto.getCiphers().includes('chacha20-poly1305');

1010

const ocb = hasOpenSSL(3);

1111

const kmac = hasOpenSSL(3);

12+

const boringSSL = process.features.openssl_is_boringssl;

1213
1314

const { subtle } = globalThis.crypto;

1415

const X25519 = await subtle.generateKey('X25519', false, ['deriveBits', 'deriveKey']);

@@ -108,9 +109,9 @@ export const vectors = {

108109

[true, 'RSA-PSS'],

109110

[true, 'RSASSA-PKCS1-v1_5'],

110111

[true, 'X25519'],

111-

[true, 'X448'],

112+

[!boringSSL, 'X448'],

112113

[true, 'Ed25519'],

113-

[true, 'Ed448'],

114+

[!boringSSL, 'Ed448'],

114115

[true, 'ECDH'],

115116

[true, 'ECDSA'],

116117

[pqc, 'ML-DSA-44'],