[package]
edition = "2021"
rust-version = "1.85"
name = "hap-crypto"
version = "1.1.0"
authors = ["hap-rust contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HomeKit Accessory Protocol pairing crypto: Pair Setup (SRP-6a) and Pair Verify (X25519/Ed25519); HAP-BLE broadcast key derivation and decryption."
homepage = "https://github.com/phunapps/hap-rust"
readme = "README.md"
keywords = [
"homekit",
"hap",
"srp",
"pairing",
"cryptography",
]
categories = [
"cryptography",
"authentication",
]
license = "Apache-2.0"
repository = "https://github.com/phunapps/hap-rust"
[lib]
name = "hap_crypto"
path = "src/lib.rs"
[dependencies.chacha20]
version = "0.9"
[dependencies.chacha20poly1305]
version = "0.10"
[dependencies.ed25519-dalek]
version = "2"
features = ["rand_core"]
[dependencies.hap-tlv8]
version = "1.0.0"
[dependencies.hkdf]
version = "0.12"
[dependencies.num-bigint]
version = "0.4"
[dependencies.num-traits]
version = "0.2"
[dependencies.poly1305]
version = "0.8"
[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]
[dependencies.sha2]
version = "0.10"
[dependencies.subtle]
version = "2"
[dependencies.thiserror]
version = "2"
[dependencies.x25519-dalek]
version = "2"
features = [
"static_secrets",
"getrandom",
]
[dependencies.zeroize]
version = "1"
features = ["derive"]
[dev-dependencies.hex]
version = "0.4"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.sha-1]
version = "0.10"
[lints.clippy]
doc_markdown = "allow"
expect_used = "warn"
missing_const_for_fn = "allow"
missing_errors_doc = "warn"
missing_panics_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_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1