code wiki / (root) / nx_x509_pubkey_rsa_4096.nx

nx_x509_pubkey_rsa_4096.nx

buildroot/runtime/nx_x509_pubkey_rsa_4096.nx

3885 B117 linesdepth 4pulls 5 transitivereach 524 importersview sourcekind tooltopic x509
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_asn1.nx nx_u4096.nx nx_x509.nx nx_x509_pubkey_rsa_4096.nx nx_tls12_client.nx nx_tls12_mutant.nx nx_tls12_req.nx nx_x509_trust_root_kat.nx nx_x509_verify_under_issuer.nx

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

24const NX_X509_PUBKEY_RSA_4096_OK: i64 = 1
25const NX_X509_PUBKEY_RSA_4096_BAD_SEQUENCE: i64 = 2
26const NX_X509_PUBKEY_RSA_4096_BAD_N: i64 = 3
27const NX_X509_PUBKEY_RSA_4096_BAD_E: i64 = 4
28const NX_X509_PUBKEY_RSA_4096_VERDICT_N: i64 = 5

functions

30func nx_x509_pubkey_rsa_4096_verdict_is_valid(v: i64) -> i64
36func nx_x509_pubkey_extract_rsa_4096(buf: *u8, cert: *X509Cert,
115func main() -> i64