diff --git a/rs-matter/Cargo.toml b/rs-matter/Cargo.toml index ea1890ee..270e07c8 100644 --- a/rs-matter/Cargo.toml +++ b/rs-matter/Cargo.toml @@ -150,7 +150,7 @@ ccm = { version = "0.5", default-features = false, features = ["alloc"], optiona p256 = { version = "0.13", default-features = false, features = ["arithmetic", "ecdh", "ecdsa"], optional = true } sec1 = { version = "0.7", default-features = false, optional = true } elliptic-curve = { version = "0.13", optional = true } -crypto-bigint = { version = "0.5", default-features = false, optional = true } +crypto-bigint = { version = "0.6", default-features = false, optional = true } rand_core = { version = "0.6", default-features = false, optional = true } x509-cert = { version = "0.2", default-features = false, features = ["pem"], optional = true } # TODO: requires `alloc` diff --git a/rs-matter/src/crypto/openssl.rs b/rs-matter/src/crypto/openssl.rs index add33c9f..0931b1c6 100644 --- a/rs-matter/src/crypto/openssl.rs +++ b/rs-matter/src/crypto/openssl.rs @@ -15,6 +15,8 @@ * limitations under the License. */ +#![allow(deprecated)] // Remove this once `hmac` updates to `generic-array` 1.x + use core::fmt::{self, Debug}; use crate::error::{Error, ErrorCode}; diff --git a/rs-matter/src/crypto/rustcrypto.rs b/rs-matter/src/crypto/rustcrypto.rs index 28f19697..8525d728 100644 --- a/rs-matter/src/crypto/rustcrypto.rs +++ b/rs-matter/src/crypto/rustcrypto.rs @@ -15,6 +15,8 @@ * limitations under the License. */ +#![allow(deprecated)] // Remove this once `ccm` and `elliptic_curve` update to `generic-array` 1.x + use core::convert::{TryFrom, TryInto}; use core::mem::MaybeUninit; diff --git a/rs-matter/src/sc/crypto/rustcrypto.rs b/rs-matter/src/sc/crypto/rustcrypto.rs index 49244f49..37e20d12 100644 --- a/rs-matter/src/sc/crypto/rustcrypto.rs +++ b/rs-matter/src/sc/crypto/rustcrypto.rs @@ -15,7 +15,8 @@ * limitations under the License. */ -use crypto_bigint::Encoding; +#![allow(deprecated)] // Remove this once `ccm` and `elliptic_curve` update to `generic-array` 1.x + use crypto_bigint::NonZero; use crypto_bigint::U384; use elliptic_curve::ops::*;