Home
last modified time | relevance | path

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

/aosp12/system/security/keystore2/src/
H A Dboot_level_keys.rs20 raw_device::KeyMintDevice,
31 fn get_preferred_km_instance_for_level_zero_key() -> Result<KeyMintDevice> { in get_preferred_km_instance_for_level_zero_key()
32 let tee = KeyMintDevice::get(SecurityLevel::TRUSTED_ENVIRONMENT) in get_preferred_km_instance_for_level_zero_key()
34 if tee.version() >= KeyMintDevice::KEY_MASTER_V4_1 { in get_preferred_km_instance_for_level_zero_key()
37 match KeyMintDevice::get_or_none(SecurityLevel::STRONGBOX).context( in get_preferred_km_instance_for_level_zero_key()
40 Some(strongbox) if strongbox.version() >= KeyMintDevice::KEY_MASTER_V4_1 => { in get_preferred_km_instance_for_level_zero_key()
55 let key_desc = KeyMintDevice::internal_descriptor("boot_level_key".to_string()); in get_level_zero_key()
65 let has_early_boot_only = km_dev.version() >= KeyMintDevice::KEY_MASTER_V4_1; in get_level_zero_key()
H A Draw_device.rs48 pub struct KeyMintDevice { struct
55 impl KeyMintDevice { implementation
64 pub fn get(security_level: SecurityLevel) -> Result<KeyMintDevice> { in get() argument
68 Ok(KeyMintDevice { in get()
78 pub fn get_or_none(security_level: SecurityLevel) -> Result<Option<KeyMintDevice>> { in get_or_none() argument
79 KeyMintDevice::get(security_level).map(Some).or_else(|e| { in get_or_none()
H A Dsuper_key.rs30 raw_device::KeyMintDevice,
192 km_dev: &KeyMintDevice, in decrypt() argument
933 let key_desc = KeyMintDevice::internal_descriptor(format!( in lock_screen_lock_bound_key()
938 let km_dev: KeyMintDevice = in lock_screen_lock_bound_key()
939 KeyMintDevice::get(SecurityLevel::TRUSTED_ENVIRONMENT) in lock_screen_lock_bound_key()
1014 let km_dev: KeyMintDevice = KeyMintDevice::get(SecurityLevel::TRUSTED_ENVIRONMENT) in try_unlock_user_with_biometric()
/aosp12/system/security/keystore2/src/km_compat/
H A Dkm_compat.cpp596 ScopedAStatus KeyMintDevice::deleteAllKeys() { in deleteAllKeys()
606 ScopedAStatus KeyMintDevice::destroyAttestationIds() { in destroyAttestationIds()
611 ScopedAStatus KeyMintDevice::begin(KeyPurpose in_inPurpose, in begin()
651 ScopedAStatus KeyMintDevice::deviceLocked(bool passwordOnly, in deviceLocked()
665 ScopedAStatus KeyMintDevice::earlyBootEnded() { in earlyBootEnded()
713 ScopedAStatus KeyMintDevice::getKeyCharacteristics( in getKeyCharacteristics()
1154 KeyMintDevice::getCertificate(const std::vector<KeyParameter>& keyParams, in getCertificate()
1357 void KeyMintDevice::setNumFreeSlots(uint8_t numFreeSlots) { in setNumFreeSlots()
1363 KeyMintDevice::KeyMintDevice(sp<Keymaster> device, KeyMintSecurityLevel securityLevel) in KeyMintDevice() function in KeyMintDevice
1394 std::shared_ptr<KeyMintDevice>
[all …]
H A Dslot_test.cpp38 static std::vector<uint8_t> generateAESKey(std::shared_ptr<KeyMintDevice> device) { in generateAESKey()
56 static std::variant<BeginResult, ScopedAStatus> begin(std::shared_ptr<KeyMintDevice> device, in begin()
75 static std::shared_ptr<KeyMintDevice> device = in TEST()
76 KeyMintDevice::createKeyMintDevice(SecurityLevel::TRUSTED_ENVIRONMENT); in TEST()
H A Dkm_compat.h80 class KeyMintDevice : public aidl::android::hardware::security::keymint::BnKeyMintDevice {
86 explicit KeyMintDevice(::android::sp<Keymaster>, KeyMintSecurityLevel);
87 static std::shared_ptr<KeyMintDevice> createKeyMintDevice(KeyMintSecurityLevel securityLevel);