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

File backend hashlib.md5 not supported in FIPS mode #124

Open
wonkybream opened this issue Sep 30, 2020 · 0 comments
Open

File backend hashlib.md5 not supported in FIPS mode #124

wonkybream opened this issue Sep 30, 2020 · 0 comments

Comments

@wonkybream
Copy link

I have a quite specific environment and noticed one issue with it.

My environment is in OpenSSL FIPS 140-2 mode and using md5 is not supported.

Following line raises an error ValueError: [digital envelope routines: FIPS_DIGESTINIT] disabled for fips.

key_hash = hashlib.md5(six.b(key)).hexdigest()

I'm suggesting to change that to hashlib.sha1() which is supported in even if FIPS mode is enabled in cryptographic library.

If proposed change is allowed I'm more than happy to do the pull request.

With best regards,
Wonky

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