MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / update_keys

Function update_keys

tools/python-3.11.9-amd64/Lib/zipfile.py:608–613  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

606 return (crc >> 8) ^ crctable[(crc ^ ch) & 0xFF]
607
608 def update_keys(c):
609 nonlocal key0, key1, key2
610 key0 = crc32(c, key0)
611 key1 = (key1 + (key0 & 0xFF)) & 0xFFFFFFFF
612 key1 = (key1 * 134775813 + 1) & 0xFFFFFFFF
613 key2 = crc32(key1 >> 24, key2)
614
615 for p in pwd:
616 update_keys(p)

Callers 2

_ZipDecrypterFunction · 0.85
decrypterFunction · 0.85

Calls 1

crc32Function · 0.85

Tested by

no test coverage detected