Home
last modified time | relevance | path

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

/system/security/keystore2/src/
Dboot_level_keys.rs299 let mut blkc = BootLevelKeyCache::new(ZVec::try_from(initial_key as &[u8])?); in test_output_is_consistent() localVariable
300 assert!(blkc.level_accessible(0)); in test_output_is_consistent()
301 assert!(blkc.level_accessible(9)); in test_output_is_consistent()
302 assert!(blkc.level_accessible(10)); in test_output_is_consistent()
303 assert!(blkc.level_accessible(100)); in test_output_is_consistent()
304 let v0 = blkc.aes_key(0).unwrap().unwrap(); in test_output_is_consistent()
305 let v10 = blkc.aes_key(10).unwrap().unwrap(); in test_output_is_consistent()
306 assert_eq!(Some(&v0), blkc.aes_key(0)?.as_ref()); in test_output_is_consistent()
307 assert_eq!(Some(&v10), blkc.aes_key(10)?.as_ref()); in test_output_is_consistent()
308 blkc.advance_boot_level(5)?; in test_output_is_consistent()
[all …]