Skip to content

Commit 09ed183

Browse files
authored
cms: SignedData builder (#1051)
1 parent 0737947 commit 09ed183

11 files changed

+869
-9
lines changed

.github/workflows/cms.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
toolchain: ${{ matrix.rust }}
4040
targets: ${{ matrix.target }}
4141
- uses: RustCrypto/actions/cargo-hack-install@master
42-
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset --exclude-features arbitrary,default,std
42+
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset --exclude-features arbitrary,default,std,builder
4343

4444
minimal-versions:
4545
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master

Cargo.lock

+46-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cms/Cargo.toml

+12-2
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,27 @@ rust-version = "1.65"
1616
[dependencies]
1717
der = { version = "0.7.6", features = ["alloc", "derive", "oid", "pem"] }
1818
spki = { version = "0.7" }
19-
x509-cert = { version = "0.2", default-features = false, features = ["pem"] }
19+
x509-cert = { version = "0.2.3", default-features = false, features = ["pem"] }
2020
const-oid = { version = "0.9", features = ["db"] } # TODO: path = "../const-oid"
2121

22+
# optional dependencies
23+
sha1 = { version = "0.10", optional = true}
24+
sha2 = { version = "0.10", optional = true}
25+
sha3 = { version = "0.10", optional = true}
26+
signature = { version = "2.1.0", features = ["digest", "alloc"], optional = true}
27+
2228
[dev-dependencies]
2329
hex-literal = "0.4"
30+
pem-rfc7468 = "0.7.0"
2431
pkcs5 = { version = "0.7" }
32+
rsa = { version = "0.9.2", features = ["sha2"] }
33+
ecdsa = { version = "0.16.7", features = ["digest", "pem"] }
34+
p256 = "0.13.0"
2535

2636
[features]
2737
alloc = ["der/alloc"]
2838
std = ["der/std", "spki/std"]
29-
39+
builder = ["sha1", "sha2", "sha3", "signature", "std", "spki/alloc", "x509-cert/builder"]
3040
pem = ["alloc", "der/pem"]
3141

3242
[package.metadata.docs.rs]

0 commit comments

Comments
 (0)