aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-04-18 18:21:21 +0000
committerGitHub <[email protected]>2025-04-18 18:21:21 +0000
commit4c6311a1e306d031fd9ff413bbd42baba646384e (patch)
tree5313705861f46e270b35aab0179f19fef908f977
parentca40dc7ff75cabaa6c52c98b4712cc3f64696d62 (diff)
parent11241c579aeda5051c2cbfcc7d3264437decb230 (diff)
Merge pull request #4111 from antonok-edm/hash-context-clone
Derive `Clone` for `hash::Context`
-rw-r--r--embassy-stm32/src/hash/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/hash/mod.rs b/embassy-stm32/src/hash/mod.rs
index 1258e8923..e62151bb5 100644
--- a/embassy-stm32/src/hash/mod.rs
+++ b/embassy-stm32/src/hash/mod.rs
@@ -101,6 +101,7 @@ pub enum DataType {
101 101
102/// Stores the state of the HASH peripheral for suspending/resuming 102/// Stores the state of the HASH peripheral for suspending/resuming
103/// digest calculation. 103/// digest calculation.
104#[derive(Clone)]
104pub struct Context<'c> { 105pub struct Context<'c> {
105 first_word_sent: bool, 106 first_word_sent: bool,
106 key_sent: bool, 107 key_sent: bool,