Home
last modified time | relevance | path

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

/system/security/keystore2/src/
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()
Draw_device.rs48 pub struct KeyMintDevice { struct
55 impl KeyMintDevice { argument
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()
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()
/system/security/keystore2/src/km_compat/
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()
Dkm_compat.cpp415 ScopedAStatus KeyMintDevice::getHardwareInfo(KeyMintHardwareInfo* _aidl_return) { in getHardwareInfo()
426 ScopedAStatus KeyMintDevice::addRngEntropy(const std::vector<uint8_t>& in_data) { in addRngEntropy()
435 ScopedAStatus KeyMintDevice::generateKey(const std::vector<KeyParameter>& inKeyParams, in generateKey()
491 ScopedAStatus KeyMintDevice::importKey(const std::vector<KeyParameter>& inKeyParams, in importKey()
530 KeyMintDevice::importWrappedKey(const std::vector<uint8_t>& in_inWrappedKeyData, in importWrappedKey()
563 ScopedAStatus KeyMintDevice::upgradeKey(const std::vector<uint8_t>& in_inKeyBlobToUpgrade, in upgradeKey()
582 ScopedAStatus KeyMintDevice::deleteKey(const std::vector<uint8_t>& prefixedKeyBlob) { in deleteKey()
596 ScopedAStatus KeyMintDevice::deleteAllKeys() { in deleteAllKeys()
606 ScopedAStatus KeyMintDevice::destroyAttestationIds() { in destroyAttestationIds()
611 ScopedAStatus KeyMintDevice::begin(KeyPurpose in_inPurpose, in begin()
[all …]
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);