Home
last modified time | relevance | path

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

/system/security/keystore2/src/
Dboot_level_keys.rs21 raw_device::KeyMintDevice,
86 fn get_level_zero_key_km_and_strategy() -> Result<(KeyMintDevice, DenyLaterStrategy)> { in get_level_zero_key_km_and_strategy()
89 KeyMintDevice::get(level).context(ks_err!("Get KM instance failed."))?, in get_level_zero_key_km_and_strategy()
93 let tee = KeyMintDevice::get(SecurityLevel::TRUSTED_ENVIRONMENT) in get_level_zero_key_km_and_strategy()
95 if tee.version() >= KeyMintDevice::KEY_MASTER_V4_1 { in get_level_zero_key_km_and_strategy()
98 match KeyMintDevice::get_or_none(SecurityLevel::STRONGBOX) in get_level_zero_key_km_and_strategy()
101 Some(strongbox) if strongbox.version() >= KeyMintDevice::KEY_MASTER_V4_1 => { in get_level_zero_key_km_and_strategy()
136 let key_desc = KeyMintDevice::internal_descriptor("boot_level_key".to_string()); in get_level_zero_key()
Draw_device.rs50 pub struct KeyMintDevice { struct
57 impl KeyMintDevice { implementation
70 pub fn get(security_level: SecurityLevel) -> Result<KeyMintDevice> { in get() argument
74 Ok(KeyMintDevice { in get()
84 pub fn get_or_none(security_level: SecurityLevel) -> Result<Option<KeyMintDevice>> { in get_or_none() argument
85 KeyMintDevice::get(security_level).map(Some).or_else(|e| { in get_or_none()
Dsuper_key.rs31 raw_device::KeyMintDevice,
194 km_dev: &KeyMintDevice, in decrypt() argument
938 let key_desc = KeyMintDevice::internal_descriptor(format!( in lock_screen_lock_bound_key()
943 let km_dev: KeyMintDevice = in lock_screen_lock_bound_key()
944 KeyMintDevice::get(SecurityLevel::TRUSTED_ENVIRONMENT) in lock_screen_lock_bound_key()
1018 let km_dev: KeyMintDevice = KeyMintDevice::get(SecurityLevel::TRUSTED_ENVIRONMENT) in try_unlock_user_with_biometric()
/system/security/keystore2/src/km_compat/
Dslot_test.cpp39 static std::vector<uint8_t> generateAESKey(std::shared_ptr<KeyMintDevice> device) { in generateAESKey()
57 static bool generateECSingingKey(std::shared_ptr<KeyMintDevice> device) { in generateECSingingKey()
76 static std::variant<BeginResult, ScopedAStatus> begin(std::shared_ptr<KeyMintDevice> device, in begin()
93 generateAndBeginECDHKeyOperation(std::shared_ptr<KeyMintDevice> device) { in generateAndBeginECDHKeyOperation()
125 static std::shared_ptr<KeyMintDevice> device = in TEST()
126 KeyMintDevice::getWrappedKeymasterDevice(SecurityLevel::TRUSTED_ENVIRONMENT); in TEST()
Dkm_compat.cpp424 ScopedAStatus KeyMintDevice::getHardwareInfo(KeyMintHardwareInfo* _aidl_return) { in getHardwareInfo()
435 ScopedAStatus KeyMintDevice::addRngEntropy(const std::vector<uint8_t>& in_data) { in addRngEntropy()
444 ScopedAStatus KeyMintDevice::generateKey(const std::vector<KeyParameter>& inKeyParams, in generateKey()
500 ScopedAStatus KeyMintDevice::importKey(const std::vector<KeyParameter>& inKeyParams, in importKey()
560 KeyMintDevice::importWrappedKey(const std::vector<uint8_t>& in_inWrappedKeyData, in importWrappedKey()
593 ScopedAStatus KeyMintDevice::upgradeKey(const std::vector<uint8_t>& in_inKeyBlobToUpgrade, in upgradeKey()
623 ScopedAStatus KeyMintDevice::deleteKey(const std::vector<uint8_t>& prefixedKeyBlob) { in deleteKey()
637 ScopedAStatus KeyMintDevice::deleteAllKeys() { in deleteAllKeys()
647 ScopedAStatus KeyMintDevice::destroyAttestationIds() { in destroyAttestationIds()
652 ScopedAStatus KeyMintDevice::begin(KeyPurpose in_inPurpose, in begin()
[all …]
Dkm_compat.h92 class KeyMintDevice : public aidl::android::hardware::security::keymint::BnKeyMintDevice {
98 explicit KeyMintDevice(::android::sp<Keymaster>, KeyMintSecurityLevel);
100 static std::shared_ptr<KeyMintDevice>