Home
last modified time | relevance | path

Searched refs:AuthorizationSetBuilder (Results 1 – 22 of 22) sorted by relevance

/system/keymaster/ng/include/
Dauthorization_set.h26 class AuthorizationSetBuilder; variable
220 class AuthorizationSetBuilder: public AuthorizationSet {
223 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization()
229 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization()
238 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization()
243 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
244 AuthorizationSetBuilder& EcdsaKey(uint32_t key_size);
245 AuthorizationSetBuilder& AesKey(uint32_t key_size);
246 AuthorizationSetBuilder& HmacKey(uint32_t key_size);
248 AuthorizationSetBuilder& RsaSigningKey(uint32_t key_size, uint64_t public_exponent);
[all …]
/system/keymaster/include/keymaster/
Dauthorization_set.h29 class AuthorizationSetBuilder; variable
77 explicit AuthorizationSet(/* NOT const */ AuthorizationSetBuilder& builder);
480 class AuthorizationSetBuilder {
483 AuthorizationSetBuilder& Authorization(TagType tag, ValueType value) { in Authorization()
489 AuthorizationSetBuilder& Authorization(TypedTag<KM_BOOL, Tag> tag) { in Authorization()
495 AuthorizationSetBuilder& Authorization(TypedTag<KM_INVALID, Tag> tag) { in Authorization()
503 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const uint8_t* data, in Authorization()
510 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const char* data, in Authorization()
515 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
516 AuthorizationSetBuilder& EcdsaKey(uint32_t key_size);
[all …]
/system/keymaster/tests/
Dauthorization_set_test.cpp68 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
99 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
128 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
148 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
180 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
225 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
273 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
408 AuthorizationSetBuilder builder; in TEST()
429 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
447 AuthorizationSet set1(AuthorizationSetBuilder() in TEST()
[all …]
Dandroid_keymaster_test.cpp119 AuthorizationSet version_info(AuthorizationSetBuilder() in CreateDevice()
153 AuthorizationSet version_info(AuthorizationSetBuilder() in CreateDevice()
188 AuthorizationSet version_info(AuthorizationSetBuilder() in CreateDevice()
250 ASSERT_EQ(KM_ERROR_OK, GenerateKey(AuthorizationSetBuilder() in TEST_P()
285 GenerateKey(AuthorizationSetBuilder() in TEST_P()
295 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(224).Digest(KM_DIGEST_NONE))); in TEST_P()
323 GenerateKey(AuthorizationSetBuilder() in TEST_P()
333 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(190).Digest(KM_DIGEST_NONE))); in TEST_P()
339 GenerateKey(AuthorizationSetBuilder() in TEST_P()
348 EXPECT_EQ(KM_ERROR_OK, GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(size).Digest( in TEST_P()
[all …]
Dkeymaster_enforcement_test.cpp481 AuthorizationSetBuilder().Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY)); in TEST_F()
490 AuthorizationSet auth_set(AuthorizationSetBuilder() in TEST_F()
507 AuthorizationSet auth_set(AuthorizationSetBuilder() in TEST_F()
525 AuthorizationSet no_caller_nonce(AuthorizationSetBuilder() in TEST_F()
529 AuthorizationSet caller_nonce(AuthorizationSetBuilder() in TEST_F()
534 AuthorizationSet begin_params(AuthorizationSetBuilder().Authorization(TAG_NONCE, "foo", 3)); in TEST_F()
552 AuthorizationSet auth_set(AuthorizationSetBuilder() in TEST_F()
565 AuthorizationSet auth_set(AuthorizationSetBuilder() in TEST_F()
583 AuthorizationSet auth_set(AuthorizationSetBuilder() in TEST_F()
606 AuthorizationSet auth_set(AuthorizationSetBuilder() in TEST_F()
[all …]
Dattestation_record_test.cpp68 AuthorizationSet hw_set(AuthorizationSetBuilder() in TEST()
75 AuthorizationSet sw_set(AuthorizationSetBuilder() in TEST()
83 AuthorizationSetBuilder() in TEST()
Dnist_curve_key_exchange_test.cpp44 AuthorizationSetBuilder().Authorization(TAG_EC_CURVE, curve)); in TEST()
82 AuthorizationSetBuilder().Authorization(TAG_EC_CURVE, curve)); in TEST()
114 AuthorizationSetBuilder().Authorization(TAG_EC_CURVE, curve)); in TEST()
Decies_kem_test.cpp45 AuthorizationSet kem_description(AuthorizationSetBuilder() in TEST()
Dwrapped_key_test.cpp77 AuthorizationSet authorization_list = AuthorizationSetBuilder().AesEncryptionKey(256).build(); in TEST()
Dandroid_keymaster_test_utils.cpp194 keymaster_error_t Keymaster2Test::GenerateKey(const AuthorizationSetBuilder& builder) { in GenerateKey()
208 keymaster_error_t Keymaster2Test::ImportKey(const AuthorizationSetBuilder& builder, in ImportKey()
630 ASSERT_EQ(KM_ERROR_OK, ImportKey(AuthorizationSetBuilder() in CheckHmacTestVector()
643 ASSERT_EQ(KM_ERROR_OK, ImportKey(AuthorizationSetBuilder() in CheckAesCtrTestVector()
664 auto authset = AuthorizationSetBuilder() in CheckTripleDesTestVector()
Dandroid_keymaster_test_utils.h186 keymaster_error_t GenerateKey(const AuthorizationSetBuilder& builder);
190 keymaster_error_t ImportKey(const AuthorizationSetBuilder& builder,
/system/security/keystore/
Dkeystore_cli_v2.cpp141 AuthorizationSetBuilder parameters; in GetRSASignParameters()
154 AuthorizationSetBuilder parameters; in GetRSAEncryptParameters()
163 AuthorizationSetBuilder parameters; in GetECDSAParameters()
174 AuthorizationSetBuilder parameters; in GetAESParameters()
189 AuthorizationSetBuilder parameters; in GetHMACParameters()
294 AuthorizationSetBuilder params; in GenerateKey()
407 AuthorizationSetBuilder sign_params; in SignAndVerify()
Dkeystore_client_impl.cpp53 using keystore::AuthorizationSetBuilder;
82 AuthorizationSetBuilder encrypt_params; in encryptWithAuthentication()
100 AuthorizationSetBuilder authenticate_params; in encryptWithAuthentication()
130 AuthorizationSetBuilder authenticate_params; in decryptWithAuthentication()
141 AuthorizationSetBuilder encrypt_params; in decryptWithAuthentication()
477 AuthorizationSetBuilder key_parameters; in createOrVerifyEncryptionKey()
516 AuthorizationSetBuilder key_parameters; in createOrVerifyAuthenticationKey()
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp282 auto wrapping_key_params = AuthorizationSetBuilder() in UnwrapKey()
329 auto transit_key_authorizations = AuthorizationSetBuilder() in UnwrapKey()
339 auto gcm_params = AuthorizationSetBuilder() in UnwrapKey()
383 auto update_params = AuthorizationSetBuilder() in UnwrapKey()
/system/bt/btif/src/
Dbtif_keystore.cc79 AuthorizationSetBuilder params; in GenerateKey()
/system/security/keystore/include/keystore/
Dkeymaster_types.h41 using keymaster::AuthorizationSetBuilder;
/system/keymaster/android_keymaster/
Dkeymaster_configuration.cpp72 AuthorizationSet config_params(AuthorizationSetBuilder() in ConfigureDevice()
Dauthorization_set.cpp37 AuthorizationSet::AuthorizationSet(AuthorizationSetBuilder& builder) { in AuthorizationSet()
/system/vold/
DKeymaster.cpp242 return km::AuthorizationSetBuilder() in keyParams()
306 auto paramBuilder = km::AuthorizationSetBuilder().NoDigestOrPadding(); in keymaster_sign_object_for_cryptfs_scrypt()
DKeyStorage.cpp110 auto paramBuilder = km::AuthorizationSetBuilder() in generateKeymasterKey()
134 auto paramBuilder = km::AuthorizationSetBuilder() in beginParams()
273 auto opParams = km::AuthorizationSetBuilder().Authorization(km::TAG_NONCE, in decryptWithKeymasterKey()
/system/security/keystore/tests/
Dauth_token_table_test.cpp77 AuthorizationSetBuilder builder; in make_set()
282 AuthorizationSetBuilder().Authorization(TAG_NO_AUTH_REQUIRED), KeyPurpose::SIGN, in TEST()
/system/hardware/interfaces/wifi/keystore/1.0/vts/functional/
DVtsHalWifiKeystoreV1_0TargetTest.cpp140 keystore::AuthorizationSetBuilder key_parameters; in generateKey()