derive Clone for hash::Context
The HASH accelerator can be used for HMAC if a key is provided. One significant use case of HMAC is as a PRF for the PBKDF2 algorithm, but this requires that the hashing state can be recursively "branched" multiple times.
This commit is contained in:
parent
ca40dc7ff7
commit
11241c579a
@ -101,6 +101,7 @@ pub enum DataType {
|
||||
|
||||
/// Stores the state of the HASH peripheral for suspending/resuming
|
||||
/// digest calculation.
|
||||
#[derive(Clone)]
|
||||
pub struct Context<'c> {
|
||||
first_word_sent: bool,
|
||||
key_sent: bool,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user