9 releases

0.2.3 Jun 30, 2023
0.2.2 Mar 4, 2022
0.2.1 Aug 2, 2021
0.2.0 Nov 4, 2020
0.0.0 Dec 13, 2019

#443 in Cryptography

Download history 126/week @ 2024-01-02 178/week @ 2024-01-09 204/week @ 2024-01-16 175/week @ 2024-01-23 162/week @ 2024-01-30 140/week @ 2024-02-06 101/week @ 2024-02-13 200/week @ 2024-02-20 330/week @ 2024-02-27 291/week @ 2024-03-05 361/week @ 2024-03-12 181/week @ 2024-03-19 169/week @ 2024-03-26 184/week @ 2024-04-02 101/week @ 2024-04-09 102/week @ 2024-04-16

591 downloads per month

MIT license

41KB
879 lines

Rust wrapper for xmlsec1

This library aims at wrapping xmlsec1 and being interoperable with rust-libxml, while attemting to be as correct and comfortable to use as possible.

Things needing improvement

  • Better input sanitization of string arguments. Currently they get blindly turned into a FFI version and passed through to xmlsec.
  • Proper management for xmlsec error handling. Currently things fail very opaquely without actually telling you why the signing process failed, just that it failed for the particular job.
  • More expressive error handling chain.

Things not yet supported

  • XML encryption.
  • Key management (as in xmlsec key manager). Though the value of wrapping that should be debated first. It may be more sensible to lift that to pure Rust instead.
  • Dynamic selection of crypto backend.

Contibuting

Help in any way improving or completing the wrapping of xmlsec features always very welcome! Please keep some things in mind before PR'ing your changes;

  • Please check tests for breakage and write new ones to cover your changes.
  • Please run valgrind over your tests and make sure you are not leaking resources.

Tested platforms

  • Debian Buster (10.x)

Dependencies

~0.8–2.6MB
~54K SLoC