MCPcopy Index your code
hub / github.com/python/cpython / update_keys

Function update_keys

Lib/zipfile/__init__.py:727–732  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

725 return (crc >> 8) ^ crctable[(crc ^ ch) & 0xFF]
726
727 def update_keys(c):
728 nonlocal key0, key1, key2
729 key0 = crc32(c, key0)
730 key1 = (key1 + (key0 & 0xFF)) & 0xFFFFFFFF
731 key1 = (key1 * 134775813 + 1) & 0xFFFFFFFF
732 key2 = crc32(key1 >> 24, key2)
733
734 for p in pwd:
735 update_keys(p)

Callers 2

_ZipDecrypterFunction · 0.85
decrypterFunction · 0.85

Calls 1

crc32Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…