Skip to content

Commit b79fe50

Browse files
lratcmykaul
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 e5f5d62 commit b79fe50

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
@@ -1967,7 +1967,7 @@ class MD5Token(HashToken):
19671967
def hash_fn(cls, key):
19681968
if isinstance(key, str):
19691969
key = key.encode('UTF-8')
1970-
return abs(varint_unpack(md5(key).digest()))
1970+
return abs(varint_unpack(md5(key,usedforsecurity=False).digest()))
19711971

19721972

19731973
class BytesToken(Token):

0 commit comments

Comments
 (0)