Home
last modified time | relevance | path

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

/system/keymaster/
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()
108 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
109 Authorization(TAG_NO_AUTH_REQUIRED), Authorization(TAG_ACTIVE_DATETIME, future_time), in TEST_F()
123 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_ACTIVE_DATETIME, past_time), in TEST_F()
134 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
135 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F()
148 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
149 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F()
161 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
162 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, future_time), in TEST_F()
[all …]
Decies_kem_test.cpp45 .Authorization(TAG_EC_CURVE, curve) in TEST()
46 .Authorization(TAG_KDF, KM_KDF_RFC5869_SHA256) in TEST()
47 .Authorization(TAG_ECIES_SINGLE_HASH_MODE) in TEST()
48 .Authorization(TAG_KEY_SIZE, kKeyLen)); in TEST()
Dattestation_record_test.cpp103 .Authorization(TAG_OS_VERSION, 60000) in TEST()
104 .Authorization(TAG_OS_PATCHLEVEL, 201512) in TEST()
105 .Authorization(TAG_APPLICATION_ID, "bar", 3)); in TEST()
106 AuthorizationSet sw_set(AuthorizationSetBuilder().Authorization(TAG_ACTIVE_DATETIME, 10)); in TEST()
111 AuthorizationSetBuilder().Authorization(TAG_ATTESTATION_CHALLENGE, "hello", 5)); in TEST()
Dandroid_keymaster_test.cpp105 .Authorization(TAG_OS_VERSION, kOsVersion) in CreateDevice()
106 .Authorization(TAG_OS_PATCHLEVEL, kOsPatchLevel)); in CreateDevice()
150 .Authorization(TAG_OS_VERSION, kOsVersion) in CreateDevice()
151 .Authorization(TAG_OS_PATCHLEVEL, kOsPatchLevel)); in CreateDevice()
194 .Authorization(TAG_OS_VERSION, kOsVersion) in CreateDevice()
195 .Authorization(TAG_OS_PATCHLEVEL, kOsPatchLevel)); in CreateDevice()
291 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_P()
292 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3) in TEST_P()
329 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_EC) in TEST_P()
346 .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()
Dkeymaster_configuration.cpp67 .Authorization(keymaster::TAG_OS_VERSION, os_version) in ConfigureDevice()
68 .Authorization(keymaster::TAG_OS_PATCHLEVEL, os_patchlevel)); in ConfigureDevice()
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.cpp629 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector()
642 .Authorization(TAG_BLOCK_MODE, KM_MODE_CTR) in CheckAesCtrTestVector()
643 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector()
Dandroid_keymaster_test_utils.h320 Authorization(TAG_APPLICATION_ID, client_id_.data, client_id_.data_length)};
/system/keymaster/include/keymaster/
Dauthorization_set.h375 return push_back(Authorization(tag, val)); in push_back()
382 return push_back(Authorization(tag)); in push_back()
414 return push_back(Authorization(tag, val)); in push_back()
419 return push_back(Authorization(tag, bytes, bytes_len)); in push_back()
470 AuthorizationSetBuilder& Authorization(TagType tag, ValueType value) { in Authorization() function
476 AuthorizationSetBuilder& Authorization(TypedTag<KM_BOOL, Tag> tag) { in Authorization() function
482 AuthorizationSetBuilder& Authorization(TypedTag<KM_INVALID, Tag> tag) { in Authorization() function
490 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const uint8_t* data, in Authorization() function
497 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const char* data, in Authorization() function
499 return Authorization(tag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
[all …]
Dkeymaster_tags.h193 inline keymaster_key_param_t Authorization(TypedTag<KM_BOOL, Tag> tag) {
198 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT, Tag> tag, uint32_t value) {
203 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT_REP, Tag> tag, uint32_t value) {
208 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG, Tag> tag, uint64_t value) {
213 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG_REP, Tag> tag, uint64_t value) {
218 inline keymaster_key_param_t Authorization(TypedTag<KM_DATE, Tag> tag, uint64_t value) {
223 inline keymaster_key_param_t Authorization(TypedTag<KM_BYTES, Tag> tag, const void* bytes,
229 inline keymaster_key_param_t Authorization(TypedTag<KM_BYTES, Tag> tag,
235 inline keymaster_key_param_t Authorization(TypedTag<KM_BIGNUM, Tag> tag, const void* bytes,
241 inline keymaster_key_param_t Authorization(TypedTag<KM_BIGNUM, Tag> tag,
[all …]
/system/vold/
DKeyStorage.cpp103 .Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_GCM) in generateKeymasterKey()
104 .Authorization(keymaster::TAG_MIN_MAC_LENGTH, GCM_MAC_BYTES * 8) in generateKeymasterKey()
105 .Authorization(keymaster::TAG_PADDING, KM_PAD_NONE); in generateKeymasterKey()
109 paramBuilder.Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in generateKeymasterKey()
118 paramBuilder.Authorization(keymaster::TAG_USER_SECURE_ID, at->user_id); in generateKeymasterKey()
119 paramBuilder.Authorization(keymaster::TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD); in generateKeymasterKey()
120 paramBuilder.Authorization(keymaster::TAG_AUTH_TIMEOUT, AUTH_TIMEOUT); in generateKeymasterKey()
128 .Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_GCM) in beginParams()
129 .Authorization(keymaster::TAG_MAC_LENGTH, GCM_MAC_BYTES * 8) in beginParams()
130 .Authorization(keymaster::TAG_PADDING, KM_PAD_NONE); in beginParams()
DKeymaster.h98 return params.Authorization(tag, val.data(), val.size()); in addStringParam()
104 params->Authorization(tag, val.data(), val.size()); in addStringParam()
/system/security/keystore/
Dkeystore_cli_v2.cpp126 .Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in GetRSASignParameters()
140 .Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in GetRSAEncryptParameters()
148 .Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in GetECDSAParameters()
159 parameters.AesEncryptionKey(key_size).Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in GetAESParameters()
161 parameters.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_GCM) in GetAESParameters()
162 .Authorization(keymaster::TAG_MIN_MAC_LENGTH, 128); in GetAESParameters()
164 parameters.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_ECB); in GetAESParameters()
165 parameters.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_CBC); in GetAESParameters()
166 parameters.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_CTR); in GetAESParameters()
175 .Authorization(keymaster::TAG_MIN_MAC_LENGTH, 224) in GetHMACParameters()
[all …]
Dkeystore_client_impl.cpp93 encrypt_params.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_CBC); in encryptWithAuthentication()
112 authenticate_params.Authorization(keymaster::TAG_MAC_LENGTH, kHMACOutputSize); in encryptWithAuthentication()
153 encrypt_params.Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_CBC); in decryptWithAuthentication()
154 encrypt_params.Authorization(keymaster::TAG_NONCE, protobuf.init_vector().data(), in decryptWithAuthentication()
409 .Authorization(keymaster::TAG_BLOCK_MODE, KM_MODE_CBC) in createOrVerifyEncryptionKey()
410 .Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in createOrVerifyEncryptionKey()
447 .Authorization(keymaster::TAG_MIN_MAC_LENGTH, kHMACOutputSize) in createOrVerifyAuthenticationKey()
448 .Authorization(keymaster::TAG_NO_AUTH_REQUIRED); in createOrVerifyAuthenticationKey()
/system/security/keystore/tests/
Dauth_token_table_test.cpp82 builder.Authorization(TAG_USER_ID, 10) in make_set()
83 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD) in make_set()
84 .Authorization(TAG_USER_SECURE_ID, rsid); in make_set()
87 builder.Authorization(TAG_AUTH_TIMEOUT, timeout); in make_set()
229 AuthorizationSetBuilder().Authorization(TAG_NO_AUTH_REQUIRED).build(), in TEST()
/system/tpm/trunks/generator/
Draw_structures.txt485 10.12 Authorization Structures ....................................................................…
4872 number of octets in the Authorization Area is
7311 HMAC Authorization Session – assigned by the TPM when the
7318 Loaded Authorization Session – used only in the context of
7327 Policy Authorization Session – assigned by the TPM when the
7334 Active Authorization Session – used only in the context of
9689 the hierarchy selectors or the Lockout Authorization.
9709 Lockout Authorization
12328 10.12 Authorization Structures
15615 SET (1): Authorization failures of the Index do not affect the DA logic
[all …]
Draw_structures_fixed.txt485 10.12 Authorization Structures ....................................................................…
4866 number of octets in the Authorization Area is
7338 HMAC Authorization Session – assigned by the TPM when the
7345 Loaded Authorization Session – used only in the context of
7354 Policy Authorization Session – assigned by the TPM when the
7361 Active Authorization Session – used only in the context of
9717 the hierarchy selectors or the Lockout Authorization.
9737 Lockout Authorization
12366 10.12 Authorization Structures
15604 SET (1): Authorization failures of the Index do not affect the DA logic
[all …]
Draw_commands.txt131 Authorization Checks ..............................................................................…
343 Enhanced Authorization (EA) Commands ..............................................................…
407 Signed Authorization Actions ......................................................................…
1092 Authorization sessions are not shown in the command or response schematics. When the tag of a
1096 (authorizationSize) indicates the size of the Authorization Area and shall have a value of 9 or mor…
1370 Authorization Checks
1373 authorizations shall be checked. Authorization checks only apply to handles if the handle in the co…
5718 Authorization for activateHandle requires the ADMIN role.
12838 Authorization for objectHandle requires ADMIN role authorization. If performed with a policy sessio…
18658 Enhanced Authorization (EA) Commands
[all …]
Draw_commands_fixed.txt131 Authorization Checks ..............................................................................…
343 Enhanced Authorization (EA) Commands ..............................................................…
407 Signed Authorization Actions ......................................................................…
1092 Authorization sessions are not shown in the command or response schematics. When the tag of a
1096 (authorizationSize) indicates the size of the Authorization Area and shall have a value of 9 or mor…
1370 Authorization Checks
1373 authorizations shall be checked. Authorization checks only apply to handles if the handle in the co…
5720 Authorization for activateHandle requires the ADMIN role.
12849 Authorization for objectHandle requires ADMIN role authorization. If performed with a policy sessio…
18669 Enhanced Authorization (EA) Commands
[all …]