Skip to content

Commit c9a0926

Browse files
travierJohan-Liebert1
authored andcommitted
Use SHA256 by default
1 parent 71fa274 commit c9a0926

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

crates/lib/src/cfsctl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use rustix::fs::CWD;
1313
use composefs_boot::{write_boot, BootOps};
1414

1515
use composefs::{
16-
fsverity::{FsVerityHashValue, Sha512HashValue},
16+
fsverity::{FsVerityHashValue, Sha256HashValue, Sha512HashValue},
1717
repository::Repository,
1818
};
1919

@@ -147,7 +147,7 @@ enum Command {
147147
},
148148
}
149149

150-
fn verity_opt(opt: &Option<String>) -> Result<Option<Sha512HashValue>> {
150+
fn verity_opt(opt: &Option<String>) -> Result<Option<Sha256HashValue>> {
151151
Ok(opt.as_ref().map(FsVerityHashValue::from_hex).transpose()?)
152152
}
153153

crates/lib/src/store/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ use crate::spec::ImageStatus;
3535
use crate::utils::deployment_fd;
3636

3737
/// See https://github.com/containers/composefs-rs/issues/159
38+
// pub type ComposefsRepository =
39+
// composefs::repository::Repository<composefs::fsverity::Sha512HashValue>;
3840
pub type ComposefsRepository =
39-
composefs::repository::Repository<composefs::fsverity::Sha512HashValue>;
41+
composefs::repository::Repository<composefs::fsverity::Sha256HashValue>;
4042

4143
/// Path to the physical root
4244
pub const SYSROOT: &str = "sysroot";

0 commit comments

Comments
 (0)