Skip to content

Commit

Permalink
cms: EnvelopedData (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkstein authored Aug 26, 2023
1 parent 961e756 commit cadf42a
Show file tree
Hide file tree
Showing 7 changed files with 1,073 additions and 54 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 14 additions & 7 deletions cms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,36 @@ edition = "2021"
rust-version = "1.65"

[dependencies]
der = { version = "0.7.6", features = ["alloc", "derive", "oid", "pem"] }
der = { version = "0.7.7", features = ["alloc", "derive", "oid", "pem"] }
spki = { version = "0.7" }
x509-cert = { version = "0.2.3", default-features = false, features = ["pem"] }
const-oid = { version = "0.9", features = ["db"] } # TODO: path = "../const-oid"
const-oid = { version = "0.9.4", features = ["db"] } # TODO: path = "../const-oid"

# optional dependencies
sha1 = { version = "0.10", optional = true}
sha2 = { version = "0.10", optional = true}
sha3 = { version = "0.10", optional = true}
signature = { version = "2.1.0", features = ["digest", "alloc"], optional = true}
aes = { version = "0.8.2", optional = true }
cbc = { version = "0.1.2", optional = true }
cipher = { version = "0.4.4", features = ["alloc", "block-padding", "rand_core"], optional = true }
rsa = { version = "0.9.2", optional = true }
sha1 = { version = "0.10", optional = true }
sha2 = { version = "0.10", optional = true }
sha3 = { version = "0.10", optional = true }
signature = { version = "2.1.0", features = ["digest", "alloc"], optional = true }
zeroize = { version = "1.6.0", optional = true }

[dev-dependencies]
getrandom = "0.2"
hex-literal = "0.4"
pem-rfc7468 = "0.7.0"
pkcs5 = { version = "0.7" }
rand = { version = "0.8.5" }
rsa = { version = "0.9.2", features = ["sha2"] }
ecdsa = { version = "0.16.8", features = ["digest", "pem"] }
p256 = "0.13.0"

[features]
alloc = ["der/alloc"]
std = ["der/std", "spki/std"]
builder = ["sha1", "sha2", "sha3", "signature", "std", "spki/alloc", "x509-cert/builder"]
builder = ["aes", "cbc", "cipher", "rsa", "sha1", "sha2", "sha3", "signature", "std", "spki/alloc", "x509-cert/builder", "zeroize"]
pem = ["alloc", "der/pem"]

[package.metadata.docs.rs]
Expand Down
Loading

0 comments on commit cadf42a

Please sign in to comment.