Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIPS mode - hardcoded MD5 crypto alg for generating resource hash code not allowed #3366

Open
mfukala opened this issue Oct 17, 2024 · 0 comments

Comments

@mfukala
Copy link

mfukala commented Oct 17, 2024

Hi.
We're getting

ERROR: :error:060800C8:digital envelope routines:EVP_DigestInit_ex:disabled for FIPS, stack: Error: error:060800C8:digital envelope routines:EVP_DigestInit_ex:disabled for FIPS
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:130:10)
at getStringHash (${current}/node_modules/workbox-build/build/lib/get-string-hash.js:16:34)
...

in our product that runs workbox-build to generate SW entries in FIPS mode.

From looking into the code of latest 7.1.1 version I see MD5 is hardcoded in
workbox-build/src/lib/get-string-hash.ts

Would it be possible to replace MD5 with CRC64 or another simple hash function?
Thank you in advance for looking into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant