rtci-crypto 0.5.0

Provider-neutral cryptography interface of a sans-I/O WebRTC stack, with ring and aws-lc-rs providers
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.89"
name = "rtci-crypto"
version = "0.5.0"
authors = ["The rtci authors"]
build = false
exclude = [
    "tests/vectors/",
    "tests/wycheproof.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provider-neutral cryptography interface of a sans-I/O WebRTC stack, with ring and aws-lc-rs providers"
readme = "README.md"
keywords = [
    "webrtc",
    "crypto",
    "dtls",
    "srtp",
    "sans-io",
]
categories = [
    "cryptography",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Brainwires/rtci"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "crypto-ring",
    "crypto-aws-lc-rs",
    "test-support",
    "ecdsa-rfc6979",
]

[features]
crypto-aws-lc-rs = [
    "dep:aws-lc-rs",
    "dep:aes",
    "dep:ctr",
    "dep:ccm",
    "dep:md-5",
    "dep:hmac",
    "dep:sha1",
]
crypto-ring = [
    "dep:ring",
    "dep:aes",
    "dep:ctr",
    "dep:ccm",
    "dep:md-5",
    "dep:hmac",
    "dep:sha1",
    "dep:sha2",
]
default = ["crypto-ring"]
ecdsa-rfc6979 = [
    "dep:p256",
    "dep:p384",
]
openssl = ["dep:openssl"]
test-support = []
vendored-openssl = [
    "openssl",
    "openssl/vendored",
]

[lib]
name = "rtci_crypto"
path = "src/lib.rs"

[[test]]
name = "aws_lc_heap_erasure"
path = "tests/aws_lc_heap_erasure.rs"

[[test]]
name = "conformance"
path = "tests/conformance.rs"

[[test]]
name = "cross_provider"
path = "tests/cross_provider.rs"

[[test]]
name = "custom_provider"
path = "tests/custom_provider.rs"

[[test]]
name = "default_provider"
path = "tests/default_provider.rs"

[[test]]
name = "hmac_sha1_vectors"
path = "tests/hmac_sha1_vectors.rs"

[[test]]
name = "hmac_sha2_vectors"
path = "tests/hmac_sha2_vectors.rs"

[[test]]
name = "key_share_wire_form"
path = "tests/key_share_wire_form.rs"

[[test]]
name = "portable_paths"
path = "tests/portable_paths.rs"

[[test]]
name = "ring_key_object_erasure"
path = "tests/ring_key_object_erasure.rs"

[[test]]
name = "rsa_import"
path = "tests/rsa_import.rs"

[dependencies.aes]
version = "0.8.4"
features = ["zeroize"]
optional = true

[dependencies.aws-lc-rs]
version = "1.17.3"
features = ["aws-lc-sys"]
optional = true
default-features = false

[dependencies.ccm]
version = "0.5.0"
optional = true

[dependencies.ctr]
version = "0.9.2"
features = ["zeroize"]
optional = true

[dependencies.hmac]
version = "0.13.0"
features = ["zeroize"]
optional = true

[dependencies.md-5]
version = "0.10.6"
optional = true

[dependencies.num-bigint]
version = "0.4.6"

[dependencies.openssl]
version = "0.10.72"
optional = true

[dependencies.p256]
version = "0.14.0"
features = [
    "ecdsa",
    "pkcs8",
]
optional = true
default-features = false

[dependencies.p384]
version = "0.14.0"
features = [
    "ecdsa",
    "pkcs8",
]
optional = true
default-features = false

[dependencies.rand]
version = "0.10.1"

[dependencies.ring]
version = "0.17.14"
optional = true
package = "rtci-ring"

[dependencies.sha1]
version = "0.11.0"
features = ["zeroize"]
optional = true

[dependencies.sha2]
version = "0.10.9"
optional = true

[dependencies.subtle]
version = "2.6.1"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.zeroize]
version = "1.8.2"
features = ["derive"]

[dev-dependencies.p384]
version = "0.14.0"
features = [
    "ecdsa",
    "pkcs8",
    "alloc",
]
default-features = false

[dev-dependencies.pem]
version = "3.0.3"

[dev-dependencies.serde_json]
version = "1.0.114"

[dev-dependencies.sha2]
version = "0.10.9"
features = ["compress"]

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(fuzzing)",
    "cfg(aes_armv8)",
    "cfg(aes_force_soft)",
]