Skip to content

Commit feea8a4

Browse files
jbeaurivageianrrees
authored andcommitted
deps(hal)!: Update defmt, rng-core, embedded-sdmmc
PR #875
1 parent f2c64fd commit feea8a4

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

hal/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,21 @@ num-traits = {version = "0.2.19", default-features = false}
4949
opaque-debug = "0.3.0"
5050
paste = "1.0.15"
5151
portable-atomic = {version = "1.10.0", optional = true, features = ["critical-section"]}
52-
rand_core = "0.6"
52+
rand_core = "0.9.1"
5353
seq-macro = "0.3"
5454
sorted-hlist = "0.2.0"
5555
typenum = "1.12.0"
56-
vcell = "0.1"
5756
void = {version = "1.0", default-features = false}
5857

5958
#===============================================================================
6059
# Optional depdendencies
6160
#===============================================================================
6261

63-
defmt = { version = "0.3.8", optional = true}
62+
defmt = { version = "1.0.1", optional = true}
6463
embassy-sync = {version = "0.6.0", optional = true}
6564
embedded-hal-async = {version = "1.0.0", optional = true}
6665
embedded-io-async = {version = "0.6.1", optional = true}
67-
embedded-sdmmc = {version = "0.3", optional = true}
66+
embedded-sdmmc = {version = "0.8.1", optional = true}
6867
futures = {version = "0.3.31", default-features = false, features = ["async-await"], optional = true}
6968
jlink_rtt = {version = "0.2", optional = true}
7069
mcan-core = {version = "0.2", optional = true}

hal/src/peripherals/pukcc/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::pac::Mclk;
2727
use c_abi::{CryptoRamSlice, Service, u2, u4};
2828
use curves::Curve;
2929

30-
use rand_core::{CryptoRng, RngCore};
30+
use rand_core::CryptoRng;
3131

3232
/// This macro linearly copies provided iterable slices/arrays to CryptoRAM and
3333
/// assigns slices to provided declared local variables from outer scope
@@ -129,7 +129,7 @@ impl Pukcc {
129129
/// - `k_buffer`: `&mut [u8]` of length [`Curve::SCALAR_LENGTH`]
130130
/// - Mutable buffer that is being populated by an entropy source and
131131
/// then used for signing.
132-
/// - `k_entropy_source`: `&mut (impl RngCore + CryptoRng)`
132+
/// - `k_entropy_source`: `&mut impl CryptoRng`
133133
/// - Generic source of cryptographically secure randomness.
134134
///
135135
/// Output parameters:
@@ -156,7 +156,7 @@ impl Pukcc {
156156
hash: &[u8],
157157
private_key: &[u8],
158158
k_buffer: &mut [u8],
159-
k_entropy_source: &mut (impl RngCore + CryptoRng),
159+
k_entropy_source: &mut impl CryptoRng,
160160
) -> Result<(), EcdsaSignFailure> {
161161
k_entropy_source.fill_bytes(k_buffer);
162162
self.zp_ecdsa_sign::<C>(signature, hash, private_key, k_buffer)

hal/src/peripherals/trng.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ impl RngCore for Trng {
5353
fn fill_bytes(&mut self, dest: &mut [u8]) {
5454
self.random(dest)
5555
}
56-
57-
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {
58-
self.fill_bytes(dest);
59-
Ok(())
60-
}
6156
}
6257

6358
impl CryptoRng for Trng {}

0 commit comments

Comments
 (0)