diff --git a/psila-data/Cargo.toml b/psila-data/Cargo.toml index da6a3ad..cced2eb 100644 --- a/psila-data/Cargo.toml +++ b/psila-data/Cargo.toml @@ -14,7 +14,7 @@ default = [] core = ["heapless"] [dependencies] -byte = "0.2" +byte = { git = "https://github.com/andylokandy/byte.git" } byteorder = { version = "1", default-features = false } bitflags = "2.4" hash32 = "0.2" diff --git a/psila-host/Cargo.toml b/psila-host/Cargo.toml index 5fde087..73c597b 100644 --- a/psila-host/Cargo.toml +++ b/psila-host/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Erik Svensson "] edition = "2018" [dependencies] -byte = "0.2" +byte = { git = "https://github.com/andylokandy/byte.git" } byteorder = { version = "1", default-features = false } clap = "2.32" slice-deque = "0.3" diff --git a/psila-host/config.toml b/psila-host/config.toml index ab92cce..124d075 100644 --- a/psila-host/config.toml +++ b/psila-host/config.toml @@ -1,3 +1,3 @@ keys = [ - "00009808bc94bc4008d8d8d058fc24f4", + "47496e441365d18b1fe1ce2181e3622f", ] \ No newline at end of file diff --git a/psila-host/src/security.rs b/psila-host/src/security.rs index 64c459c..49fbf10 100644 --- a/psila-host/src/security.rs +++ b/psila-host/src/security.rs @@ -70,9 +70,7 @@ impl SecurityService { return size; } } - Err(e) => { - println!(" Decryption failed, {:?}", e); - } + Err(_e) => () } } println!(" No valid key found"); diff --git a/psila-service/Cargo.toml b/psila-service/Cargo.toml index 8c9b9b9..ec7e0fb 100644 --- a/psila-service/Cargo.toml +++ b/psila-service/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] bbqueue = "0.5" -byte = "0.2" +byte = { git = "https://github.com/andylokandy/byte.git" } ieee802154 = { git = "https://github.com/blueluna/ieee-802.15.4.git" } psila-crypto = { path = "../psila-crypto" } psila-data = { path = "../psila-data" } diff --git a/psila-service/src/mac/mod.rs b/psila-service/src/mac/mod.rs index 7720307..d57523c 100644 --- a/psila-service/src/mac/mod.rs +++ b/psila-service/src/mac/mod.rs @@ -14,7 +14,7 @@ use crate::identity::Identity; use crate::Error; pub(crate) fn unpack_header(data: &[u8]) -> Result { - match data.read_with::
(&mut 0, ()) { + match data.read::
(&mut 0) { Ok(header) => Ok(header), Err(error) => { match error {