Merge "[dice] Move CDI_SIZE to upstream library libdiced_open_dice"
diff --git a/libs/dice/src/lib.rs b/libs/dice/src/lib.rs
index 4a1b699..4a45ab4 100644
--- a/libs/dice/src/lib.rs
+++ b/libs/dice/src/lib.rs
@@ -19,7 +19,8 @@
#![no_std]
pub use diced_open_dice::{
- check_result, Config, DiceError, Hash, InputValues, Result, HASH_SIZE, HIDDEN_SIZE,
+ check_result, Cdi, Config, DiceError, Hash, InputValues, Result, CDI_SIZE, HASH_SIZE,
+ HIDDEN_SIZE,
};
pub use open_dice_cbor_bindgen::DiceMode;
@@ -27,11 +28,6 @@
pub mod bcc;
-const CDI_SIZE: usize = open_dice_cbor_bindgen::DICE_CDI_SIZE as usize;
-
-/// Array type of CDIs.
-pub type Cdi = [u8; CDI_SIZE];
-
fn ctx() -> *mut core::ffi::c_void {
core::ptr::null_mut()
}