Skip to content

Commit 811b163

Browse files
lratcdkropachev
authored andcommitted
Mark non-security md5 usage to allow for compatibility with fips
environments patch by Luke Ratcliffe and Brad Schoening; reviewed by Bret McGuire and Brad Schoening
1 parent 2976ab7 commit 811b163

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cassandra/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@ class MD5Token(HashToken):
19681968
def hash_fn(cls, key):
19691969
if isinstance(key, str):
19701970
key = key.encode('UTF-8')
1971-
return abs(varint_unpack(md5(key).digest()))
1971+
return abs(varint_unpack(md5(key,usedforsecurity=False).digest()))
19721972

19731973

19741974
class BytesToken(Token):

0 commit comments

Comments
 (0)