tls_cert_parse.sg is the T21 sprint — X.509 TLS certificate parser with ASN.1 structure validation. Validates ASN.1 SEQUENCE tag (0x30), extracts issuer and subject offsets/lengths, stores cert_info (issuer_off/len, subject_off/len, validity_flags) in cert_info_buf @0x5A0000 (40 B). Pairs with os_tls.sg's X.509 cert stub to complete the certificate parsing path. TLS-CERT-PARSE-PASS 7/7. 4560 B arm-el0.
X.509 certificate parser
tls_cert_parse.sg
ASN.1 structure validation + field extraction — validates outer ASN.1 SEQUENCE (tag
0x30), parses length encoding (short/long form). Extracts issuer and subject Distinguished Name offsets and lengths from the certificate's TBSCertificate structure. Stores results in cert_info struct (40 B): issuer_off, issuer_len, subject_off, subject_len, validity_flags (notBefore/notAfter parsed). Used by the TLS handshake to extract server identity for hostname verification. Test: minimal valid ASN.1 certificate structure. TLS-CERT-PARSE-PASS 7/7.