mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
upgrade ecup to sha 0.10 api
This commit is contained in:
parent
74266d378c
commit
eb28893128
1 changed files with 2 additions and 3 deletions
|
|
@ -1,10 +1,9 @@
|
|||
use std::convert::TryInto;
|
||||
|
||||
use digest::Digest;
|
||||
use locales::t;
|
||||
use modals::Modals;
|
||||
use num_traits::*;
|
||||
use sha2::*;
|
||||
use sha2::Digest;
|
||||
use xous::msg_blocking_scalar_unpack;
|
||||
use xous_semver::SemVer;
|
||||
|
||||
|
|
@ -651,7 +650,7 @@ fn do_update(
|
|||
}
|
||||
|
||||
fn validate_package(pkg: &[u8], pkg_type: PackageType) -> bool {
|
||||
let mut hasher = sha2::Sha512Trunc256::new_with_strategy(FallbackStrategy::HardwareThenSoftware);
|
||||
let mut hasher = sha2::Sha512_256::new();
|
||||
let mut temp: [u8; 4] = Default::default();
|
||||
temp.copy_from_slice(&pkg[0x20..0x24]);
|
||||
if pkg_type == PackageType::Ec {
|
||||
|
|
|
|||
Loading…
Reference in a new issue