/aosp_15_r20/external/avb/rust/src/descriptor/ |
H A D | util.rs | 33 pub(super) fn split_slice<T>(data: &[u8], size: T) -> DescriptorResult<(&[u8], &[u8])> in split_slice() function 117 assert_eq!(split_slice(data, 2u32), expected); in split_slice_with_various_size_types_succeeds() 118 assert_eq!(split_slice(data, 2u64), expected); in split_slice_with_various_size_types_succeeds() 119 assert_eq!(split_slice(data, 2usize), expected); in split_slice_with_various_size_types_succeeds() 125 assert_eq!(split_slice(data, -1i32), Err(DescriptorError::InvalidValue)); in split_slice_with_negative_size_fails() 131 assert_eq!(split_slice(data, 5u32), Err(DescriptorError::InvalidSize)); in split_slice_with_size_overflow_fails()
|
H A D | property.rs | 18 util::{parse_descriptor, split_slice, ValidateAndByteswap, ValidationFunc}, 27 let (nul, remainder) = split_slice(bytes, 1)?; in extract_nul() 62 let (key, remainder) = split_slice(descriptor.body, descriptor.header.key_num_bytes)?; in new() 64 let (value, remainder) = split_slice(remainder, descriptor.header.value_num_bytes)?; in new()
|
H A D | hash.rs | 18 util::{parse_descriptor, split_slice, ValidateAndByteswap, ValidationFunc}, 74 split_slice(descriptor.body, descriptor.header.partition_name_len)?; in new() 75 let (salt, remainder) = split_slice(remainder, descriptor.header.salt_len)?; in new() 76 let (digest, _) = split_slice(remainder, descriptor.header.digest_len)?; in new()
|
H A D | hashtree.rs | 18 util::{parse_descriptor, split_slice, ValidateAndByteswap, ValidationFunc}, 92 split_slice(descriptor.body, descriptor.header.partition_name_len)?; in new() 93 let (salt, remainder) = split_slice(remainder, descriptor.header.salt_len)?; in new() 94 let (root_digest, _) = split_slice(remainder, descriptor.header.root_digest_len)?; in new()
|
H A D | chain.rs | 18 util::{parse_descriptor, split_slice, ValidateAndByteswap, ValidationFunc}, 70 split_slice(descriptor.body, descriptor.header.partition_name_len)?; in new() 71 let (public_key, _) = split_slice(remainder, descriptor.header.public_key_len)?; in new()
|
H A D | commandline.rs | 18 util::{parse_descriptor, split_slice, ValidateAndByteswap, ValidationFunc}, 58 split_slice(descriptor.body, descriptor.header.kernel_cmdline_length)?; in new()
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/alloc/benches/ |
H A D | str.rs | 102 fn split_slice(b: &mut Bencher) { in split_slice() function
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/alloc/benches/ |
H A D | str.rs | 102 fn split_slice(b: &mut Bencher) { in split_slice() function
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/alloc/benches/ |
H A D | str.rs | 102 fn split_slice(b: &mut Bencher) { in split_slice() function
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/alloc/benches/ |
H A D | str.rs | 102 fn split_slice(b: &mut Bencher) { in split_slice() function
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/alloc/benches/ |
H A D | str.rs | 102 fn split_slice(b: &mut Bencher) { in split_slice() function
|