code wiki / (root) / nx_sha256_canonical_gate_t77.nx

nx_sha256_canonical_gate_t77.nx

buildroot/runtime/nx_sha256_canonical_gate_t77.nx

11038 B124 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic sha256
docsdependenciesstructsconstsfunctions

about

Native Linux x86-64 qualification of existing shared allocation and canonical hash reuse. No ENOMEM claim: allocation-failure control is actual zero-length mapping refusal.

dependencies 2 imports · 0 importers

nx_sha256.nx nx_gate_verdict.nx nx_sha256_canonical_gate_t77.n

imports: nx_sha256.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main gv_puts sys_write sg_uint sg_len sg_len ↻ gv_ctr sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts ↻ gv_check gv_puts ↻ sg_vector sg_fill sha256_digest_checked_nati sha256_checked_input sys_mmap_shared sha256_workspace_bytes sha256_context_aligned_byt sha256_digest_mapping_nati sha256_workspace_bytes ↻ sha256_digest_workspace sha256_checked_input ↻ sha256_workspace_bytes ↻ sha256_ranges_overlap sha256_init_workspace

structs

none

consts

5const SG_DIGEST: i64 = 32
6const SG_HEX: i64 = 64
7const SG_CANARY: i64 = 165
8const SG_BOUNDARY_MAX: i64 = 130
9const SG_PATTERN_BYTES: i64 = 257
10const SG_PATTERN_FACTOR: i64 = 31
11const SG_PATTERN_ADD: i64 = 7
12const SG_BYTE_VALUES: i64 = 256
13const SG_MILLION: i64 = 1000000
14const SG_STREAM_CHUNK: i64 = 63

functions

15func sg_len(s: *u8) -> i64 { var n: i64=0; while s[n] != (0 as u8) { n=n+1 }; return n }
called by 2: sg_uintmain
16func sg_uint(s: *u8) -> i64
called by 1: main calls 1: sg_len
20func sg_equal(a: *u8, b: *u8, n: i64) -> i64
called by 2: sg_vectormain
23func sg_fill(b: *u8, n: i64, v: i64) -> i64 { var i: i64=0; while i < n { b[i]=v as u8; i=i+1 }; return 0 }
called by 2: sg_vectormain
24func sg_all(b: *u8, n: i64, v: i64) -> i64 { var i: i64=0; while i < n { if b[i] != (v as u8) { return 0 }; i=i+1 }; return 1 }
called by 1: main
25func sg_hex(b: *u8, out: *u8) -> i64
called by 2: sg_vectormain
29func sg_vector(input: *u8, n: i64, expected: *u8, output: *u8, legacy: *u8, hex: *u8) -> i64
36func sg_read_exact(path: *u8, expected: i64, out: *u8) -> i64
called by 1: main
46func main(argc: i64, argv: *i64) -> i64