mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
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:
parent
dec0213c83
commit
63f83408ee
|
|
@ -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'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user