shake* requires a length to be set.
Skip the tests for now.
=> https://github.com/nodejs/node/issues/56159
=> https://github.com/openssl/openssl/commit/
b911fef216d1386210ec24e201d54d709528abb4
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Gbp-Pq: Topic build
Gbp-Pq: Name openssl-3.4-skip-shake-tests.patch
// Test XOF hash functions and the outputLength option.
{
+ // Skip shake XOF due to length requirement.
+ if (!common.hasOpenSSL(3, 4)) {
// Default outputLengths.
assert.strictEqual(crypto.createHash('shake128').digest('hex'),
'7f9c2ba4e88f827d616045507605853e');
.digest('hex'),
'46b9dd2b0ba88d13233b3feb743eeb24' +
'3fcd52ea62b81b82b50c27646ed5762f');
+ }
// Short outputLengths.
assert.strictEqual(crypto.createHash('shake128', { outputLength: 0 })
const input = fs.readFileSync(fixtures.path('utf8_test_text.txt'));
for (const method of methods) {
+ // Skip shake XOF due to length requirement.
+ if (common.hasOpenSSL(3, 4) && (method === 'shake128') || (method === 'shake256'))
+ continue;
for (const outputEncoding of ['buffer', 'hex', 'base64', undefined]) {
const oldDigest = crypto.createHash(method).update(input).digest(outputEncoding || 'hex');
const digestFromBuffer = crypto.hash(method, input, outputEncoding);