A DTLS 1.2 server in dimpl picks AES-256-GCM whenever the client offers it, and there is no setting. Our str0m peers are the DTLS server for official TeamSpeak 6 viewers, which offer all profiles, so our streams used GCM while official streams use AES_CM_128_HMAC_SHA1_80. ConfigBuilder::srtp_profiles sets the profiles in order of preference: the server picks the first of them the client offered, clients offer them in that order and reject a server that picks another. Unset, everything is as upstream. VOELIN-PATCH.md describes the patch and how to drop it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
252 lines
4.1 KiB
TOML
252 lines
4.1 KiB
TOML
# 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.85.0"
|
||
name = "dimpl"
|
||
version = "0.7.4"
|
||
authors = ["Martin Algesten <martin@algesten.se>"]
|
||
build = false
|
||
autolib = false
|
||
autobins = false
|
||
autoexamples = false
|
||
autotests = false
|
||
autobenches = false
|
||
description = "DTLS 1.2/1.3 implementation (Sans‑IO, Sync)"
|
||
readme = "README.md"
|
||
keywords = [
|
||
"dtls",
|
||
"tls",
|
||
"webrtc",
|
||
"psk",
|
||
]
|
||
categories = [
|
||
"network-programming",
|
||
"cryptography",
|
||
"security",
|
||
]
|
||
license = "MIT OR Apache-2.0"
|
||
repository = "https://github.com/algesten/dimpl"
|
||
|
||
[features]
|
||
_crypto-common = [
|
||
"dep:der",
|
||
"dep:pkcs8",
|
||
"dep:sec1",
|
||
"dep:signature",
|
||
"dep:spki",
|
||
"dep:x509-cert",
|
||
]
|
||
aws-lc-rs = [
|
||
"dep:aws-lc-rs",
|
||
"dep:ccm",
|
||
"dep:aes",
|
||
"_crypto-common",
|
||
]
|
||
default = [
|
||
"aws-lc-rs",
|
||
"rcgen",
|
||
]
|
||
rcgen = [
|
||
"dep:rcgen",
|
||
"aws-lc-rs",
|
||
]
|
||
rust-crypto = [
|
||
"dep:aes-gcm",
|
||
"dep:chacha20poly1305",
|
||
"dep:chacha20",
|
||
"dep:p256",
|
||
"dep:p384",
|
||
"dep:x25519-dalek",
|
||
"dep:sha2",
|
||
"dep:hmac",
|
||
"dep:hkdf",
|
||
"dep:ecdsa",
|
||
"dep:generic-array",
|
||
"dep:rand_core",
|
||
"dep:ccm",
|
||
"dep:aes",
|
||
"_crypto-common",
|
||
]
|
||
|
||
[lib]
|
||
name = "dimpl"
|
||
path = "src/lib.rs"
|
||
|
||
[[test]]
|
||
name = "auto"
|
||
path = "tests/auto/main.rs"
|
||
|
||
[[test]]
|
||
name = "dtls12"
|
||
path = "tests/dtls12/main.rs"
|
||
|
||
[[test]]
|
||
name = "dtls13"
|
||
path = "tests/dtls13/main.rs"
|
||
|
||
[[test]]
|
||
name = "dtls13_cookie"
|
||
path = "tests/dtls13_cookie.rs"
|
||
|
||
[dependencies.aes]
|
||
version = "0.8"
|
||
optional = true
|
||
|
||
[dependencies.aes-gcm]
|
||
version = "0.10"
|
||
optional = true
|
||
|
||
[dependencies.arrayvec]
|
||
version = "0.7.6"
|
||
|
||
[dependencies.aws-lc-rs]
|
||
version = "^1.16"
|
||
features = [
|
||
"aws-lc-sys",
|
||
"prebuilt-nasm",
|
||
]
|
||
optional = true
|
||
default-features = false
|
||
|
||
[dependencies.ccm]
|
||
version = "0.5"
|
||
optional = true
|
||
default-features = false
|
||
|
||
[dependencies.chacha20]
|
||
version = "0.9"
|
||
optional = true
|
||
|
||
[dependencies.chacha20poly1305]
|
||
version = "0.10"
|
||
optional = true
|
||
|
||
[dependencies.der]
|
||
version = "0.7"
|
||
optional = true
|
||
|
||
[dependencies.ecdsa]
|
||
version = "0.16"
|
||
features = [
|
||
"signing",
|
||
"verifying",
|
||
]
|
||
optional = true
|
||
|
||
[dependencies.generic-array]
|
||
version = "0.14"
|
||
optional = true
|
||
|
||
[dependencies.hkdf]
|
||
version = "0.12"
|
||
optional = true
|
||
|
||
[dependencies.hmac]
|
||
version = "0.12"
|
||
optional = true
|
||
|
||
[dependencies.log]
|
||
version = "0.4.29"
|
||
|
||
[dependencies.nom]
|
||
version = "8"
|
||
features = ["std"]
|
||
default-features = false
|
||
|
||
[dependencies.once_cell]
|
||
version = "1.21.3"
|
||
|
||
[dependencies.p256]
|
||
version = "0.13"
|
||
features = ["ecdh"]
|
||
optional = true
|
||
|
||
[dependencies.p384]
|
||
version = "0.13"
|
||
features = ["ecdh"]
|
||
optional = true
|
||
|
||
[dependencies.pkcs8]
|
||
version = "0.10"
|
||
features = ["pem"]
|
||
optional = true
|
||
|
||
[dependencies.rand]
|
||
version = "0.9"
|
||
|
||
[dependencies.rand_core]
|
||
version = "0.6"
|
||
optional = true
|
||
|
||
[dependencies.rcgen]
|
||
version = "0.14.7"
|
||
features = ["aws_lc_rs"]
|
||
optional = true
|
||
default-features = false
|
||
|
||
[dependencies.sec1]
|
||
version = "0.7"
|
||
optional = true
|
||
|
||
[dependencies.sha2]
|
||
version = "0.10"
|
||
optional = true
|
||
|
||
[dependencies.signature]
|
||
version = "2.2"
|
||
optional = true
|
||
|
||
[dependencies.spki]
|
||
version = "0.7"
|
||
optional = true
|
||
|
||
[dependencies.subtle]
|
||
version = "2.6"
|
||
|
||
[dependencies.time]
|
||
version = "0.3"
|
||
features = ["formatting"]
|
||
|
||
[dependencies.x25519-dalek]
|
||
version = "2"
|
||
features = ["static_secrets"]
|
||
optional = true
|
||
|
||
[dependencies.x509-cert]
|
||
version = "0.2"
|
||
optional = true
|
||
default-features = false
|
||
|
||
[dev-dependencies.bytes]
|
||
version = "1"
|
||
|
||
[dev-dependencies.env_logger]
|
||
version = "0.11.9"
|
||
|
||
[dev-dependencies.libc]
|
||
version = "0.2"
|
||
|
||
[dev-dependencies.openssl]
|
||
version = "0.10.75"
|
||
features = ["vendored"]
|
||
|
||
[dev-dependencies.x509-parser]
|
||
version = "0.18"
|
||
|
||
[target."cfg(not(windows))".dev-dependencies.wolfssl]
|
||
version = "7.2.0"
|
||
|
||
# Voelin: a workspace of its own, so its tests run from this directory
|
||
# (see VOELIN-PATCH.md).
|
||
[workspace]
|