Home
last modified time | relevance | path

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

/packages/modules/Virtualization/libs/apkverify/src/
Dv3.rs93 pub fn verify<P: AsRef<Path>>(apk_path: P, current_sdk: u32) -> Result<Box<[u8]>> { in verify()
95 let (signer, mut sections) = extract_signer_and_apk_sections(apk, current_sdk)?; in verify()
100 pub fn get_public_key_der<P: AsRef<Path>>(apk_path: P, current_sdk: u32) -> Result<Box<[u8]>> { in get_public_key_der()
102 let (signer, _) = extract_signer_and_apk_sections(apk, current_sdk)?; in get_public_key_der()
108 current_sdk: u32, in extract_signer_and_apk_sections()
116 signers.into_iter().filter(|s| s.sdk_range().contains(&current_sdk)).collect::<Vec<_>>(); in extract_signer_and_apk_sections()
Dv4.rs40 current_sdk: u32, in get_apk_digest()
43 let (signer, mut sections) = extract_signer_and_apk_sections(apk, current_sdk)?; in get_apk_digest()
152 current_sdk: u32, in create()
181 get_apk_digest(apk, current_sdk, /*verify=*/ false)?; in create()
368 let current_sdk = 31; in digest_from_apk() localVariable
370 V4Signature::create(&mut input, current_sdk, 4096, &[], HashAlgorithm::SHA256).unwrap(); in digest_from_apk()
/packages/modules/Virtualization/microdroid_manager/src/
Dmain.rs749 let current_sdk = get_current_sdk()?; in get_public_key_from_apk() localVariable
751 verify(apk, current_sdk).context(MicrodroidError::PayloadVerificationFailed(format!( in get_public_key_from_apk()
756 get_public_key_der(apk, current_sdk) in get_public_key_from_apk()
761 let current_sdk = system_properties::read("ro.build.version.sdk")?; in get_current_sdk() localVariable
762 let current_sdk = current_sdk.ok_or_else(|| anyhow!("SDK version missing"))?; in get_current_sdk() localVariable
763 current_sdk.parse().context("Malformed SDK version") in get_current_sdk()
/packages/modules/Virtualization/virtualizationmanager/src/
Daidl.rs125 let current_sdk = system_properties::read("ro.build.version.sdk")?; in get_current_sdk() localVariable
126 let current_sdk = current_sdk.ok_or_else(|| anyhow!("SDK version missing"))?; in get_current_sdk() localVariable
127 current_sdk.parse().context("Malformed SDK version") in get_current_sdk()