[package]
edition = "2021"
rust-version = "1.88"
name = "matter-crypto"
version = "0.2.0"
authors = ["matter-rust contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Matter protocol session establishment: PASE (SPAKE2+) and CASE (SIGMA)."
homepage = "https://github.com/phunapps/matter-rust"
readme = "README.md"
keywords = [
"matter",
"spake2",
"sigma",
"iot",
"cryptography",
]
categories = ["cryptography"]
license = "Apache-2.0"
repository = "https://github.com/phunapps/matter-rust"
[features]
test-support = []
[lib]
name = "matter_crypto"
path = "src/lib.rs"
[[test]]
name = "case_byte_parity"
path = "tests/case_byte_parity.rs"
[[test]]
name = "case_cert_expiry"
path = "tests/case_cert_expiry.rs"
[[test]]
name = "case_roundtrip"
path = "tests/case_roundtrip.rs"
[[test]]
name = "pase_byte_parity"
path = "tests/pase_byte_parity.rs"
[[test]]
name = "pase_roundtrip"
path = "tests/pase_roundtrip.rs"
[[bench]]
name = "case"
path = "benches/case.rs"
harness = false
[dependencies.aes]
version = "0.8"
default-features = false
[dependencies.ccm]
version = "0.5"
features = ["alloc"]
default-features = false
[dependencies.matter-cert]
version = "0.2.0"
[dependencies.matter-codec]
version = "0.2.0"
[dependencies.p256]
version = "0.13"
features = [
"arithmetic",
"ecdh",
"ecdsa",
"pkcs8",
]
default-features = false
[dependencies.ring]
version = "0.17"
[dependencies.subtle]
version = "2"
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.zeroize]
version = "1"
features = [
"zeroize_derive",
"alloc",
]
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.hex]
version = "0.4"
features = ["std"]
default-features = false
[dev-dependencies.matter-cert]
version = "0.2.0"
features = ["test-support"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde]
version = "1"
features = [
"derive",
"derive",
]
[dev-dependencies.serde_json]
version = "1.0"
[lints.clippy]
expect_used = "warn"
missing_const_for_fn = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
module_name_repetitions = "allow"
must_use_candidate = "allow"
undocumented_unsafe_blocks = "warn"
unwrap_used = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1