/system/security/keystore/tests/ |
D | auth_token_table_test.cpp | 104 (std::tie(rc, found) = table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0), rc)); in TEST() 110 (std::tie(rc, found) = table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0), rc)); in TEST() 116 (std::tie(rc, found) = table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0), rc)); in TEST() 122 (std::tie(rc, found) = table.FindAuthorization(make_set(4), KeyPurpose::SIGN, 0), rc)); in TEST() 128 (std::tie(rc, found) = table.FindAuthorization(make_set(5), KeyPurpose::SIGN, 0), rc)); in TEST() 145 (std::tie(rc, found) = table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0), rc)); in TEST() 148 (std::tie(rc, found) = table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0), rc)); in TEST() 151 (std::tie(rc, found) = table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0), rc)); in TEST() 171 (std::tie(rc, found) = table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0), rc)); in TEST() 174 (std::tie(rc, found) = table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0), rc)); in TEST() [all …]
|
/system/security/keystore2/src/ |
D | metrics_store.rs | 28 KeyParameter::KeyParameter, KeyPurpose::KeyPurpose, PaddingMode::PaddingMode, 278 KsKeyParamValue::KeyPurpose(k) => { in process_key_creation_event_stats() 316 key_purpose: KeyPurpose, in log_key_operation_event_stats() argument 341 key_purpose: KeyPurpose, in process_key_operation_event_stats() argument 365 KeyPurpose::ENCRYPT => MetricsPurpose::ENCRYPT, in process_key_operation_event_stats() 366 KeyPurpose::DECRYPT => MetricsPurpose::DECRYPT, in process_key_operation_event_stats() 367 KeyPurpose::SIGN => MetricsPurpose::SIGN, in process_key_operation_event_stats() 368 KeyPurpose::VERIFY => MetricsPurpose::VERIFY, in process_key_operation_event_stats() 369 KeyPurpose::WRAP_KEY => MetricsPurpose::WRAP_KEY, in process_key_operation_event_stats() 370 KeyPurpose::AGREE_KEY => MetricsPurpose::AGREE_KEY, in process_key_operation_event_stats() [all …]
|
D | enforcements.rs | 28 KeyParameter::KeyParameter as KmKeyParameter, KeyPurpose::KeyPurpose, Tag::Tag, 410 purpose: KeyPurpose, in authorize_create() argument 431 KeyPurpose::SIGN | KeyPurpose::DECRYPT => {} in authorize_create() 433 KeyPurpose::WRAP_KEY => { in authorize_create() 438 KeyPurpose::AGREE_KEY => { in authorize_create() 449 KeyPurpose::VERIFY | KeyPurpose::ENCRYPT => { in authorize_create() 500 KeyParameterValue::KeyPurpose(p) => { in authorize_create() 516 if (purpose == KeyPurpose::ENCRYPT || purpose == KeyPurpose::SIGN) in authorize_create() 524 if (purpose == KeyPurpose::DECRYPT || purpose == KeyPurpose::VERIFY) in authorize_create() 589 if (purpose == KeyPurpose::ENCRYPT || purpose == KeyPurpose::SIGN) in authorize_create()
|
D | boot_level_keys.rs | 24 KeyParameterValue::KeyParameterValue as KmKeyParameterValue, KeyPurpose::KeyPurpose, 61 KeyParameterValue::KeyPurpose(KeyPurpose::SIGN).into(), in get_level_zero_key() 111 KeyPurpose::SIGN, in get_level_zero_key()
|
D | key_parameter.rs | 103 KeyParameterValue::KeyParameterValue as KmKeyParameterValue, KeyPurpose::KeyPurpose, 169 implement_associate_primitive_for_aidl_enum! {KeyPurpose} 786 #[key_param(tag = PURPOSE, field = KeyPurpose)] 787 KeyPurpose(KeyPurpose), 1050 Tag::PURPOSE => return KmKeyParameterValue::KeyPurpose(Default::default()), in get_field_by_tag_type() 1085 | (&KmKeyParameterValue::KeyPurpose(_), KmKeyParameterValue::KeyPurpose(_)) in check_field_matches_tag_type() 1431 KeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT), in test_convert_to_wire_integer() 1437 value: KmKeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT) in test_convert_to_wire_integer() 1485 value: KmKeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT), in test_convert_from_wire_integer() 1487 assert_eq!(KeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT), aidl_kp.into()); in test_convert_from_wire_integer()
|
D | raw_device.rs | 30 KeyCreationResult::KeyCreationResult, KeyParameter::KeyParameter, KeyPurpose::KeyPurpose, 308 purpose: KeyPurpose, in use_key_in_one_step() argument
|
D | operation.rs | 133 IKeyMintOperation::IKeyMintOperation, KeyParameter::KeyParameter, KeyPurpose::KeyPurpose, 186 purpose: KeyPurpose, 195 purpose: KeyPurpose, in new() argument
|
/system/security/keystore2/src/km_compat/ |
D | lib.rs | 35 KeyParameterValue::KeyParameterValue, KeyPurpose::KeyPurpose, PaddingMode::PaddingMode, 104 value: KeyParameterValue::KeyPurpose(KeyPurpose::SIGN), in generate_rsa_key() 118 value: KeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT), in generate_rsa_key() 232 value: KeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT), in generate_aes_key() 236 value: KeyParameterValue::KeyPurpose(KeyPurpose::DECRYPT), in generate_aes_key() 247 purpose: KeyPurpose, in begin() argument 272 let begin_result = begin(legacy.as_ref(), &blob, KeyPurpose::ENCRYPT, None); in test_begin_abort() 285 let begin_result = begin(legacy.as_ref(), &blob, KeyPurpose::ENCRYPT, None); in test_begin_update_finish() 308 begin(legacy.as_ref(), &blob, KeyPurpose::DECRYPT, Some(begin_result.params)); in test_begin_update_finish() 400 value: KeyParameterValue::KeyPurpose(KeyPurpose::SIGN) in test_get_key_characteristics()
|
D | certificate_test.cpp | 105 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::SIGN), in TEST() 120 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::ENCRYPT), in TEST() 131 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::SIGN), in TEST() 148 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::SIGN), in TEST() 162 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::SIGN), in TEST()
|
D | slot_test.cpp | 32 using ::aidl::android::hardware::security::keymint::KeyPurpose; 45 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::ENCRYPT), in generateAESKey() 46 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::DECRYPT), in generateAESKey() 65 auto status = device->begin(KeyPurpose::ENCRYPT, blob, kps, HardwareAuthToken(), &beginResult); in begin() 150 KMV1::makeKeyParameter(KMV1::TAG_PURPOSE, KeyPurpose::SIGN), in TEST()
|
D | parameter_conversion_test.cpp | 26 TEST_ENUM_CONVERSION(KeyPurpose, ENCRYPT); in TEST() 27 TEST_ENUM_CONVERSION(KeyPurpose, DECRYPT); in TEST() 28 TEST_ENUM_CONVERSION(KeyPurpose, SIGN); in TEST() 29 TEST_ENUM_CONVERSION(KeyPurpose, VERIFY); in TEST() 30 TEST_ENUM_CONVERSION(KeyPurpose, WRAP_KEY); in TEST()
|
D | km_compat_type_conversion.h | 180 static std::optional<V4_0::KeyPurpose> convert(KMV1::KeyPurpose p) { in convert() 182 case KMV1::KeyPurpose::ENCRYPT: in convert() 183 return V4_0::KeyPurpose::ENCRYPT; in convert() 184 case KMV1::KeyPurpose::DECRYPT: in convert() 185 return V4_0::KeyPurpose::DECRYPT; in convert() 186 case KMV1::KeyPurpose::SIGN: in convert() 187 return V4_0::KeyPurpose::SIGN; in convert() 188 case KMV1::KeyPurpose::VERIFY: in convert() 189 return V4_0::KeyPurpose::VERIFY; in convert() 190 case KMV1::KeyPurpose::WRAP_KEY: in convert() [all …]
|
/system/hardware/interfaces/wifi/keystore/1.0/vts/functional/ |
D | VtsHalWifiKeystoreV1_0TargetTest.cpp | 47 enum KeyPurpose { enum 147 bool generateKey(std::string keyName, KeyPurpose purpose, bool useWifiNamespace) { in generateKey() 152 if (purpose == KeyPurpose::SIGNING) { in generateKey() 156 if (purpose == KeyPurpose::ENCRYPTION) { in generateKey() 240 bool result = generateKey(kTestKeyName, KeyPurpose::SIGNING, true); in TEST_P() 265 bool result = generateKey(kTestKeyName, KeyPurpose::ENCRYPTION, true); in TEST_P() 289 bool result = generateKey(kTestKeyName, KeyPurpose::SIGNING, true); in TEST_P() 362 bool result = generateKey(kTestKeyName, KeyPurpose::SIGNING, false); in TEST_P() 390 bool result = generateKey(kTestKeyName, KeyPurpose::SIGNING, true); in TEST_P() 464 bool result = generateKey(kTestKeyName, KeyPurpose::SIGNING, false); in TEST_P() [all …]
|
/system/security/keystore/ |
D | keystore_utils.cpp | 110 params->push_back(TAG_PURPOSE, KeyPurpose::SIGN); in add_legacy_key_authorizations() 111 params->push_back(TAG_PURPOSE, KeyPurpose::VERIFY); in add_legacy_key_authorizations() 112 params->push_back(TAG_PURPOSE, KeyPurpose::ENCRYPT); in add_legacy_key_authorizations() 113 params->push_back(TAG_PURPOSE, KeyPurpose::DECRYPT); in add_legacy_key_authorizations()
|
/system/security/ondevice-signing/ |
D | KeystoreHmacKey.cpp | 38 using android::hardware::security::keymint::KeyPurpose; 93 purposeSign.value = KeyParameterValue::make<KeyParameterValue::keyPurpose>(KeyPurpose::SIGN); in createKey() 99 KeyParameterValue::make<KeyParameterValue::keyPurpose>(KeyPurpose::VERIFY); in createKey() 174 purpose.value = KeyParameterValue::make<KeyParameterValue::keyPurpose>(KeyPurpose::VERIFY); in getVerifyOpParameters() 200 purpose.value = KeyParameterValue::make<KeyParameterValue::keyPurpose>(KeyPurpose::SIGN); in getSignOpParameters()
|
D | KeystoreKey.cpp | 40 using android::hardware::security::keymint::KeyPurpose; 106 purpose.value = KeyParameterValue::make<KeyParameterValue::keyPurpose>(KeyPurpose::SIGN); in createKey() 288 purpose.value = KeyParameterValue::make<KeyParameterValue::keyPurpose>(KeyPurpose::SIGN); in getSignOpParameters()
|
/system/keymaster/ng/include/ |
D | authorization_set.h | 304 Authorization(TAG_PURPOSE, KeyPurpose::SIGN); in SigningKey() 305 return Authorization(TAG_PURPOSE, KeyPurpose::VERIFY); in SigningKey() 309 Authorization(TAG_PURPOSE, KeyPurpose::ENCRYPT); in EncryptionKey() 310 return Authorization(TAG_PURPOSE, KeyPurpose::DECRYPT); in EncryptionKey()
|
D | AndroidKeymaster3Device.h | 45 using ::android::hardware::keymaster::V3_0::KeyPurpose; 83 Return<void> begin(KeyPurpose purpose, const hidl_vec<uint8_t>& key,
|
D | AndroidKeymaster4Device.h | 46 using ::android::hardware::keymaster::V4_0::KeyPurpose; 92 Return<void> begin(KeyPurpose purpose, const hidl_vec<uint8_t>& key,
|
D | AndroidKeymaster41Device.h | 44 using ::android::hardware::keymaster::V4_0::KeyPurpose; 151 Return<void> begin(KeyPurpose purpose, const hidl_vec<uint8_t>& key, in begin()
|
/system/core/trusty/keymaster/include/trusty_keymaster/ |
D | TrustyKeymaster3Device.h | 40 using ::android::hardware::keymaster::V3_0::KeyPurpose; 69 Return<void> begin(KeyPurpose purpose, const hidl_vec<uint8_t>& key,
|
D | TrustyKeymaster4Device.h | 41 using ::android::hardware::keymaster::V4_0::KeyPurpose; 86 Return<void> begin(KeyPurpose purpose, const hidl_vec<uint8_t>& key,
|
D | TrustyKeyMintDevice.h | 72 ScopedAStatus begin(KeyPurpose purpose, const vector<uint8_t>& keyBlob,
|
/system/security/keystore/include/keystore/ |
D | keystore_client.h | 81 virtual bool oneShotOperation(KeyPurpose purpose, const std::string& key_name, 142 beginOperation(KeyPurpose purpose, const std::string& key_name,
|
D | keystore_client_impl.h | 43 bool oneShotOperation(KeyPurpose purpose, const std::string& key_name, 67 KeyStoreNativeReturnCode beginOperation(KeyPurpose purpose, const std::string& key_name,
|