Home
last modified time | relevance | path

Searched refs:U32_SIZE (Results 1 – 2 of 2) sorted by relevance

/trusty/user/app/storage/test/storage-unittest-aidl/unittests/
Dhelpers.rs59 const U32_SIZE: usize = std::mem::size_of::<u32>(); in check_pattern32() constant
60 let mut pattern: u32 = (offset / U32_SIZE).try_into().unwrap(); in check_pattern32()
62 let mut chunks = buf.chunks_exact(U32_SIZE); in check_pattern32()
84 const U32_SIZE: usize = std::mem::size_of::<u32>(); in fill_pattern32() constant
85 let mut pattern: u32 = (offset / U32_SIZE).try_into().unwrap(); in fill_pattern32()
87 for chunk in buf.chunks_exact_mut(U32_SIZE) { in fill_pattern32()
89 for i in 0..U32_SIZE { in fill_pattern32()
/trusty/user/app/keymint/
Dkeys.rs43 const U32_SIZE: usize = core::mem::size_of::<u32>(); constant
47 let u32_bytes: [u8; U32_SIZE] = match bytes.try_into() { in deserialize_u32()
106 const NON_LEGACY_KEY_OFFSET: usize = Self::CONTEXT_VER_OFFSET + U32_SIZE;
108 const KDF_VER_OFFSET: usize = Self::NON_LEGACY_KEY_OFFSET + U32_SIZE;
110 const OS_ROLLBACK_VER_OFFSET: usize = Self::KDF_VER_OFFSET + U32_SIZE;
113 const SERIALIZED_SIZE: usize = Self::OS_ROLLBACK_VER_OFFSET + U32_SIZE;