Home
last modified time | relevance | path

Searched refs:Authorization (Results 1 – 24 of 24) sorted by relevance

/system/keymaster/tests/
Dauthorization_set_test.cpp30 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST()
31 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_USER_ID, 7), in TEST()
32 Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD), in TEST()
33 Authorization(TAG_APPLICATION_ID, "my_app", 6), Authorization(TAG_KEY_SIZE, 256), in TEST()
34 Authorization(TAG_AUTH_TIMEOUT, 300), in TEST()
42 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST()
43 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_USER_ID, 7), in TEST()
44 Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD), in TEST()
45 Authorization(TAG_APPLICATION_ID, "my_app", 6), Authorization(TAG_KEY_SIZE, 256), in TEST()
46 Authorization(TAG_AUTH_TIMEOUT, 300), in TEST()
[all …]
Dkeymaster_enforcement_test.cpp81 sign_param = Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN); in KeymasterBaseTest()
110 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
111 Authorization(TAG_NO_AUTH_REQUIRED), Authorization(TAG_ACTIVE_DATETIME, future_time), in TEST_F()
126 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_ACTIVE_DATETIME, past_time), in TEST_F()
138 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
139 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F()
154 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
155 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F()
167 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
168 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, future_time), in TEST_F()
[all …]
Dattestation_record_test.cpp72 .Authorization(TAG_OS_VERSION, 60000) in TEST()
73 .Authorization(TAG_OS_PATCHLEVEL, 201512) in TEST()
74 .Authorization(TAG_INCLUDE_UNIQUE_ID)); in TEST()
76 .Authorization(TAG_ACTIVE_DATETIME, 10) in TEST()
77 .Authorization(TAG_CREATION_DATETIME, 10) in TEST()
78 .Authorization(TAG_APPLICATION_ID, "fake_app_id", 11)); in TEST()
84 .Authorization(TAG_ATTESTATION_CHALLENGE, "fake_challenge", 14) in TEST()
85 .Authorization(TAG_ATTESTATION_APPLICATION_ID, "fake_attest_app_id", 18)); in TEST()
Decies_kem_test.cpp46 .Authorization(TAG_EC_CURVE, curve) in TEST()
47 .Authorization(TAG_KDF, KM_KDF_RFC5869_SHA256) in TEST()
48 .Authorization(TAG_ECIES_SINGLE_HASH_MODE) in TEST()
49 .Authorization(TAG_KEY_SIZE, kKeyLen)); in TEST()
Dandroid_keymaster_test.cpp120 .Authorization(TAG_OS_VERSION, kOsVersion) in CreateDevice()
121 .Authorization(TAG_OS_PATCHLEVEL, kOsPatchLevel)); in CreateDevice()
154 .Authorization(TAG_OS_VERSION, kOsVersion) in CreateDevice()
155 .Authorization(TAG_OS_PATCHLEVEL, kOsPatchLevel)); in CreateDevice()
189 .Authorization(TAG_OS_VERSION, kOsVersion) in CreateDevice()
190 .Authorization(TAG_OS_PATCHLEVEL, kOsPatchLevel)); in CreateDevice()
286 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_P()
287 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3) in TEST_P()
324 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_EC) in TEST_P()
341 .Authorization(TAG_EC_CURVE, KM_EC_CURVE_P_256) in TEST_P()
[all …]
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()
Dandroid_keymaster_messages_test.cpp120 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN),
121 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY),
122 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA),
123 Authorization(TAG_USER_ID, 7),
124 Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD),
125 Authorization(TAG_APPLICATION_ID, "app_id", 6),
126 Authorization(TAG_AUTH_TIMEOUT, 300),
216 msg.output_params.push_back(Authorization(TAG_NONCE, "foo", 3)); in TEST()
Dandroid_keymaster_test_utils.cpp632 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector()
645 .Authorization(TAG_BLOCK_MODE, KM_MODE_CTR) in CheckAesCtrTestVector()
646 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector()
666 .Authorization(TAG_BLOCK_MODE, block_mode) in CheckTripleDesTestVector()
668 if (iv.size()) authset.Authorization(TAG_CALLER_NONCE); in CheckTripleDesTestVector()
Dandroid_keymaster_test_utils.h343 Authorization(TAG_APPLICATION_ID, client_id_.data, client_id_.data_length)};
/system/keymaster/ng/include/
Dauthorization_set.h194 push_back(Authorization(tag, std::forward<Value>(val)...)); in push_back()
223 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization() function
229 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization() function
238 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization() function
240 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
259 return Authorization(TAG_DIGEST, digest); in Digest()
263 return Authorization(TAG_PADDING, padding); in Padding()
269 Authorization(TAG_ALGORITHM, Algorithm::RSA); in RsaKey()
270 Authorization(TAG_KEY_SIZE, key_size); in RsaKey()
271 Authorization(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in RsaKey()
[all …]
Dkeymaster_tags.h273 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
/system/keymaster/include/keymaster/
Dauthorization_set.h388 return push_back(Authorization(tag, val)); in push_back()
395 return push_back(Authorization(tag)); in push_back()
427 return push_back(Authorization(tag, val)); in push_back()
432 return push_back(Authorization(tag, bytes, bytes_len)); in push_back()
483 AuthorizationSetBuilder& Authorization(TagType tag, ValueType value) { in Authorization() function
489 AuthorizationSetBuilder& Authorization(TypedTag<KM_BOOL, Tag> tag) { in Authorization() function
495 AuthorizationSetBuilder& Authorization(TypedTag<KM_INVALID, Tag> tag) { in Authorization() function
503 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const uint8_t* data, in Authorization() function
510 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const char* data, in Authorization() function
512 return Authorization(tag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
[all …]
Dkeymaster_tags.h206 inline keymaster_key_param_t Authorization(TypedTag<KM_BOOL, Tag> tag) {
211 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT, Tag> tag, uint32_t value) {
216 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT_REP, Tag> tag, uint32_t value) {
221 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG, Tag> tag, uint64_t value) {
226 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG_REP, Tag> tag, uint64_t value) {
231 inline keymaster_key_param_t Authorization(TypedTag<KM_DATE, Tag> tag, uint64_t value) {
236 inline keymaster_key_param_t Authorization(TypedTag<KM_BYTES, Tag> tag, const void* bytes,
242 inline keymaster_key_param_t Authorization(TypedTag<KM_BYTES, Tag> tag,
248 inline keymaster_key_param_t Authorization(TypedTag<KM_BIGNUM, Tag> tag, const void* bytes,
254 inline keymaster_key_param_t Authorization(TypedTag<KM_BIGNUM, Tag> tag,
[all …]
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp286 .Authorization(TAG_PURPOSE, KM_PURPOSE_WRAP) in UnwrapKey()
332 .Authorization(TAG_BLOCK_MODE, KM_MODE_GCM) in UnwrapKey()
333 .Authorization(TAG_NONCE, iv) in UnwrapKey()
334 .Authorization(TAG_MIN_MAC_LENGTH, 128) in UnwrapKey()
341 .Authorization(TAG_BLOCK_MODE, KM_MODE_GCM) in UnwrapKey()
342 .Authorization(TAG_NONCE, iv) in UnwrapKey()
343 .Authorization(TAG_MAC_LENGTH, 128) in UnwrapKey()
384 .Authorization(TAG_ASSOCIATED_DATA, wrapped_key_description.data, in UnwrapKey()
/system/security/keystore/
Dkeystore_cli_v2.cpp146 .Authorization(TAG_NO_AUTH_REQUIRED); in GetRSASignParameters()
158 .Authorization(TAG_NO_AUTH_REQUIRED); in GetRSAEncryptParameters()
166 .Authorization(TAG_NO_AUTH_REQUIRED); in GetECDSAParameters()
175 parameters.AesEncryptionKey(key_size).Authorization(TAG_NO_AUTH_REQUIRED); in GetAESParameters()
177 parameters.Authorization(TAG_BLOCK_MODE, BlockMode::GCM) in GetAESParameters()
178 .Authorization(TAG_MIN_MAC_LENGTH, 128); in GetAESParameters()
180 parameters.Authorization(TAG_BLOCK_MODE, BlockMode::ECB); in GetAESParameters()
181 parameters.Authorization(TAG_BLOCK_MODE, BlockMode::CBC); in GetAESParameters()
182 parameters.Authorization(TAG_BLOCK_MODE, BlockMode::CTR); in GetAESParameters()
192 .Authorization(TAG_MIN_MAC_LENGTH, 224) in GetHMACParameters()
[all …]
Dkeystore_client_impl.cpp84 encrypt_params.Authorization(TAG_BLOCK_MODE, BlockMode::CBC); in encryptWithAuthentication()
102 authenticate_params.Authorization(TAG_MAC_LENGTH, kHMACOutputSize); in encryptWithAuthentication()
143 encrypt_params.Authorization(TAG_BLOCK_MODE, BlockMode::CBC); in decryptWithAuthentication()
144 encrypt_params.Authorization(TAG_NONCE, protobuf.init_vector().data(), in decryptWithAuthentication()
480 .Authorization(TAG_BLOCK_MODE, BlockMode::CBC) in createOrVerifyEncryptionKey()
481 .Authorization(TAG_NO_AUTH_REQUIRED); in createOrVerifyEncryptionKey()
519 .Authorization(TAG_MIN_MAC_LENGTH, kHMACOutputSize) in createOrVerifyAuthenticationKey()
520 .Authorization(TAG_NO_AUTH_REQUIRED); in createOrVerifyAuthenticationKey()
/system/bt/btif/src/
Dbtif_keystore.cc90 params.Authorization(TAG_USER_SECURE_ID, 0); in GenerateKey()
92 params.Authorization(TAG_NO_AUTH_REQUIRED); in GenerateKey()
/system/keymaster/android_keymaster/
Dkeymaster_configuration.cpp73 .Authorization(keymaster::TAG_OS_VERSION, os_version) in ConfigureDevice()
74 .Authorization(keymaster::TAG_OS_PATCHLEVEL, os_patchlevel)); in ConfigureDevice()
/system/vold/
DKeyStorage.cpp113 … .Authorization(km::TAG_APPLICATION_ID, km::support::blob2hidlVec(appId)); in generateKeymasterKey()
116 paramBuilder.Authorization(km::TAG_NO_AUTH_REQUIRED); in generateKeymasterKey()
125 paramBuilder.Authorization(km::TAG_USER_SECURE_ID, at->user_id); in generateKeymasterKey()
126 paramBuilder.Authorization(km::TAG_USER_AUTH_TYPE, km::HardwareAuthenticatorType::PASSWORD); in generateKeymasterKey()
127 paramBuilder.Authorization(km::TAG_AUTH_TIMEOUT, AUTH_TIMEOUT); in generateKeymasterKey()
136 … .Authorization(km::TAG_APPLICATION_ID, km::support::blob2hidlVec(appId)); in beginParams()
273 auto opParams = km::AuthorizationSetBuilder().Authorization(km::TAG_NONCE, in decryptWithKeymasterKey()
DKeymaster.cpp245 .Authorization(km::TAG_BLOB_USAGE_REQUIREMENTS, km::KeyBlobUsageRequirements::STANDALONE) in keyParams()
246 .Authorization(km::TAG_NO_AUTH_REQUIRED) in keyParams()
247 .Authorization(km::TAG_MIN_SECONDS_BETWEEN_OPS, ratelimit); in keyParams()
/system/security/keystore-engine/
Dkeystore_backend_binder.cpp136 params[0] = Authorization(TAG_DIGEST, Digest::NONE); in sign()
137 params[1] = Authorization(TAG_PADDING, PaddingMode::NONE); in sign()
138 params[2] = Authorization(TAG_ALGORITHM, algorithm.value()); in sign()
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp182 params[0] = Authorization(TAG_DIGEST, Digest::NONE); in sign()
183 params[1] = Authorization(TAG_PADDING, PaddingMode::NONE); in sign()
184 params[2] = Authorization(TAG_ALGORITHM, algorithm.value()); in sign()
/system/security/keystore/tests/
Dauth_token_table_test.cpp78 builder.Authorization(TAG_USER_AUTH_TYPE, HardwareAuthenticatorType::PASSWORD) in make_set()
79 .Authorization(TAG_USER_SECURE_ID, rsid); in make_set()
81 if (timeout != 0) builder.Authorization(TAG_AUTH_TIMEOUT, timeout); 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.cpp150 .Authorization(keystore::keymaster::TAG_BLOCK_MODE, keystore::keymaster::BlockMode::CBC) in generateKey()
151 .Authorization(keystore::keymaster::TAG_NO_AUTH_REQUIRED); in generateKey()