nx_u2048.nx
buildroot/runtime/nx_u2048.nx
about
nx_u2048.nx -- 2048-bit unsigned big-int (64 × 32-bit limbs).
Mirrors nx_u256/nx_u384 with limb count 64. Needed for RSA-2048
signature verification (Task #68, Web PKI legacy RSA roots like
Comodo AAA Certificate Services).
Layout: 64 i64 slots, low 32 bits used per limb. Limb 0 LSB.
Byte serialization: 256-byte BE (DER) layout.
Function names use the `u2048_` prefix to avoid the silent-
shadowing bug class fixed 2026-05-20 in nx_sha256/nx_sha512.
license_tier: INDEPENDENT_REDERIVE
genealogy_id: international-research-sources/ietf/rfc_8017 + nist/fips_186_5
lineage_id: nishi_u2048_q10
dependencies 1 imports · 21 importers
diagram shows first 10 each side; +0 more imports, +11 more importers in the complete lists below.
imports: nx_syscalls.nx
imported by: nx_rsa2048_mod.nxnx_rsa2048_mod_exp.nxnx_rsa2048_mont.nxnx_rsa2048_mont_gate.nxnx_rsa_pkcs1_v1_5_sha256.nxnx_rsa_pkcs1_v1_5_sha256_real_test.nxnx_rsa_pkcs1_v1_5_sha384.nxnx_rsa_pkcs1_v1_5_sha384_test.nxnx_rsa_pkcs1_v1_5_sha512.nxnx_rsa_pss_sha256.nxnx_rsa_pss_sha256_gate.nxnx_tls12_client.nxnx_tls12_client_session.nxnx_tls12_mutant.nxnx_tls12_req.nxnx_tls12_ske_verify.nxnx_tls13_client_verify_cv.nxnx_u2048_mul.nxnx_x509_pubkey_rsa.nxnx_x509_verify_rsa_pkcs1_sha256.nxnx_x509_verify_under_issuer.nx
structs
| none |
consts
| 25 | const NX_U2048_LIMBS: i64 = 64 |
| 26 | const NX_U2048_BYTES: i64 = 256 |
| 27 | const NX_U2048_LIMB_BITS: i64 = 32 |
| 28 | const NX_U2048_LIMB_MASK: i64 = 0xFFFFFFFF |
functions
| 30 | func u2048_alloc() -> *i64 called by 17: rsa2048_modrsa2048_mod_exprsa2048_mont_r2rsa2048_mod_exp_montone_casersa_pkcs1_v1_5_sha256_verify+11 calls 1: sys_mmap |
| 41 | func u2048_zero(out: *i64) -> i64 |
| 50 | func u2048_one(out: *i64) -> i64 |
| 56 | func u2048_copy(out: *i64, src: *i64) -> i64 |
| 66 | func u2048_load_be(out: *i64, bytes: *u8) -> i64 |
| 81 | func u2048_store_be(bytes: *u8, src: *i64) -> i64 |
| 96 | func u2048_add_with_carry(out: *i64, a: *i64, b: *i64) -> i64 |
| 108 | func u2048_sub_with_borrow(out: *i64, a: *i64, b: *i64) -> i64 |
| 125 | func u2048_cmp(a: *i64, b: *i64) -> i64 |
| 137 | func u2048_is_zero(a: *i64) -> i64 |
| 148 | func u2048_eq(a: *i64, b: *i64) -> i64 |
| 161 | func u2048_shl1(out: *i64) -> i64 called by 1: rsa2048_mod |
| 175 | func u2048_shr1(out: *i64) -> i64 |
| 189 | func u2048_get_bit(a: *i64, bit: i64) -> i64 |
| 195 | func main() -> i64 |