MCPcopy Create free account
hub / github.com/echQoQ/RustSL / process

Function process

encrypt_lib/ipv6.py:19–29  ·  view source on GitHub ↗
(data, args)

Source from the content-addressed store, hash-verified

17 return ':'.join(parts)
18
19def process(data, args):
20 addresses = []
21 for i in range(0, len(data), 16):
22 addr_bytes = data[i:i+16]
23 if len(addr_bytes) < 16:
24 addr_bytes += b'\x00' * (16 - len(addr_bytes))
25 addresses.append(bytes_to_ipv6(addr_bytes))
26 hash1 = sha256_bytes(data)
27 len_bytes = len(data).to_bytes(4, 'little')
28 final = hash1 + len_bytes + ','.join(addresses).encode()
29 return final

Callers

nothing calls this directly

Calls 2

bytes_to_ipv6Function · 0.85
sha256_bytesFunction · 0.70

Tested by

no test coverage detected