You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
successful parsing of the POTCAR file
Environment (please supply relevant versions and platform info):
Rocky Linux 8 with FIPS enabled
Additional context
This discussion s3tools/s3cmd#1005 strongly indicates adding the usedforsecurity=False to the md5() call will avoid the error, which is caused because md5 is not a secure hash for security purposes. I'm currently checking this locally and will post a followup when I see if it works.
The text was updated successfully, but these errors were encountered:
Adding usedforsecurity=False to the hashlib.md5 calls in pymatgen/io/vasp/inputs.py fixes the issue for us. I suspect the same argument should also be added to the calls in pymatgen/io/abinit/pseudos.py as well, but I didn't see any other relevant calls.
Describe the bug
pymatgen/io/vasp/inputs.py
callshashlib.md5
for hashing in a way that generates an error on RedHat systems that have FIPS enabled.To Reproduce
On a RedHat machine that has FIPS enabled, do any pymatgen operation that reads a potcar, e.g.
Potcar.from_file("POTCAR"))
The resulting output is
Expected behavior
successful parsing of the POTCAR file
Environment (please supply relevant versions and platform info):
Rocky Linux 8 with FIPS enabled
Additional context
This discussion s3tools/s3cmd#1005 strongly indicates adding the
usedforsecurity=False
to themd5()
call will avoid the error, which is caused because md5 is not a secure hash for security purposes. I'm currently checking this locally and will post a followup when I see if it works.The text was updated successfully, but these errors were encountered: