code wiki / (root) / nx_chain_pair_leaf_real_test.nx

nx_chain_pair_leaf_real_test.nx

buildroot/runtime/nx_chain_pair_leaf_real_test.nx

3442 B92 linesdepth 13pulls 65 transitivereach 0 importersview sourcekind gate/prooftopic chain
docsdependenciesstructsconstsfunctions

about

nx_chain_pair_leaf_real_test.nx -- focused diagnostic for just the leaf→cloudflare pair of the real example.com chain. This pair should already be supported by the substrate today: cert1 (leaf) sig_alg = ecdsa-with-SHA256 cert2 (Cloudflare TLS Issuing ECC CA 1) pub_alg = P-256 If this pair verifies cleanly, the chain walker is unblocked for the first leaf→intermediate step and only needs P-384 + SHA-384 verify + RSA for the deeper hops. If it FAILS, there is yet another substrate-level bug to find. expect_exit: 0 -- if the pair verifies, the test PASSES; otherwise it surfaces the verdict via exit code. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_x509.nx nx_x509_verify_under_issuer.nx nx_chain_pair_leaf_real_test.n

imports: nx_syscalls.nxnx_x509.nxnx_x509_verify_under_issuer.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap read_to sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close dump_dec sys_mmap ↻ sys_write x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id sys_mmap ↻ asn1_expect_tag ↻ nx_x509_verify_under_issue nx_x509_sig_alg_identify sys_mmap ↻ asn1_expect_tag ↻ nx_x509_sig_alg_is_support nx_x509_pubkey_alg_identif sys_mmap ↻ asn1_expect_tag ↻ oid_is_ed25519 oid_is_rsa_encryption oid_is_id_ec_public_key oid_is_prime256v1

structs

none

consts

none

functions

21func read_to(path: *u8, out_buf: *u8, max: i64) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
32func dump_dec(label0: i64, label1: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
53func main() -> i64