code wiki / (root) / nx_x509_verify_rsa_pkcs1_sha256.nx

nx_x509_verify_rsa_pkcs1_sha256.nx

buildroot/runtime/nx_x509_verify_rsa_pkcs1_sha256.nx

2141 B55 linesdepth 7pulls 11 transitivereach 525 importersview sourcekind tooltopic x509
docsdependenciesstructsconstsfunctions

about

nx_x509_verify_rsa_pkcs1_sha256.nx -- X.509 outer-signature verify for sha256WithRSAEncryption signed certs. Parallel to nx_x509_verify_ecdsa.nx + nx_x509_verify_ecdsa_p384.nx. Composes nx_rsa_pkcs1_v1_5_sha256 with cert.tbs / cert.sig byte ranges. API: nx_x509_verify_rsa_pkcs1_sha256(tbs, tbs_len, sig, sig_len, issuer_n_2048, issuer_e) -> verdict Sealed verdict mirrors other verify wrappers' shape (OK=1, fail=others). license_tier: INDEPENDENT_REDERIVE genealogy_id: international-research-sources/ietf/rfc_5280 + rfc_8017 lineage_id: nishi_x509_verify_rsa_pkcs1_sha256_q10

dependencies 3 imports · 6 importers

nx_syscalls.nx nx_u2048.nx nx_rsa_pkcs1_v1_5_sha256.nx nx_x509_verify_rsa_pkcs1_sha25 nx_tls12_client.nx nx_tls12_mutant.nx nx_tls12_req.nx nx_x509_trust_root_kat.nx nx_x509_verify_rsa_gate.nx nx_x509_verify_under_issuer.nx

imports: nx_syscalls.nxnx_u2048.nxnx_rsa_pkcs1_v1_5_sha256.nx

imported by: nx_tls12_client.nxnx_tls12_mutant.nxnx_tls12_req.nxnx_x509_trust_root_kat.nxnx_x509_verify_rsa_gate.nxnx_x509_verify_under_issuer.nx

structs

none

consts

28const NX_X509_RSA_PKCS1_SHA256_OK: i64 = 1
29const NX_X509_RSA_PKCS1_SHA256_BAD_LEN: i64 = 2
30const NX_X509_RSA_PKCS1_SHA256_BAD_SIG: i64 = 3
31const NX_X509_RSA_PKCS1_SHA256_BAD_PUB: i64 = 4
32const NX_X509_RSA_PKCS1_SHA256_VERDICT_N: i64 = 5

functions

34func nx_x509_rsa_pkcs1_sha256_verdict_is_valid(v: i64) -> i64
called by 2: mainmain
40func nx_x509_verify_rsa_pkcs1_sha256(tbs: *u8, tbs_len: i64,
53func main() -> i64