Skip to content

Commit

Permalink
blake2b is not fips compliant -> adding usedforsecurity=False since i…
Browse files Browse the repository at this point in the history
…t is only used for caching not security applications (#285)

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
  • Loading branch information
mturiansky and karpetrosyan authored Oct 30, 2024
1 parent e345760 commit 3500aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hishel/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def generate_key(request: httpcore.Request, body: bytes = b"") -> str:

key_parts = [request.method, encoded_url, body]

key = blake2b(digest_size=16)
key = blake2b(digest_size=16, usedforsecurity=False)
for part in key_parts:
key.update(part)
return key.hexdigest()
Expand Down

0 comments on commit 3500aab

Please sign in to comment.