/system/security/keystore/ |
D | key_proto_handler.cpp | 31 void checkEnforcedCharacteristics(const hidl_vec<KeyParameter>& keyParams, KeyConfig* keyConfig) { in checkEnforcedCharacteristics() argument 32 for (auto& keyParam : keyParams) { in checkEnforcedCharacteristics() 74 void uploadKeyCharacteristicsAsProto(const hidl_vec<KeyParameter>& keyParams, in uploadKeyCharacteristicsAsProto() argument 77 checkEnforcedCharacteristics(keyParams, &keyConfig); in uploadKeyCharacteristicsAsProto()
|
D | legacy_keymaster_device_wrapper.cpp | 69 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet() argument 70 params = new keymaster_key_param_t[keyParams.size()]; in KmParamSet() 71 length = keyParams.size(); in KmParamSet() 72 for (size_t i = 0; i < keyParams.size(); ++i) { in KmParamSet() 73 auto tag = legacy_enum_conversion(keyParams[i].tag); in KmParamSet() 77 params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in KmParamSet() 81 params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in KmParamSet() 85 params[i] = keymaster_param_long(tag, keyParams[i].f.longInteger); in KmParamSet() 88 params[i] = keymaster_param_date(tag, keyParams[i].f.dateTime); in KmParamSet() 91 if (keyParams[i].f.boolValue) in KmParamSet() [all …]
|
D | keymaster_worker.cpp | 787 void KeymasterWorker::generateKey(LockedKeyBlobEntry lockedEntry, hidl_vec<KeyParameter> keyParams, in generateKey() argument 789 Worker::addRequest([this, CAPTURE_MOVE(lockedEntry), CAPTURE_MOVE(keyParams), in generateKey() 804 [&] { uploadKeyCharacteristicsAsProto(keyParams, false /* wasCreationSuccessful */); }); in generateKey() 822 if (isAuthenticationBound(keyParams) && !keyBlob.isCriticalToDeviceEncryption()) { in generateKey() 827 AuthorizationSet sw_enforced = keyParams; in generateKey() 843 keymasterDevice_->generateKey(keyParams, hidl_cb)); in generateKey() 854 for (auto& param : keyParams) { in generateKey() 862 fallback->generateKey(std::move(lockedEntry), std::move(keyParams), std::move(entropy), in generateKey() 873 uploadKeyCharacteristicsAsProto(keyParams, true /* wasCreationSuccessful */); in generateKey() 879 void KeymasterWorker::generateKey(hidl_vec<KeyParameter> keyParams, generateKey2_cb worker_cb) { in generateKey() argument [all …]
|
D | key_proto_handler.h | 24 void uploadKeyCharacteristicsAsProto(const hidl_vec<KeyParameter>& keyParams,
|
D | legacy_keymaster_device_wrapper.h | 52 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
|
D | keymaster_worker.h | 244 void generateKey(LockedKeyBlobEntry, hidl_vec<KeyParameter> keyParams, 248 void generateKey(hidl_vec<KeyParameter> keyParams, generateKey2_cb _hidl_cb);
|
/system/core/trusty/keymaster/3.0/ |
D | TrustyKeymaster3Device.cpp | 75 KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet() argument 76 params = new keymaster_key_param_t[keyParams.size()]; in KmParamSet() 77 length = keyParams.size(); in KmParamSet() 78 for (size_t i = 0; i < keyParams.size(); ++i) { in KmParamSet() 79 auto tag = legacy_enum_conversion(keyParams[i].tag); in KmParamSet() 83 params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in KmParamSet() 87 params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in KmParamSet() 91 params[i] = keymaster_param_long(tag, keyParams[i].f.longInteger); in KmParamSet() 94 params[i] = keymaster_param_date(tag, keyParams[i].f.dateTime); in KmParamSet() 97 if (keyParams[i].f.boolValue) in KmParamSet() [all …]
|
/system/keymaster/ng/ |
D | AndroidKeymaster3Device.cpp | 88 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet() argument 89 params = new keymaster_key_param_t[keyParams.size()]; in KmParamSet() 90 length = keyParams.size(); in KmParamSet() 91 for (size_t i = 0; i < keyParams.size(); ++i) { in KmParamSet() 92 auto tag = legacy_enum_conversion(keyParams[i].tag); in KmParamSet() 96 params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in KmParamSet() 100 params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in KmParamSet() 104 params[i] = keymaster_param_long(tag, keyParams[i].f.longInteger); in KmParamSet() 107 params[i] = keymaster_param_date(tag, keyParams[i].f.dateTime); in KmParamSet() 110 if (keyParams[i].f.boolValue) in KmParamSet() [all …]
|
D | AndroidKeymaster4Device.cpp | 78 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) in KmParamSet() argument 79 : keymaster_key_param_set_t(hidlKeyParams2Km(keyParams)) {} in KmParamSet() 177 keymaster_key_param_set_t hidlKeyParams2Km(const hidl_vec<KeyParameter>& keyParams) { in hidlKeyParams2Km() argument 180 set.params = new keymaster_key_param_t[keyParams.size()]; in hidlKeyParams2Km() 181 set.length = keyParams.size(); in hidlKeyParams2Km() 183 for (size_t i = 0; i < keyParams.size(); ++i) { in hidlKeyParams2Km() 184 auto tag = legacy_enum_conversion(keyParams[i].tag); in hidlKeyParams2Km() 188 set.params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in hidlKeyParams2Km() 192 set.params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in hidlKeyParams2Km() 196 set.params[i] = keymaster_param_long(tag, keyParams[i].f.longInteger); in hidlKeyParams2Km() [all …]
|
/system/core/trusty/keymaster/4.0/ |
D | TrustyKeymaster4Device.cpp | 95 std::vector<KeyParameter> keyParams(keyParamsBase); in injectAuthToken() local 119 keyParams.push_back(p); in injectAuthToken() 122 return hidl_vec<KeyParameter>(std::move(keyParams)); in injectAuthToken() 127 KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet() argument 128 params = new keymaster_key_param_t[keyParams.size()]; in KmParamSet() 129 length = keyParams.size(); in KmParamSet() 130 for (size_t i = 0; i < keyParams.size(); ++i) { in KmParamSet() 131 auto tag = legacy_enum_conversion(keyParams[i].tag); in KmParamSet() 135 params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in KmParamSet() 139 params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in KmParamSet() [all …]
|
/system/vold/ |
D | KeyStorage.cpp | 231 km::KeyPurpose purpose, const km::AuthorizationSet& keyParams, in begin() argument 238 km::AuthorizationSet inParams(keyParams); in begin() 248 if (!keymaster.upgradeKey(kmKey, keyParams, &newKey)) return KeymasterOperation(); in begin() 270 const km::AuthorizationSet& keyParams, in encryptWithKeymasterKey() argument 275 auto opHandle = begin(keymaster, dir, km::KeyPurpose::ENCRYPT, keyParams, opParams, authToken, in encryptWithKeymasterKey() 298 const km::AuthorizationSet& keyParams, in decryptWithKeymasterKey() argument 306 auto opHandle = begin(keymaster, dir, km::KeyPurpose::DECRYPT, keyParams, opParams, authToken, in decryptWithKeymasterKey() 510 km::AuthorizationSet keyParams; in storeKey() local 512 std::tie(keyParams, authToken) = beginParams(auth, appId); in storeKey() 513 if (!encryptWithKeymasterKey(keymaster, dir, keyParams, authToken, key, &encryptedKey, in storeKey() [all …]
|
D | Keymaster.cpp | 278 static km::AuthorizationSet keyParams(uint32_t rsa_key_size, uint64_t rsa_exponent, in keyParams() function 300 if (!dev.generateKey(keyParams(rsa_key_size, rsa_exponent, ratelimit), &key)) return -1; in keymaster_create_key_for_cryptfs_scrypt() 319 if (!dev.upgradeKey(old_key, keyParams(rsa_key_size, rsa_exponent, ratelimit), &new_key)) in keymaster_upgrade_key_for_cryptfs_scrypt()
|
/system/keymaster/ng/include/ |
D | AndroidKeymaster4Device.h | 64 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, 110 keymaster_key_param_set_t hidlKeyParams2Km(const hidl_vec<KeyParameter>& keyParams);
|
D | AndroidKeymaster41Device.h | 96 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() argument 98 return super::generateKey(keyParams, _hidl_cb); in generateKey()
|
D | AndroidKeymaster3Device.h | 64 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
|
/system/core/trusty/keymaster/include/trusty_keymaster/ |
D | TrustyKeymaster3Device.h | 49 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
|
D | TrustyKeymaster4Device.h | 60 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
|