/system/security/keystore2/src/km_compat/ |
D | lib.rs | 34 KeyFormat::KeyFormat, KeyOrigin::KeyOrigin, KeyParameter::KeyParameter, 74 fn generate_key(legacy: &dyn IKeyMintDevice, kps: Vec<KeyParameter>) -> KeyCreationResult { in generate_key() 87 KeyParameter { in generate_rsa_key() 91 KeyParameter { tag: Tag::KEY_SIZE, value: KeyParameterValue::Integer(2048) }, in generate_rsa_key() 92 KeyParameter { in generate_rsa_key() 96 KeyParameter { tag: Tag::DIGEST, value: KeyParameterValue::Digest(Digest::SHA_2_256) }, in generate_rsa_key() 97 KeyParameter { in generate_rsa_key() 101 KeyParameter { tag: Tag::NO_AUTH_REQUIRED, value: KeyParameterValue::BoolValue(true) }, in generate_rsa_key() 102 KeyParameter { in generate_rsa_key() 106 KeyParameter { in generate_rsa_key() [all …]
|
D | km_compat.h | 39 using ::aidl::android::hardware::security::keymint::KeyParameter; 91 ScopedAStatus generateKey(const std::vector<KeyParameter>& in_keyParams, 94 ScopedAStatus importKey(const std::vector<KeyParameter>& in_inKeyParams, 101 const std::vector<KeyParameter>& in_inUnwrappingParams, 105 const std::vector<KeyParameter>& in_inUpgradeParams, 111 const std::vector<KeyParameter>& in_inParams, 129 getCertificate(const std::vector<KeyParameter>& keyParams, const std::vector<uint8_t>& keyBlob); 134 std::optional<KMV1_ErrorCode> signCertificate(const std::vector<KeyParameter>& keyParams,
|
/system/keymaster/ng/ |
D | KeyMintUtils.cpp | 28 KeyParameter kmEnumParam2Aidl(const keymaster_key_param_t& param) { in kmEnumParam2Aidl() 31 return KeyParameter{Tag::PURPOSE, KeyParameterValue::make<KeyParameterValue::keyPurpose>( in kmEnumParam2Aidl() 34 return KeyParameter{Tag::ALGORITHM, KeyParameterValue::make<KeyParameterValue::algorithm>( in kmEnumParam2Aidl() 37 return KeyParameter{Tag::BLOCK_MODE, KeyParameterValue::make<KeyParameterValue::blockMode>( in kmEnumParam2Aidl() 40 return KeyParameter{Tag::DIGEST, KeyParameterValue::make<KeyParameterValue::digest>( in kmEnumParam2Aidl() 43 return KeyParameter{Tag::PADDING, KeyParameterValue::make<KeyParameterValue::paddingMode>( in kmEnumParam2Aidl() 46 return KeyParameter{Tag::EC_CURVE, KeyParameterValue::make<KeyParameterValue::ecCurve>( in kmEnumParam2Aidl() 49 return KeyParameter{Tag::USER_AUTH_TYPE, in kmEnumParam2Aidl() 53 return KeyParameter{Tag::ORIGIN, KeyParameterValue::make<KeyParameterValue::origin>( in kmEnumParam2Aidl() 58 return KeyParameter{Tag::INVALID, false}; in kmEnumParam2Aidl() [all …]
|
D | AndroidKeymaster3Device.cpp | 87 explicit KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet() 166 static inline hidl_vec<KeyParameter> kmParamSet2Hidl(const keymaster_key_param_set_t& set) { in kmParamSet2Hidl() 167 hidl_vec<KeyParameter> result; in kmParamSet2Hidl() 277 Return<void> AndroidKeymaster3Device::generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() 316 Return<void> AndroidKeymaster3Device::importKey(const hidl_vec<KeyParameter>& params, in importKey() 361 const hidl_vec<KeyParameter>& attestParams, in attestKey() 379 const hidl_vec<KeyParameter>& upgradeParams, in upgradeKey() 423 const hidl_vec<KeyParameter>& inParams, in begin() 434 hidl_vec<KeyParameter> resultParams; in begin() 444 const hidl_vec<KeyParameter>& inParams, in update() [all …]
|
/system/security/ondevice-signing/ |
D | KeystoreHmacKey.cpp | 36 using android::hardware::security::keymint::KeyParameter; 69 std::vector<KeyParameter> params; in createKey() 71 KeyParameter algo; in createKey() 76 KeyParameter key_size; in createKey() 81 KeyParameter min_mac_length; in createKey() 86 KeyParameter digest; in createKey() 91 KeyParameter purposeSign; in createKey() 96 KeyParameter purposeVerify; in createKey() 102 KeyParameter auth; in createKey() 107 KeyParameter boot_level; in createKey() [all …]
|
D | KeystoreKey.cpp | 38 using android::hardware::security::keymint::KeyParameter; 76 std::vector<KeyParameter> params; in createKey() 78 KeyParameter algo; in createKey() 83 KeyParameter key_size; in createKey() 88 KeyParameter digest; in createKey() 93 KeyParameter padding; in createKey() 99 KeyParameter exponent; in createKey() 104 KeyParameter purpose; in createKey() 109 KeyParameter auth; in createKey() 114 KeyParameter boot_level; in createKey() [all …]
|
/system/keymaster/ng/include/ |
D | AndroidKeymaster4Device.h | 45 using ::android::hardware::keymaster::V4_0::KeyParameter; 62 const hidl_vec<KeyParameter>& parametersToVerify, 66 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, 72 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, 77 const hidl_vec<KeyParameter>& unwrappingParams, 84 const hidl_vec<KeyParameter>& attestParams, 87 const hidl_vec<KeyParameter>& upgradeParams, 93 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken, 95 Return<void> update(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, 98 Return<void> finish(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, [all …]
|
D | authorization_set.h | 45 explicit AuthorizationSet(const hidl_vec<KeyParameter>& other) { *this = other; } in AuthorizationSet() 60 AuthorizationSet& operator=(const hidl_vec<KeyParameter>& other) { 92 const KeyParameter* data() const { return data_.data(); } in data() 131 std::vector<KeyParameter>::const_iterator begin() const { return data_.begin(); } in begin() 136 std::vector<KeyParameter>::const_iterator end() const { return data_.end(); } in end() 143 KeyParameter& operator[](int n); 150 const KeyParameter& operator[](int n) const; 177 void push_back(const KeyParameter& param) { data_.push_back(param); } in push_back() 178 void push_back(KeyParameter&& param) { data_.push_back(std::move(param)); } in push_back() 196 hidl_vec<KeyParameter> hidl_data() const { in hidl_data() [all …]
|
D | AndroidKeymaster3Device.h | 44 using ::android::hardware::keymaster::V3_0::KeyParameter; 63 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, 69 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, 75 const hidl_vec<KeyParameter>& attestParams, 78 const hidl_vec<KeyParameter>& upgradeParams, 84 const hidl_vec<KeyParameter>& inParams, begin_cb _hidl_cb) override; 85 Return<void> update(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, 87 Return<void> finish(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams,
|
D | AndroidKeymaster41Device.h | 43 using ::android::hardware::keymaster::V4_0::KeyParameter; 87 const hidl_vec<KeyParameter>& parametersToVerify, in verifyAuthorization() 97 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() 109 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, in importKey() 118 const hidl_vec<KeyParameter>& unwrappingParams, in importWrappedKey() 132 const hidl_vec<KeyParameter>& attestParams, in attestKey() 138 const hidl_vec<KeyParameter>& upgradeParams, in upgradeKey() 152 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken, in begin() 157 Return<void> update(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, in update() 165 Return<void> finish(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, in finish()
|
D | AndroidKeyMintDevice.h | 44 ScopedAStatus generateKey(const vector<KeyParameter>& keyParams, 48 ScopedAStatus importKey(const vector<KeyParameter>& keyParams, KeyFormat keyFormat, 56 const vector<KeyParameter>& unwrappingParams, 61 const vector<KeyParameter>& upgradeParams, 69 const vector<KeyParameter>& params,
|
D | keymaster_tags.h | 80 using ::android::hardware::keymaster::V3_0::KeyParameter; 199 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ 202 inline auto accessTagValue(TypedTag<tag_type, tag>, const KeyParameter& param) \ 207 inline auto accessTagValue(TypedTag<tag_type, tag>, KeyParameter& param) \ 223 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ in MAKE_TAG_VALUE_ACCESSOR() 225 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \ 229 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \ 246 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) { 247 KeyParameter param; 255 template <Tag tag> inline KeyParameter makeKeyParameter(TypedTag<TagType::BOOL, tag>) { in makeKeyParameter() [all …]
|
/system/security/keystore/include/keystore/ |
D | KeymasterArguments.h | 30 KeymasterArguments(hardware::hidl_vec<::keystore::KeyParameter>&& other); 31 explicit KeymasterArguments(const hardware::hidl_vec<::keystore::KeyParameter>& other); 36 const inline hardware::hidl_vec<::keystore::KeyParameter>& getParameters() const { in getParameters() 41 hardware::hidl_vec<::keystore::KeyParameter> data_;
|
/system/core/trusty/keymaster/include/trusty_keymaster/ |
D | TrustyKeymaster3Device.h | 39 using ::android::hardware::keymaster::V3_0::KeyParameter; 49 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, 55 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, 61 const hidl_vec<KeyParameter>& attestParams, 64 const hidl_vec<KeyParameter>& upgradeParams, 70 const hidl_vec<KeyParameter>& inParams, begin_cb _hidl_cb) override; 71 Return<void> update(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, 73 Return<void> finish(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams,
|
D | TrustyKeymaster4Device.h | 40 using ::android::hardware::keymaster::V4_0::KeyParameter; 56 const hidl_vec<KeyParameter>& parametersToVerify, 60 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, 66 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, 71 const hidl_vec<KeyParameter>& unwrappingParams, 78 const hidl_vec<KeyParameter>& attestParams, 81 const hidl_vec<KeyParameter>& upgradeParams, 87 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken, 89 Return<void> update(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams, 92 Return<void> finish(uint64_t operationHandle, const hidl_vec<KeyParameter>& inParams,
|
D | TrustyKeyMintDevice.h | 43 ScopedAStatus generateKey(const vector<KeyParameter>& keyParams, 52 ScopedAStatus importKey(const vector<KeyParameter>& keyParams, KeyFormat keyFormat, 60 const vector<KeyParameter>& unwrappingParams, 65 const vector<KeyParameter>& upgradeParams, 73 const vector<KeyParameter>& params,
|
/system/hardware/interfaces/keystore2/aidl/android/system/keystore2/ |
D | IKeystoreSecurityLevel.aidl | 19 import android.hardware.security.keymint.KeyParameter; 89 in KeyParameter[] operationParameters, in boolean forced); in createOperation() 134 in KeyParameter[] params, in int flags, in byte[] entropy); in generateKey() 148 in KeyParameter[] params, in int flags, in byte[] keyData); in importKey() 177 in @nullable byte[] maskingKey, in KeyParameter[] params, in importWrappedKey()
|
D | KeyParameters.aidl | 19 import android.hardware.security.keymint.KeyParameter; 24 KeyParameter[] keyParameter;
|
D | Authorization.aidl | 19 import android.hardware.security.keymint.KeyParameter; 26 KeyParameter keyParameter;
|
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/current/android/system/keystore2/ |
D | IKeystoreSecurityLevel.aidl | 38 …tem.keystore2.KeyDescriptor key, in android.hardware.security.keymint.KeyParameter[] operationPara… in createOperation() 39 …e2.KeyDescriptor attestationKey, in android.hardware.security.keymint.KeyParameter[] params, in in… in generateKey() 40 …e2.KeyDescriptor attestationKey, in android.hardware.security.keymint.KeyParameter[] params, in in… in importKey() 41 … in @nullable byte[] maskingKey, in android.hardware.security.keymint.KeyParameter[] params, in an… in importWrappedKey()
|
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/1/android/system/keystore2/ |
D | IKeystoreSecurityLevel.aidl | 38 …tem.keystore2.KeyDescriptor key, in android.hardware.security.keymint.KeyParameter[] operationPara… in createOperation() 39 …e2.KeyDescriptor attestationKey, in android.hardware.security.keymint.KeyParameter[] params, in in… in generateKey() 40 …e2.KeyDescriptor attestationKey, in android.hardware.security.keymint.KeyParameter[] params, in in… in importKey() 41 … in @nullable byte[] maskingKey, in android.hardware.security.keymint.KeyParameter[] params, in an… in importWrappedKey()
|
/system/security/keystore2/aidl/android/security/attestationmanager/ |
D | IAttestationManager.aidl | 20 import android.hardware.security.keymint.KeyParameter; 34 in KeyParameter[] deviceIdentifiers, boolean useIndividualAttestation, in attestDevice()
|
/system/core/trusty/keymaster/4.0/ |
D | TrustyKeymaster4Device.cpp | 93 inline hidl_vec<KeyParameter> injectAuthToken(const hidl_vec<KeyParameter>& keyParamsBase, in injectAuthToken() 95 std::vector<KeyParameter> keyParams(keyParamsBase); in injectAuthToken() 105 KeyParameter p; in injectAuthToken() 122 return hidl_vec<KeyParameter>(std::move(keyParams)); in injectAuthToken() 127 KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet() 207 static inline hidl_vec<KeyParameter> kmParamSet2Hidl(const keymaster_key_param_set_t& set) { in kmParamSet2Hidl() 208 hidl_vec<KeyParameter> result; in kmParamSet2Hidl() 310 uint64_t challenge, const hidl_vec<KeyParameter>& parametersToVerify, in verifyAuthorization() 348 Return<void> TrustyKeymaster4Device::generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() 387 Return<void> TrustyKeymaster4Device::importKey(const hidl_vec<KeyParameter>& params, in importKey() [all …]
|
/system/security/keystore2/src/ |
D | security_level.rs | 24 use crate::key_parameter::KeyParameter as KsKeyParam; 48 KeyMintHardwareInfo::KeyMintHardwareInfo, KeyParameter::KeyParameter, 209 operation_parameters: &[KeyParameter], in create_operation() argument 290 let op_params: Vec<KeyParameter> = in create_operation() 351 let op_params: Vec<KeyParameter> = operation_parameters.to_vec(); in create_operation() 392 params: &[KeyParameter], in add_certificate_parameters() argument 394 ) -> Result<Vec<KeyParameter>> { in add_certificate_parameters() argument 411 result.push(KeyParameter { in add_certificate_parameters() 425 result.push(KeyParameter{ in add_certificate_parameters() 444 Some(KeyParameter { tag: _, value: KeyParameterValue::Algorithm(Algorithm::RSA) }) in add_certificate_parameters() [all …]
|
/system/core/trusty/keymaster/3.0/ |
D | TrustyKeymaster3Device.cpp | 75 KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet() 155 static inline hidl_vec<KeyParameter> kmParamSet2Hidl(const keymaster_key_param_set_t& set) { in kmParamSet2Hidl() 156 hidl_vec<KeyParameter> result; in kmParamSet2Hidl() 233 Return<void> TrustyKeymaster3Device::generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() 272 Return<void> TrustyKeymaster3Device::importKey(const hidl_vec<KeyParameter>& params, in importKey() 317 const hidl_vec<KeyParameter>& attestParams, in attestKey() 335 const hidl_vec<KeyParameter>& upgradeParams, in upgradeKey() 375 const hidl_vec<KeyParameter>& inParams, in begin() 385 hidl_vec<KeyParameter> resultParams(impl_->message_version()); in begin() 395 const hidl_vec<KeyParameter>& inParams, in update() [all …]
|