Skip to content

Commit f685c2c

Browse files
lratcabsurdfarce
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 c6bee69 commit f685c2c

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
@@ -1864,7 +1864,7 @@ class MD5Token(HashToken):
18641864
def hash_fn(cls, key):
18651865
if isinstance(key, str):
18661866
key = key.encode('UTF-8')
1867-
return abs(varint_unpack(md5(key).digest()))
1867+
return abs(varint_unpack(md5(key,usedforsecurity=False).digest()))
18681868

18691869

18701870
class BytesToken(Token):

0 commit comments

Comments
 (0)