From 75022f0b634a8e44eea57df3f312171b081591e2 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 29 Sep 2025 13:51:00 +0800 Subject: [PATCH] track API change for location of combohash bits --- bao1x-boot/sha2-bao1x/Cargo.toml | 9 ++++----- bao1x-boot/sha2-bao1x/src/sha256.rs | 2 +- bao1x-boot/sha2-bao1x/src/sha512.rs | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bao1x-boot/sha2-bao1x/Cargo.toml b/bao1x-boot/sha2-bao1x/Cargo.toml index cc4026a65..662b38cdf 100644 --- a/bao1x-boot/sha2-bao1x/Cargo.toml +++ b/bao1x-boot/sha2-bao1x/Cargo.toml @@ -11,16 +11,15 @@ description = "sha2 hardware accelerator engine - specific to bao1x" # Rust-standard digest API dependencies digest = "^0.10.7" -utralib = { version = "0.1.25", optional = true, default-features = false } -bao1x-hal = { path = "../../libs/bao1x-hal", optional = true, default-features = false } +utralib = { version = "0.1.25", default-features = false } +bao1x-api = { path = "../../libs/bao1x-api" } [features] compress = [] -bao1x = ["utralib/bao1x", "bao1x-hal/loader-baosec"] +bao1x = ["utralib/bao1x"] oid = [] precursor = ["utralib/precursor"] renode = ["utralib/renode"] std = [] debug = [] -# This crate is specific to the bao1x. -default = ["bao1x"] +default = [] diff --git a/bao1x-boot/sha2-bao1x/src/sha256.rs b/bao1x-boot/sha2-bao1x/src/sha256.rs index 22b1724d5..b5e9c90fe 100644 --- a/bao1x-boot/sha2-bao1x/src/sha256.rs +++ b/bao1x-boot/sha2-bao1x/src/sha256.rs @@ -1,4 +1,4 @@ -use bao1x_hal::sce::combohash::*; +use bao1x_api::sce::combohash::*; use digest::{ core_api::BlockSizeUser, generic_array::GenericArray, diff --git a/bao1x-boot/sha2-bao1x/src/sha512.rs b/bao1x-boot/sha2-bao1x/src/sha512.rs index bbe2949e8..7e6dbe86b 100644 --- a/bao1x-boot/sha2-bao1x/src/sha512.rs +++ b/bao1x-boot/sha2-bao1x/src/sha512.rs @@ -1,4 +1,4 @@ -use bao1x_hal::sce::combohash::*; +use bao1x_api::sce::combohash::*; use digest::{ core_api::BlockSizeUser, generic_array::GenericArray,