Lines Matching refs:blkc
245 let mut blkc = BootLevelKeyCache::new(ZVec::try_from(initial_key as &[u8])?); in test_output_is_consistent() localVariable
246 assert_eq!(true, blkc.level_accessible(0)); in test_output_is_consistent()
247 assert_eq!(true, blkc.level_accessible(9)); in test_output_is_consistent()
248 assert_eq!(true, blkc.level_accessible(10)); in test_output_is_consistent()
249 assert_eq!(true, blkc.level_accessible(100)); in test_output_is_consistent()
250 let v0 = blkc.aes_key(0).unwrap().unwrap(); in test_output_is_consistent()
251 let v10 = blkc.aes_key(10).unwrap().unwrap(); in test_output_is_consistent()
252 assert_eq!(Some(&v0), blkc.aes_key(0)?.as_ref()); in test_output_is_consistent()
253 assert_eq!(Some(&v10), blkc.aes_key(10)?.as_ref()); in test_output_is_consistent()
254 blkc.advance_boot_level(5)?; in test_output_is_consistent()
255 assert_eq!(false, blkc.level_accessible(0)); in test_output_is_consistent()
256 assert_eq!(true, blkc.level_accessible(9)); in test_output_is_consistent()
257 assert_eq!(true, blkc.level_accessible(10)); in test_output_is_consistent()
258 assert_eq!(true, blkc.level_accessible(100)); in test_output_is_consistent()
259 assert_eq!(None, blkc.aes_key(0)?); in test_output_is_consistent()
260 assert_eq!(Some(&v10), blkc.aes_key(10)?.as_ref()); in test_output_is_consistent()
261 blkc.advance_boot_level(10)?; in test_output_is_consistent()
262 assert_eq!(false, blkc.level_accessible(0)); in test_output_is_consistent()
263 assert_eq!(false, blkc.level_accessible(9)); in test_output_is_consistent()
264 assert_eq!(true, blkc.level_accessible(10)); in test_output_is_consistent()
265 assert_eq!(true, blkc.level_accessible(100)); in test_output_is_consistent()
266 assert_eq!(None, blkc.aes_key(0)?); in test_output_is_consistent()
267 assert_eq!(Some(&v10), blkc.aes_key(10)?.as_ref()); in test_output_is_consistent()
268 blkc.advance_boot_level(0)?; in test_output_is_consistent()
269 assert_eq!(false, blkc.level_accessible(0)); in test_output_is_consistent()
270 assert_eq!(false, blkc.level_accessible(9)); in test_output_is_consistent()
271 assert_eq!(true, blkc.level_accessible(10)); in test_output_is_consistent()
272 assert_eq!(true, blkc.level_accessible(100)); in test_output_is_consistent()
273 assert_eq!(None, blkc.aes_key(0)?); in test_output_is_consistent()
274 assert_eq!(Some(v10), blkc.aes_key(10)?); in test_output_is_consistent()
275 blkc.finish(); in test_output_is_consistent()
276 assert_eq!(false, blkc.level_accessible(0)); in test_output_is_consistent()
277 assert_eq!(false, blkc.level_accessible(9)); in test_output_is_consistent()
278 assert_eq!(false, blkc.level_accessible(10)); in test_output_is_consistent()
279 assert_eq!(false, blkc.level_accessible(100)); in test_output_is_consistent()
280 assert_eq!(None, blkc.aes_key(0)?); in test_output_is_consistent()
281 assert_eq!(None, blkc.aes_key(10)?); in test_output_is_consistent()