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:
Anton Lazarev 2025-04-02 22:40:32 -07:00
parent ca40dc7ff7
commit 11241c579a
No known key found for this signature in database
GPG Key ID: FBD20243E0CD9104

View File

@ -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,