/system/security/keystore2/src/legacy_blob/test_utils/ |
D | legacy_blob_test_vectors.rs | 15 use crate::key_parameter::{KeyParameter, KeyParameterValue}; 38 KeyParameter::new(KeyParameterValue::KeyPurpose(KeyPurpose::SIGN), SecurityLevel::KEYSTORE), in structured_test_params() 39 KeyParameter::new( in structured_test_params() 43 KeyParameter::new(KeyParameterValue::Digest(Digest::SHA_2_256), SecurityLevel::KEYSTORE), in structured_test_params() 44 KeyParameter::new( in structured_test_params() 48 KeyParameter::new(KeyParameterValue::Algorithm(Algorithm::EC), SecurityLevel::KEYSTORE), in structured_test_params() 49 KeyParameter::new(KeyParameterValue::KeySize(256), SecurityLevel::KEYSTORE), in structured_test_params() 50 KeyParameter::new(KeyParameterValue::EcCurve(EcCurve::P_256), SecurityLevel::KEYSTORE), in structured_test_params() 51 KeyParameter::new( in structured_test_params() 55 KeyParameter::new( in structured_test_params() [all …]
|
/system/security/keystore2/test_utils/ |
D | authorizations.rs | 21 KeyParameter::KeyParameter, KeyParameterValue::KeyParameterValue, KeyPurpose::KeyPurpose, 27 pub struct AuthSetBuilder(Vec<KeyParameter>); 43 self.0.push(KeyParameter { tag: Tag::PURPOSE, value: KeyParameterValue::KeyPurpose(p) }); in purpose() 49 self.0.push(KeyParameter { tag: Tag::DIGEST, value: KeyParameterValue::Digest(d) }); in digest() 55 self.0.push(KeyParameter { tag: Tag::ALGORITHM, value: KeyParameterValue::Algorithm(a) }); in algorithm() 61 self.0.push(KeyParameter { tag: Tag::EC_CURVE, value: KeyParameterValue::EcCurve(e) }); in ec_curve() 67 self.0.push(KeyParameter { in attestation_challenge() 76 self.0.push(KeyParameter { in no_auth_required() 85 self.0.push(KeyParameter { in rsa_public_exponent() 94 self.0.push(KeyParameter { tag: Tag::KEY_SIZE, value: KeyParameterValue::Integer(s) }); in key_size() [all …]
|
D | key_generations.rs | 22 KeyOrigin::KeyOrigin, KeyParameter::KeyParameter, KeyParameterValue::KeyParameterValue, 678 pub fn check_key_param(authorizations: &[Authorization], key_param: KeyParameter) -> bool { in check_key_param() 711 KeyParameter { tag: Tag::ALGORITHM, value: KeyParameterValue::Algorithm(Algorithm::RSA) } in import_rsa_2048_key() 716 KeyParameter { tag: Tag::KEY_SIZE, value: KeyParameterValue::Integer(2048) } in import_rsa_2048_key() 721 KeyParameter { tag: Tag::DIGEST, value: KeyParameterValue::Digest(Digest::SHA_2_256) } in import_rsa_2048_key() 726 KeyParameter { in import_rsa_2048_key() 734 KeyParameter { in import_rsa_2048_key() 742 KeyParameter { tag: Tag::ORIGIN, value: KeyParameterValue::Origin(KeyOrigin::IMPORTED) } in import_rsa_2048_key() 771 KeyParameter { tag: Tag::ALGORITHM, value: KeyParameterValue::Algorithm(Algorithm::EC) } in import_ec_p_256_key() 776 KeyParameter { tag: Tag::EC_CURVE, value: KeyParameterValue::EcCurve(EcCurve::P_256) } in import_ec_p_256_key() [all …]
|
/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 …]
|
/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() 44 return KeyParameter{Tag::RSA_OAEP_MGF_DIGEST, in kmEnumParam2Aidl() 49 return KeyParameter{Tag::PADDING, KeyParameterValue::make<KeyParameterValue::paddingMode>( in kmEnumParam2Aidl() 52 return KeyParameter{Tag::EC_CURVE, KeyParameterValue::make<KeyParameterValue::ecCurve>( in kmEnumParam2Aidl() 55 return KeyParameter{Tag::USER_AUTH_TYPE, in kmEnumParam2Aidl() 59 return KeyParameter{Tag::ORIGIN, KeyParameterValue::make<KeyParameterValue::origin>( in kmEnumParam2Aidl() [all …]
|
/system/security/ondevice-signing/ |
D | KeystoreHmacKey.cpp | 36 using android::hardware::security::keymint::KeyParameter; 66 std::vector<KeyParameter> params; in createKey() 68 KeyParameter algo; in createKey() 73 KeyParameter key_size; in createKey() 78 KeyParameter min_mac_length; in createKey() 83 KeyParameter digest; in createKey() 88 KeyParameter purposeSign; in createKey() 93 KeyParameter purposeVerify; in createKey() 99 KeyParameter auth; in createKey() 104 KeyParameter boot_level; in createKey() [all …]
|
D | KeystoreKey.cpp | 38 using android::hardware::security::keymint::KeyParameter; 73 std::vector<KeyParameter> params; in createKey() 75 KeyParameter algo; in createKey() 80 KeyParameter key_size; in createKey() 85 KeyParameter digest; in createKey() 90 KeyParameter padding; in createKey() 96 KeyParameter exponent; in createKey() 101 KeyParameter purpose; in createKey() 106 KeyParameter auth; in createKey() 111 KeyParameter boot_level; in createKey() [all …]
|
/system/security/keystore2/src/ |
D | km_compat.rs | 27 KeyMintHardwareInfo::KeyMintHardwareInfo, KeyParameter::KeyParameter, 71 fn emulation_required(&self, params: &[KeyParameter], import_data: &KeyImportData) -> bool; in emulation_required() argument 205 key_params: &[KeyParameter], in generateKey() argument 218 key_params: &[KeyParameter], in importKey() argument 237 unwrapping_params: &[KeyParameter], in importWrappedKey() argument 258 upgrade_params: &[KeyParameter], in upgradeKey() argument 283 params: &[KeyParameter], in begin() argument 330 fn emulation_required(&self, params: &[KeyParameter], _import_data: &KeyImportData) -> bool { in emulation_required() argument 372 fn emulation_required(&self, params: &[KeyParameter], import_data: &KeyImportData) -> bool { in emulation_required() argument 430 KeyParameter { in test_keymintv1_emulation_required() [all …]
|
D | remote_provisioning.rs | 24 KeyParameter::KeyParameter, KeyParameterValue::KeyParameterValue, SecurityLevel::SecurityLevel, 71 fn is_asymmetric_key(&self, params: &[KeyParameter]) -> bool { in is_asymmetric_key() 75 KeyParameter { in is_asymmetric_key() 78 } | KeyParameter { in is_asymmetric_key() 91 params: &[KeyParameter], in get_rkpd_attestation_key_and_certs() argument
|
/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 | 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 | 45 ScopedAStatus generateKey(const vector<KeyParameter>& keyParams, 49 ScopedAStatus importKey(const vector<KeyParameter>& keyParams, KeyFormat keyFormat, 57 const vector<KeyParameter>& unwrappingParams, 62 const vector<KeyParameter>& upgradeParams, 70 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/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 | 44 ScopedAStatus generateKey(const vector<KeyParameter>& keyParams, 53 ScopedAStatus importKey(const vector<KeyParameter>& keyParams, KeyFormat keyFormat, 61 const vector<KeyParameter>& unwrappingParams, 66 const vector<KeyParameter>& upgradeParams, 74 const vector<KeyParameter>& params,
|
/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/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() 138 in KeyParameter[] params, in int flags, in byte[] entropy); in generateKey() 152 in KeyParameter[] params, in int flags, in byte[] keyData); in importKey() 181 in @nullable byte[] maskingKey, in KeyParameter[] params, in importWrappedKey()
|
D | KeyParameters.aidl | 19 import android.hardware.security.keymint.KeyParameter; 24 KeyParameter[] keyParameter;
|
/system/hardware/interfaces/keystore2/aidl/aidl_api/android.system.keystore2/3/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/2/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/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/core/trusty/keymaster/4.0/ |
D | TrustyKeymaster4Device.cpp | 94 inline hidl_vec<KeyParameter> injectAuthToken(const hidl_vec<KeyParameter>& keyParamsBase, in injectAuthToken() 96 std::vector<KeyParameter> keyParams(keyParamsBase); in injectAuthToken() 106 KeyParameter p; in injectAuthToken() 123 return hidl_vec<KeyParameter>(std::move(keyParams)); in injectAuthToken() 128 KmParamSet(const hidl_vec<KeyParameter>& keyParams) { in KmParamSet() 208 static inline hidl_vec<KeyParameter> kmParamSet2Hidl(const keymaster_key_param_set_t& set) { in kmParamSet2Hidl() 209 hidl_vec<KeyParameter> result; in kmParamSet2Hidl() 311 uint64_t challenge, const hidl_vec<KeyParameter>& parametersToVerify, in verifyAuthorization() 349 Return<void> TrustyKeymaster4Device::generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() 388 Return<void> TrustyKeymaster4Device::importKey(const hidl_vec<KeyParameter>& params, in importKey() [all …]
|