nx_x509_pubkey_rsa_4096.nx
buildroot/runtime/nx_x509_pubkey_rsa_4096.nx
about
nx_x509_pubkey_rsa_4096.nx -- extract an RSA-4096 public key (n, e)
from an X.509 SubjectPublicKeyInfo. Parallel to
nx_x509_pubkey_rsa.nx (the 2048 variant).
Same DER walk as the 2048 variant; only differences:
- mag_len cap is 512 (was 256)
- leading-0 sign byte case handles n_len == 513 (was 257)
- loads into a 128-limb u4096 buffer (was 64-limb u2048)
Public API:
nx_x509_pubkey_extract_rsa_4096(buf, cert, out_n_4096, out_e_p) -> verdict
Sealed verdict shape mirrors the 2048 variant.
license_tier: INDEPENDENT_REDERIVE
genealogy_id: international-research-sources/ietf/rfc_8017 + rfc_5280
lineage_id: nishi_x509_pubkey_rsa_4096_q1
dependencies 4 imports · 5 importers
imports: nx_syscalls.nxnx_asn1.nxnx_u4096.nxnx_x509.nx
imported by: nx_tls12_client.nxnx_tls12_mutant.nxnx_tls12_req.nxnx_x509_trust_root_kat.nxnx_x509_verify_under_issuer.nx
structs
| none |
consts
| 24 | const NX_X509_PUBKEY_RSA_4096_OK: i64 = 1 |
| 25 | const NX_X509_PUBKEY_RSA_4096_BAD_SEQUENCE: i64 = 2 |
| 26 | const NX_X509_PUBKEY_RSA_4096_BAD_N: i64 = 3 |
| 27 | const NX_X509_PUBKEY_RSA_4096_BAD_E: i64 = 4 |
| 28 | const NX_X509_PUBKEY_RSA_4096_VERDICT_N: i64 = 5 |
functions
| 30 | func nx_x509_pubkey_rsa_4096_verdict_is_valid(v: i64) -> i64 |
| 36 | func nx_x509_pubkey_extract_rsa_4096(buf: *u8, cert: *X509Cert, called by 3: tr_verify_ske_sigmainnx_x509_verify_under_issuer calls 3: sys_mmapasn1_expect_tagu4096_load_be |
| 115 | func main() -> i64 |