nx_x509_verify_rsa_pkcs1_sha256.nx
buildroot/runtime/nx_x509_verify_rsa_pkcs1_sha256.nx
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
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
| 28 | const NX_X509_RSA_PKCS1_SHA256_OK: i64 = 1 |
| 29 | const NX_X509_RSA_PKCS1_SHA256_BAD_LEN: i64 = 2 |
| 30 | const NX_X509_RSA_PKCS1_SHA256_BAD_SIG: i64 = 3 |
| 31 | const NX_X509_RSA_PKCS1_SHA256_BAD_PUB: i64 = 4 |
| 32 | const NX_X509_RSA_PKCS1_SHA256_VERDICT_N: i64 = 5 |
functions
| 34 | func nx_x509_rsa_pkcs1_sha256_verdict_is_valid(v: i64) -> i64 |
| 40 | func nx_x509_verify_rsa_pkcs1_sha256(tbs: *u8, tbs_len: i64, called by 4: tr_verify_ske_sigmainmainnx_x509_verify_under_issuer calls 1: rsa_pkcs1_v1_5_sha256_verify |
| 53 | func main() -> i64 |