Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: skip sha128/256 createHash()/hash() on openssl 3.4.
OpenSSL 3.4 has intentionally broken EVP_DigestFinal for SHAKE128 and SHAKE256 when OSSL_DIGEST_PARAM_XOFLEN is not set because a) the default length used weakened them from their maximum strength and b) a static length does not fully make sense for XOFs (which SHAKE* are). Unfortunately, while crypto.createHash accepts an option argument that can be something like `{ outputLength: 128 }`, crypto.hash doesn't offer a similar API. Therefore there is little choice but to skip the test completely for shake128 and shake256 on openssl >= 3.4. PR-URL: #56294 Fixes: #56159 Refs: openssl/openssl@b911fef Refs: openssl/openssl@ad3f28c
- Loading branch information