Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rs-matter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ rust-version = "1.87"
[features]
default = ["os", "rustcrypto", "log"]

# Optional protocol features
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you positive that the LLM is not hallucinating the code/flash size increase? The equivalent PR #410 shows 0% code-size increase even though its code is not hidden behind a feature.

case-initiator = [] # CASE session initiator (client-side Sigma1/Sigma2/Sigma3)

# Sizing

# Number of fabrics
Expand Down
2 changes: 1 addition & 1 deletion rs-matter/src/fabric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ impl Fabric {
}

/// Compute the compressed fabric ID
pub(crate) fn compute_compressed_fabric_id<C: Crypto>(
pub fn compute_compressed_fabric_id<C: Crypto>(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary if the Fabric type is also used by the initiator.

crypto: C,
root_pubkey: CanonPkcPublicKeyRef<'_>,
fabric_id: u64,
Expand Down
4 changes: 3 additions & 1 deletion rs-matter/src/sc/case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ use crate::transport::exchange::Exchange;
use crate::transport::session::{NocCatIds, ReservedSession, SessionMode};
use crate::utils::init::{init, Init, InitMaybeUninit};

mod casep;
pub(crate) mod casep;
#[cfg(feature = "case-initiator")]
pub mod initiator;

// Two certificates (NOC and ICAC), plus ECDSA etc -> approx 950b, doing 1024 to be safe
const CASE_LARGE_BUF_SIZE: usize = MAX_CERT_TLV_LEN * 2 + 224;
Expand Down
Loading
Loading