nx_u384.nx
buildroot/runtime/nx_u384.nx
about
dependencies 1 imports · 28 importers
diagram shows first 10 each side; +0 more imports, +18 more importers in the complete lists below.
imports: nx_syscalls.nx
imported by: nx_ecdsa_p384.nxnx_ecdsa_p384_bisect_test.nxnx_ecdsa_p384_real_bisect_test.nxnx_ecdsa_p384_test.nxnx_ecdsa_sig_der_384.nxnx_p384_ecdh.nxnx_p384_field.nxnx_p384_field_inv.nxnx_p384_field_inv_test.nxnx_p384_field_mul.nxnx_p384_field_mul_fast.nxnx_p384_field_mul_fast_gate.nxnx_p384_field_mul_test.nxnx_p384_field_test.nxnx_p384_modn.nxnx_p384_modn_test.nxnx_p384_point.nxnx_p384_point_add.nxnx_p384_point_test.nxnx_p384_scalar_mul.nxnx_p384_scalar_mul_test.nxnx_tls13_client_verify_cv.nxnx_u384_mul.nxnx_u384_test.nxnx_x509_chain_verify.nxnx_x509_pubkey_ec.nxnx_x509_verify_ecdsa_p384.nxnx_x509_verify_under_issuer.nx
structs
| none |
consts
| 38 | const NX_U384_LIMBS: i64 = 12 |
| 39 | const NX_U384_BYTES: i64 = 48 |
| 40 | const NX_U384_LIMB_BITS: i64 = 32 |
| 41 | const NX_U384_LIMB_MASK: i64 = 0xFFFFFFFF |
| 49 | const NX_U384_SCRATCH_BLOCK: i64 = 1048576 // 1 MiB per block |
| 50 | const NX_U384_SCRATCH_MAXBLOCKS: i64 = 8192 // 8 GiB ceiling (pathological-leak backstop only) |
functions
| 55 | func nx_u384_scratch_init() -> i64 |
| 68 | func nx_u384_scratch(n: i64) -> *u8 |
| 99 | func nx_u384_scratch_save() -> i64 { nx_u384_scratch_init(); return NX_U384_SCRATCH_CUR } |
| 100 | func nx_u384_scratch_restore(mark: i64) -> i64 { NX_U384_SCRATCH_CUR = mark; return 0 } |
| 102 | func u384_alloc() -> *i64 called by 37: _nx_ecdsa_p384_verify_innermainmainmain_p384_ecdh_load_scalarp384_ecdh_derive_priv+31 calls 1: nx_u384_scratch |
| 114 | func u384_free(p: *i64) -> i64 |
| 118 | func u384_zero(out: *i64) -> i64 |
| 127 | func u384_one(out: *i64) -> i64 |
| 133 | func u384_copy(out: *i64, src: *i64) -> i64 |
| 146 | func u384_load_be(out: *i64, bytes: *u8) -> i64 |
| 161 | func u384_store_be(bytes: *u8, src: *i64) -> i64 |
| 176 | func u384_add_with_carry(out: *i64, a: *i64, b: *i64) -> i64 |
| 188 | func u384_sub_with_borrow(out: *i64, a: *i64, b: *i64) -> i64 |
| 205 | func u384_cmp(a: *i64, b: *i64) -> i64 |
| 217 | func u384_is_zero(a: *i64) -> i64 |
| 228 | func u384_eq(a: *i64, b: *i64) -> i64 |
| 239 | func main() -> i64 |