Add incremental hash to FirmwareUpdater

This adds support for computing any hash over the update in the dtu area by providing a closure to the hash update function.
This commit is contained in:
Rasmus Melchior Jacobsen
2023-04-03 14:59:55 +02:00
parent 0909a6cd3f
commit 8aaffe82e7
2 changed files with 43 additions and 26 deletions

View File

@ -308,7 +308,7 @@ mod tests {
&mut flash,
&public_key.to_bytes(),
&signature.to_bytes(),
firmware_len,
firmware_len as u32,
&mut aligned,
))
.is_ok());