-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
54 lines (48 loc) · 1.64 KB
/
Cargo.toml
File metadata and controls
54 lines (48 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[package]
name = "xml-sec"
version = "0.1.6"
edition = "2024"
rust-version = "1.92"
license = "Apache-2.0"
description = "Pure Rust XML Security: XMLDSig, XMLEnc, C14N. Drop-in replacement for libxmlsec1."
repository = "https://github.com/structured-world/xml-sec"
homepage = "https://github.com/structured-world/xml-sec"
documentation = "https://docs.rs/xml-sec"
keywords = ["xml", "xmldsig", "xmlenc", "c14n", "saml"]
categories = ["cryptography", "web-programming", "authentication"]
readme = "README.md"
[dependencies]
# XML parsing
roxmltree = { version = "0.21", features = ["positions"] }
# Crypto
rsa = { version = "0.9", optional = true }
sha1 = { version = "0.10", features = ["oid"], optional = true }
sha2 = { version = "0.10", features = ["oid"], optional = true }
p256 = { version = "0.13", features = ["ecdsa"], optional = true }
p384 = { version = "0.13", features = ["ecdsa"], optional = true }
p521 = { version = "0.13", features = ["ecdsa"], optional = true }
signature = { version = "2", optional = true }
subtle = { version = "2", optional = true }
# X.509 certificates
x509-parser = { version = "0.18", optional = true }
der = { version = "0.8", optional = true }
# Base64 encoding/decoding
base64 = "0.22"
# Error handling
thiserror = "2"
[features]
default = ["xmldsig", "c14n"]
xmldsig = [ # XML Digital Signatures (sign + verify)
"dep:der",
"dep:p256",
"dep:p384",
"dep:p521",
"dep:rsa",
"dep:sha1",
"dep:sha2",
"dep:signature",
"dep:subtle",
"dep:x509-parser",
]
xmlenc = [] # XML Encryption (encrypt + decrypt)
c14n = [] # XML Canonicalization (inclusive + exclusive)