Lines Matching refs:kernel

231     let mut kernel = load_latest_signed_kernel()?;  in tampered_kernel_fails_verification()  localVariable
232 kernel[1] = !kernel[1]; // Flip the bits in tampered_kernel_fails_verification()
235 &kernel, in tampered_kernel_fails_verification()
245 let mut kernel = load_latest_signed_kernel()?; in kernel_footer_with_vbmeta_offset_overwritten_fails_verification() localVariable
246 let total_len = kernel.len() as u64; in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()
247 let footer = extract_avb_footer(&kernel)?; in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()
258 let footer_start = kernel.len() - size_of::<AvbFooter>(); in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()
264 kernel[vbmeta_offset_start..(vbmeta_offset_start + size_of::<u64>())] in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()
268 let footer = extract_avb_footer(&kernel)?; in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()
273 &kernel, in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()
284 let mut kernel = load_latest_signed_kernel()?; in tampered_kernel_footer_fails_verification() localVariable
285 let avb_footer_index = kernel.len() - size_of::<AvbFooter>() + RANDOM_FOOTER_POS; in tampered_kernel_footer_fails_verification()
286 kernel[avb_footer_index] = !kernel[avb_footer_index]; in tampered_kernel_footer_fails_verification()
289 &kernel, in tampered_kernel_footer_fails_verification()
311 let mut kernel = load_latest_signed_kernel()?; in tampered_vbmeta_fails_verification() localVariable
312 let footer = extract_avb_footer(&kernel)?; in tampered_vbmeta_fails_verification()
315 kernel[vbmeta_index] = !kernel[vbmeta_index]; // Flip the bits in tampered_vbmeta_fails_verification()
318 &kernel, in tampered_vbmeta_fails_verification()
327 let mut kernel = load_latest_signed_kernel()?; in vbmeta_with_public_key_overwritten_fails_verification() localVariable
328 let footer = extract_avb_footer(&kernel)?; in vbmeta_with_public_key_overwritten_fails_verification()
329 let vbmeta_header = extract_vbmeta_header(&kernel, &footer)?; in vbmeta_with_public_key_overwritten_fails_verification()
337 kernel[public_key_offset..(public_key_offset + public_key_size)] in vbmeta_with_public_key_overwritten_fails_verification()
341 &kernel, in vbmeta_with_public_key_overwritten_fails_verification()
347 &kernel, in vbmeta_with_public_key_overwritten_fails_verification()
360 let mut kernel = load_latest_signed_kernel()?; in vbmeta_with_verification_flag_disabled_fails_verification() localVariable
361 let footer = extract_avb_footer(&kernel)?; in vbmeta_with_verification_flag_disabled_fails_verification()
362 let vbmeta_header = extract_vbmeta_header(&kernel, &footer)?; in vbmeta_with_verification_flag_disabled_fails_verification()
373 kernel[flags_offset..(flags_offset + size_of::<u32>())] in vbmeta_with_verification_flag_disabled_fails_verification()
377 let vbmeta_header = extract_vbmeta_header(&kernel, &footer)?; in vbmeta_with_verification_flag_disabled_fails_verification()
385 &kernel, in vbmeta_with_verification_flag_disabled_fails_verification()