Skip to content

Commit

Permalink
[fix] Update emulator to copy the HMAC tag to the tag register array …
Browse files Browse the repository at this point in the history
…in CSR mode. (#1879)
  • Loading branch information
mhatrevi authored Jan 6, 2025
1 parent 5788962 commit 44c8242
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sw-emulator/lib/periph/src/hmac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,10 @@ impl HmacSha {
let mode512 = self.control.reg.is_set(Control::MODE);

// If CSR mode is set, use the pre-defined key.
// Also reset the key_from_kv flag since the key is not read from the key-vault.
if self.control.reg.is_set(Control::CSR_MODE) {
self.key = self.csr_key;
self.key_from_kv = false;
}

if self.control.reg.is_set(Control::INIT) {
Expand Down

0 comments on commit 44c8242

Please sign in to comment.