Home
last modified time | relevance | path

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

/system/security/keystore2/src/
Dboot_level_keys.rs245 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()
[all …]