Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update SHA examples to get them building again
  • Loading branch information
jessebraham committed Dec 14, 2022
commit 3b50f59957102e17c367043f31a109b709cd9826
1 change: 0 additions & 1 deletion esp32-hal/examples/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ fn main() -> ! {
let hw_time = post_calc - pre_calc;
println!("Took {} cycles", hw_time);
println!("SHA512 Hash output {:02x?}", output);
let _usha = hasher.free();

let pre_calc = xtensa_lx::timer::get_cycle_count();
let mut hasher = Sha512::new();
Expand Down
1 change: 0 additions & 1 deletion esp32c2-hal/examples/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ fn main() -> ! {
// let hw_time = post_calc - pre_calc;
// println!("Took {} cycles", hw_time);
println!("SHA256 Hash output {:02x?}", output);
let _usha = hasher.free();

// let pre_calc = xtensa_lx::timer::get_cycle_count();
let mut hasher = Sha256::new();
Expand Down
1 change: 0 additions & 1 deletion esp32c3-hal/examples/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ fn main() -> ! {
// let hw_time = post_calc - pre_calc;
// println!("Took {} cycles", hw_time);
println!("SHA256 Hash output {:02x?}", output);
let _usha = hasher.free();

// let pre_calc = xtensa_lx::timer::get_cycle_count();
let mut hasher = Sha256::new();
Expand Down
1 change: 0 additions & 1 deletion esp32s2-hal/examples/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ fn main() -> ! {
let hw_time = post_calc - pre_calc;
println!("Took {} cycles", hw_time);
println!("SHA512 Hash output {:02x?}", output);
let _usha = hasher.free();

let pre_calc = xtensa_lx::timer::get_cycle_count();
let mut hasher = Sha512::new();
Expand Down
1 change: 0 additions & 1 deletion esp32s3-hal/examples/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ fn main() -> ! {
let hw_time = post_calc - pre_calc;
println!("Took {} cycles", hw_time);
println!("SHA512 Hash output {:02x?}", output);
let _usha = hasher.free();

let pre_calc = xtensa_lx::timer::get_cycle_count();
let mut hasher = Sha512::new();
Expand Down