code wiki / _hdl_build / nx_dr_encrypt_gate.nx

nx_dr_encrypt_gate.nx

buildroot/runtime/_hdl_build/nx_dr_encrypt_gate.nx

3005 B46 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic dr
docsdependenciesstructsconstsfunctions

dependencies 4 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_sha256.nx nx_chacha20_poly1305.nx nx_dr_encrypt_gate.nx

imports: nx_gate_gn.nxnx_syscalls.nxnx_sha256.nxnx_chacha20_poly1305.nx

imported by: nobody (leaf or entry point)

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

main gp sys_write sys_mmap sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word blk_byte sha256_final blk_set_byte ↻ sha256_compress ↻ nx_chacha20_poly1305_encry sys_mmap ↻ aead_derive_otk sys_mmap ↻ chacha20_block sys_mmap ↻ _chacha20_set_consts_key load_u32_le load_u32_le ↻ chacha20_perm sys_mmap ↻ chacha20_perm_core store_u32_le chacha20_encrypt sys_mmap ↻ _chacha20_set_consts_key ↻ load_u32_le ↻ chacha20_perm_core ↻ aead_build_mac_data aead_put_u64_le poly1305_mac

structs

none

consts

none

functions

10func gp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
11func g_eq(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
13func main(argc: i64, argv: *i64) -> i64