Home
last modified time | relevance | path

Searched refs:KeyPurpose (Results 1 – 25 of 47) sorted by relevance

12

/system/security/keystore/tests/
Dauth_token_table_test.cpp104 (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/
Dmetrics_store.rs28 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 …]
Denforcements.rs28 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()
Dboot_level_keys.rs24 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()
Dkey_parameter.rs103 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()
Draw_device.rs30 KeyCreationResult::KeyCreationResult, KeyParameter::KeyParameter, KeyPurpose::KeyPurpose,
308 purpose: KeyPurpose, in use_key_in_one_step() argument
Doperation.rs133 IKeyMintOperation::IKeyMintOperation, KeyParameter::KeyParameter, KeyPurpose::KeyPurpose,
186 purpose: KeyPurpose,
195 purpose: KeyPurpose, in new() argument
/system/security/keystore2/src/km_compat/
Dlib.rs35 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()
Dcertificate_test.cpp105 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()
Dslot_test.cpp32 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()
Dparameter_conversion_test.cpp26 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()
Dkm_compat_type_conversion.h180 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/
DVtsHalWifiKeystoreV1_0TargetTest.cpp47 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/
Dkeystore_utils.cpp110 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/
DKeystoreHmacKey.cpp38 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()
DKeystoreKey.cpp40 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/
Dauthorization_set.h304 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()
DAndroidKeymaster3Device.h45 using ::android::hardware::keymaster::V3_0::KeyPurpose;
83 Return<void> begin(KeyPurpose purpose, const hidl_vec<uint8_t>& key,
DAndroidKeymaster4Device.h46 using ::android::hardware::keymaster::V4_0::KeyPurpose;
92 Return<void> begin(KeyPurpose purpose, const hidl_vec<uint8_t>& key,
DAndroidKeymaster41Device.h44 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/
DTrustyKeymaster3Device.h40 using ::android::hardware::keymaster::V3_0::KeyPurpose;
69 Return<void> begin(KeyPurpose purpose, const hidl_vec<uint8_t>& key,
DTrustyKeymaster4Device.h41 using ::android::hardware::keymaster::V4_0::KeyPurpose;
86 Return<void> begin(KeyPurpose purpose, const hidl_vec<uint8_t>& key,
DTrustyKeyMintDevice.h72 ScopedAStatus begin(KeyPurpose purpose, const vector<uint8_t>& keyBlob,
/system/security/keystore/include/keystore/
Dkeystore_client.h81 virtual bool oneShotOperation(KeyPurpose purpose, const std::string& key_name,
142 beginOperation(KeyPurpose purpose, const std::string& key_name,
Dkeystore_client_impl.h43 bool oneShotOperation(KeyPurpose purpose, const std::string& key_name,
67 KeyStoreNativeReturnCode beginOperation(KeyPurpose purpose, const std::string& key_name,

12