[dice] Create libdiced_open_dice[_nostd] to reuse dice in nostd
Test: atest diced_utils_test diced_sample_inputs_test \
diced_test diced_vendor_test
Bug: 267575445
Change-Id: I3cf1b818938a6b1496657f9391424f2a351148fe
diff --git a/diced/src/sample_inputs.rs b/diced/src/sample_inputs.rs
index bab296a..14e0efa 100644
--- a/diced/src/sample_inputs.rs
+++ b/diced/src/sample_inputs.rs
@@ -121,13 +121,13 @@
}
fn make_input_values(
- code_hash: &[u8; dice::HASH_SIZE],
- authority_hash: &[u8; dice::HASH_SIZE],
+ code_hash: &dice::Hash,
+ authority_hash: &dice::Hash,
config_name: &str,
config_version: u64,
config_resettable: bool,
mode: Mode,
- hidden: &[u8; dice::HIDDEN_SIZE],
+ hidden: &dice::Hidden,
) -> Result<BinderInputValues> {
Ok(BinderInputValues {
codeHash: *code_hash,