Skip to content

P2-002: parse full X509Data sub-elements in KeyInfo #50

@polaz

Description

@polaz

Summary

Implement ROADMAP task P2-002 by extending XMLDSig KeyInfo parsing to fully parse X509Data sub-elements.

Scope

  • Parse and store X509Certificate (base64 to DER).
  • Parse and store X509SubjectName.
  • Parse and store X509IssuerSerial (X509IssuerName + X509SerialNumber).
  • Parse and store X509SKI.
  • Parse and store X509CRL.
  • Parse and store dsig11:X509Digest (Algorithm + digest bytes).
  • Enforce structural validation for malformed X509IssuerSerial and missing X509Digest Algorithm.
  • Add regression tests for malformed and invalid base64 inputs.

Acceptance Criteria

  • X509DataInfo holds parsed values, not only counters.
  • Invalid structures fail with parse errors.
  • Regression tests cover malformed issuer serial, missing digest algorithm, and invalid cert base64.
  • cargo check, cargo clippy with warnings denied, cargo nextest run, and doc tests pass.

Estimate

3d (implementation + tests + review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions