Radix 16 (live-verified), universal reply splitter, golden capture vectors, host_probe6
This commit is contained in:
1 parent
0cd6b34a2e
commit
62e0fd649b
10 files changed
+418
-82
No files matched your search
@@ -224,11 +224,12 @@ class SocketFrameDecoder:
|
||||
|
||||
def feed(self, data: bytes) -> List[str]:
|
||||
"""Append *data*; return a list of complete decoded JSON strings."""
|
||||
from .crypto import decrypt_data # local import: cheap, no cycles
|
||||
from .crypto import decrypt_wire # local import: cheap, no cycles
|
||||
|
||||
self._buf.extend(data)
|
||||
decoded = decrypt_data(bytes(self._buf))
|
||||
if not decoded:
|
||||
try:
|
||||
decoded = decrypt_wire(bytes(self._buf))
|
||||
except ValueError:
|
||||
return []
|
||||
try:
|
||||
json.loads(decoded)
|
||||
|
||||
Reference in new issue
Block a user