code wiki / _hdl_build / nx_media_crypt_gate.nx

nx_media_crypt_gate.nx

buildroot/runtime/_hdl_build/nx_media_crypt_gate.nx

6890 B126 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic media
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_base.nx nx_syscalls.nx nx_media_crypt.nx nx_media_crypt_gate.nx

imports: nx_gate_base.nxnx_syscalls.nxnx_media_crypt.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write sys_mmap mc_block mc_u32le mc_qr mc_rotl mc_wr32le hexdec mc_hexval ck gw ↻ same mc_xform mc_block ↻ mc_key mc_hexval ↻ mc_nonce fill popdiff gn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

6func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
8func gn(v: i64) -> i64
12func ck(name: *u8, ok: i64, p: *i64, t: *i64) -> i64
16func fill(b: *u8, n: i64, seed: i64) -> i64 { var i: i64=0; while i<n { b[i]=((i*seed+7)&255) as u8; i=i+1 } return 0 }
called by 1: main
17func same(a: *u8, b: *u8, n: i64) -> i64 { var i: i64=0; while i<n { if a[i]!=b[i]{return 0} i=i+1 } return 1 }
called by 1: main
18func popdiff(a: *u8, b: *u8, n: i64) -> i64 { var d: i64=0; var i: i64=0
20func hexdec(hex: *u8, nbytes: i64, out: *u8) -> i64 { // decode nbytes from a 2*nbytes hex string
25func main() -> i64