{"id":47683107,"url":"https://github.com/structured-world/xml-sec","last_synced_at":"2026-04-02T14:10:31.290Z","repository":{"id":344621273,"uuid":"1182534048","full_name":"structured-world/xml-sec","owner":"structured-world","description":"Pure Rust XML Security: XMLDSig, XMLEnc, C14N. Drop-in replacement for libxmlsec1.","archived":false,"fork":false,"pushed_at":"2026-03-26T18:09:12.000Z","size":248,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-26T19:22:06.793Z","etag":null,"topics":["c14n","pure-rust","rust","saml","security","xml","xml-signature","xmldsig","xmlenc"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/structured-world.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-15T16:44:54.000Z","updated_at":"2026-03-26T15:37:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/structured-world/xml-sec","commit_stats":null,"previous_names":["structured-world/xml-sec"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/structured-world/xml-sec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/structured-world%2Fxml-sec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/structured-world%2Fxml-sec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/structured-world%2Fxml-sec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/structured-world%2Fxml-sec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/structured-world","download_url":"https://codeload.github.com/structured-world/xml-sec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/structured-world%2Fxml-sec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c14n","pure-rust","rust","saml","security","xml","xml-signature","xmldsig","xmlenc"],"created_at":"2026-04-02T14:10:30.530Z","updated_at":"2026-04-02T14:10:31.276Z","avatar_url":"https://github.com/structured-world.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xml-sec\n\nPure Rust XML Security library. Drop-in replacement for libxmlsec1.\n\n**No C dependencies. No cmake. No system libraries. Just `cargo add xml-sec`.**\n\n\u003e [!WARNING]\n\u003e Early-stage pre-release. The API is unstable, XMLDSig/XMLEnc coverage is still incomplete,\n\u003e and this crate should not yet be used in production.\n\n## Features\n\n- **C14N** — XML Canonicalization (inclusive + exclusive, W3C compliant)\n- **XMLDSig** — XML Digital Signatures (verify pipeline implemented; signing in progress, enveloped/enveloping/detached)\n- **XMLEnc** — XML Encryption (symmetric + asymmetric)\n- **X.509** — Certificate-based key extraction and validation\n\n## Why?\n\nEvery SAML, SOAP, and WS-Security implementation depends on libxmlsec1 — a C library that:\n- Requires cmake + libxml2 + OpenSSL/NSS/GnuTLS to build\n- Breaks on Alpine/musl static linking\n- Has decades of CVEs in XML parsing and signature validation\n- Cannot cross-compile easily\n\n`xml-sec` is a ground-up Rust rewrite using `roxmltree` + `ring` + `x509-parser`. Single `cargo build`, works everywhere Rust works.\n\n## Status\n\n**Pre-release.** API is unstable. Not ready for production use.\n\nCurrently implemented (core paths):\n- C14N 1.0, C14N 1.1, and Exclusive C14N\n- XMLDSig parsing, same-document URI dereference, transform chains, and digest verification\n- XMLDSig full verify pipeline (`SignedInfo` canonicalization + `SignatureValue` verification)\n- RSA PKCS#1 v1.5 verification helpers for SHA-1 / SHA-256 / SHA-384 / SHA-512\n- ECDSA verification helpers for P-256/SHA-256 and P-384/SHA-384\n\nStill in progress:\n- XMLDSig signing pipeline\n- XMLEnc encryption/decryption pipeline\n\nCurrent toolchain target: latest stable Rust.\nCurrent MSRV: Rust 1.92.\n\n## Specifications\n\n| Spec | Status |\n|------|--------|\n| [Canonical XML 1.0](https://www.w3.org/TR/xml-c14n/) | Partially implemented |\n| [Canonical XML 1.1](https://www.w3.org/TR/xml-c14n11/) | Partially implemented |\n| [Exclusive C14N](https://www.w3.org/TR/xml-exc-c14n/) | Partially implemented |\n| [XMLDSig](https://www.w3.org/TR/xmldsig-core1/) | Partially implemented |\n| [XMLEnc](https://www.w3.org/TR/xmlenc-core1/) | Planned |\n\n## License\n\nApache-2.0\n\n## Support the Project\n\nIf `xml-sec` is useful in your stack, you can help fund continued implementation and maintenance.\n\n![USDT TRC-20 Donation QR Code](assets/usdt-qr.svg)\n\nUSDT (TRC-20): `TFDsezHa1cBkoeZT5q2T49Wp66K8t2DmdA`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstructured-world%2Fxml-sec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstructured-world%2Fxml-sec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstructured-world%2Fxml-sec/lists"}