MCPcopy Create free account
hub / github.com/cbomkit/sonar-cryptography / PycaHashDirectTest.py

File PycaHashDirectTest.py

python/src/test/files/rules/detection/hash/PycaHashDirectTest.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from cryptography.hazmat.primitives import hashes
2
3sha256_obj = hashes.Hash(hashes.SHA256()) # Noncompliant {{(MessageDigest) SHA-256}}
4sha256_obj.update(b"data")

Callers

nothing calls this directly

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected