nodejs ver. bump
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
From cc6e787af828c94c3268465082d5299bb91e3386 Mon Sep 17 00:00:00 2001
|
||||
From: Jelle van der Waa <jelle@archlinux.org>
|
||||
Date: Fri, 6 Dec 2024 19:14:16 +0100
|
||||
Subject: [PATCH] test: disable openssl 3.4.0 incompatible tests
|
||||
|
||||
The shake128/shake256 hashing algorithms broke due to an OpenSSL 3.4
|
||||
incompatible change and now throws an Error.
|
||||
---
|
||||
test/parallel/test-crypto-oneshot-hash.js | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/test/parallel/test-crypto-oneshot-hash.js b/test/parallel/test-crypto-oneshot-hash.js
|
||||
index 56b4c04a65..4c96014831 100644
|
||||
--- a/test/parallel/test-crypto-oneshot-hash.js
|
||||
+++ b/test/parallel/test-crypto-oneshot-hash.js
|
||||
@@ -32,6 +32,9 @@ const input = fs.readFileSync(fixtures.path('utf8_test_text.txt'));
|
||||
|
||||
for (const method of methods) {
|
||||
for (const outputEncoding of ['buffer', 'hex', 'base64', undefined]) {
|
||||
+ // Skip failing tests on OpenSSL 3.4.0
|
||||
+ if (method.startsWith("shake"))
|
||||
+ continue;
|
||||
const oldDigest = crypto.createHash(method).update(input).digest(outputEncoding || 'hex');
|
||||
const digestFromBuffer = crypto.hash(method, input, outputEncoding);
|
||||
assert.deepStrictEqual(digestFromBuffer, oldDigest,
|
||||
--
|
||||
2.47.1
|
||||
|
||||
Reference in New Issue
Block a user