code wiki / (root) / nx_iot_local_kasa_test.nx

nx_iot_local_kasa_test.nx

buildroot/runtime/nx_iot_local_kasa_test.nx

6735 B147 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic iot
docsdependenciesstructsconstsfunctions

about

nx_iot_local_kasa_test.nx -- gate for the TP-Link Kasa LAN driver. SOVEREIGN proof (this is a NON-NOVEL protocol; the matching 3rd-party python-kasa KAT cross-check runs in the harness later, never here): - autokey hand-derived KAT: encrypt "{}" -> [0xD0, 0xAD] (0x7B^0xAB=0xD0, then 0x7D^0xD0=0xAD -- derivable from the spec) - autokey round-trip identity over a real command - TCP frame: 4-byte BE length round-trip + decrypt recovers payload - capability builders carry hue/saturation/brightness/color_temp - reply classifier marker detection - negative controls: BUF_TOO_SMALL + BAD_LEN expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_iot_local_kasa.nx nx_iot_local_kasa_test.nx

imports: nx_syscalls_x86_64.nxnx_iot_local_kasa.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_iot_kasa_verdict_is_val nx_iot_kasa_encrypt nx_iot_kasa_decrypt nx_iot_kasa_pt_relay nx_iot_kasa_puts_z nx_iot_kasa_itoa nx_iot_kasa_find nx_iot_kasa_frame_tcp nx_iot_kasa_put_u32_be nx_iot_kasa_encrypt ↻ nx_iot_kasa_get_u32_be nx_iot_kasa_deframe_tcp nx_iot_kasa_get_u32_be ↻ nx_iot_kasa_decrypt ↻ nx_iot_kasa_pt_sysinfo nx_iot_kasa_puts_z ↻ nx_iot_kasa_pt_light nx_iot_kasa_puts_z ↻ nx_iot_kasa_itoa ↻ nx_iot_kasa_looks_like_sys nx_iot_kasa_find ↻ nx_iot_kasa_strlen nx_iot_kasa_put_u32_be ↻ nx_iot_kasa_pt_set_stainfo nx_iot_kasa_puts_z ↻ nx_iot_kasa_puts_json_esca nx_iot_kasa_itoa ↻

structs

none

consts

none

functions

20func main() -> i64