mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
cache: improve variable name
This commit is contained in:
@@ -27,7 +27,7 @@ def compute_cache_identifier(rule_content: List[bytes]) -> CacheIdentifier:
|
||||
hash.update(version.encode("utf-8"))
|
||||
hash.update(b"\x00")
|
||||
|
||||
rule_hashes = list(sorted([hashlib.sha256(rule).hexdigest() for rule in rule_content]))
|
||||
rule_hashes = list(sorted([hashlib.sha256(buf).hexdigest() for buf in rule_content]))
|
||||
for rule_hash in rule_hashes:
|
||||
hash.update(rule_hash.encode("ascii"))
|
||||
hash.update(b"\x00")
|
||||
|
||||
Reference in New Issue
Block a user