nx_x509_pubkey_ec_test.nx
buildroot/runtime/nx_x509_pubkey_ec_test.nx
about
nx_x509_pubkey_ec_test.nx -- KAT for ECDSA-P256 pubkey extraction
from a parsed X509Cert.
Uses the RFC 6979 §A.2.5 pubkey (a known-on-curve P-256 point)
laid out in uncompressed format (0x04 || X || Y) inside a
synthetic buffer at a known offset. Tests:
- happy path: extract X, Y match the documented limbs
- bad length (e.g. 64 or 66 bytes) -> BAD_LEN
- wrong leading byte (0x02 instead of 0x04) -> NOT_UNCOMPRESSED
- verdict gate
expect_exit: 0
license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_u256.nxnx_x509.nxnx_x509_pubkey_ec.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 20 | func main() -> i64 |