Home
last modified time | relevance | path

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

/hardware/interfaces/security/keymint/aidl/vts/functional/
DDeviceUniqueAttestationTest.cpp74 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
78 .Authorization(TAG_INCLUDE_UNIQUE_ID) in TEST_P()
79 .Authorization(TAG_CREATION_DATETIME, 1619621648000) in TEST_P()
82 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION), in TEST_P()
102 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
105 .Authorization(TAG_INCLUDE_UNIQUE_ID) in TEST_P()
106 .Authorization(TAG_CREATION_DATETIME, 1619621648000) in TEST_P()
109 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION), in TEST_P()
129 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
133 .Authorization(TAG_INCLUDE_UNIQUE_ID) in TEST_P()
[all …]
DAttestKeyTest.cpp73 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
105 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
136 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
139 .Authorization(TAG_CREATION_DATETIME, timestamp) in TEST_P()
207 .Authorization(TAG_CERTIFICATE_SERIAL, serial_blob) in TEST_P()
208 .Authorization(TAG_CERTIFICATE_SUBJECT, subject_der) in TEST_P()
209 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
241 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
244 .Authorization(TAG_CERTIFICATE_SERIAL, serial_blob2) in TEST_P()
245 .Authorization(TAG_CERTIFICATE_SUBJECT, subject_der2) in TEST_P()
[all …]
DKeyMintAidlTestBase.h221 .Authorization(tagToTest)
224 .Authorization(TAG_NO_AUTH_REQUIRED);
234 .Authorization(tagToTest)
236 .Authorization(TAG_MIN_MAC_LENGTH, 128)
237 .Authorization(TAG_NO_AUTH_REQUIRED);
246 .Authorization(tagToTest)
249 .Authorization(TAG_NO_AUTH_REQUIRED)
259 .Authorization(tagToTest)
261 .Authorization(TAG_NO_AUTH_REQUIRED)
325 tags->Authorization(ttag, prop_value.data(), prop_value.size()); in add_tag_from_prop()
DKeyMintAidlTestBase.cpp613 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
621 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckHmacTestVector()
623 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector()
638 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckAesCtrTestVector()
641 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector()
646 .Authorization(TAG_NONCE, nonce.data(), nonce.size()) in CheckAesCtrTestVector()
661 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckTripleDesTestVector()
663 if (iv.size()) authset.Authorization(TAG_CALLER_NONCE); in CheckTripleDesTestVector()
668 if (iv.size()) begin_params.Authorization(TAG_NONCE, iv.data(), iv.size()); in CheckTripleDesTestVector()
941 .Authorization(TAG_NONCE, iv_in); in EncryptMessage()
[all …]
DVtsRemotelyProvisionedComponentTests.cpp224 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
/hardware/interfaces/keymaster/4.1/vts/functional/
DDeviceUniqueAttestationTest.cpp225 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
229 .Authorization(TAG_INCLUDE_UNIQUE_ID)))); in TEST_P()
235 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION) in TEST_P()
236 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P()
237 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P()
242 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
245 .Authorization(TAG_INCLUDE_UNIQUE_ID)))); in TEST_P()
250 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION) in TEST_P()
251 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P()
252 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P()
[all …]
DKeymaster4_1HidlTest.h65 .Authorization(tagToTest) in CreateTestKeys()
68 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys()
76 .Authorization(tagToTest) in CreateTestKeys()
78 .Authorization(TAG_MIN_MAC_LENGTH, 128) in CreateTestKeys()
79 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys()
87 .Authorization(tagToTest) in CreateTestKeys()
90 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys()
98 .Authorization(tagToTest) in CreateTestKeys()
100 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys()
121 .Authorization(TAG_MAC_LENGTH, 128) in UseHmacKey()
[all …]
/hardware/interfaces/security/keymint/support/
Dauthorization_set.cpp118 Authorization(TAG_ALGORITHM, Algorithm::RSA); in RsaKey()
119 Authorization(TAG_KEY_SIZE, key_size); in RsaKey()
120 Authorization(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in RsaKey()
125 Authorization(TAG_ALGORITHM, Algorithm::EC); in EcdsaKey()
126 Authorization(TAG_KEY_SIZE, key_size); in EcdsaKey()
131 Authorization(TAG_ALGORITHM, Algorithm::EC); in EcdsaKey()
132 Authorization(TAG_EC_CURVE, curve); in EcdsaKey()
137 Authorization(TAG_ALGORITHM, Algorithm::AES); in AesKey()
138 return Authorization(TAG_KEY_SIZE, key_size); in AesKey()
142 Authorization(TAG_ALGORITHM, Algorithm::TRIPLE_DES); in TripleDesKey()
[all …]
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp106 tags->Authorization(ttag, reinterpret_cast<const uint8_t*>(value), in add_tag_from_prop()
677 .Authorization(TAG_ALGORITHM, Algorithm::RSA) in TEST_P()
678 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3U) in TEST_P()
723 .Authorization(TAG_ALGORITHM, Algorithm::EC) in TEST_P()
759 .Authorization(TAG_EC_CURVE, EcCurve::P_256) in TEST_P()
814 GenerateKey(AuthorizationSetBuilder().HmacKey(key_size).Digest(digest).Authorization( in TEST_P()
854 .Authorization(TAG_MIN_MAC_LENGTH, 256))) in TEST_P()
861 .Authorization(TAG_MIN_MAC_LENGTH, 256))) in TEST_P()
887 .Authorization(TAG_MIN_MAC_LENGTH, min_mac_length))) in TEST_P()
895 .Authorization(TAG_MIN_MAC_LENGTH, min_mac_length))) in TEST_P()
[all …]
/hardware/interfaces/keymaster/3.0/vts/functional/
Dauthorization_set.h213 push_back(Authorization(tag, std::forward<Value>(val)...)); in push_back()
244 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization() function
250 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization() function
259 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization() function
261 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
265 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization() function
267 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
321 Authorization(TAG_ALGORITHM, Algorithm::RSA); in RsaKey()
322 Authorization(TAG_KEY_SIZE, key_size); in RsaKey()
323 Authorization(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in RsaKey()
[all …]
Dkeymaster_hidl_hal_test.cpp452 AuthorizationSet UserAuths() { return AuthorizationSetBuilder().Authorization(TAG_USER_ID, 7); } in UserAuths()
761 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
769 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckHmacTestVector()
771 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector()
783 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckAesCtrTestVector()
786 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector()
791 .Authorization(TAG_NONCE, nonce.data(), nonce.size()) in CheckAesCtrTestVector()
1133 .Authorization(TAG_ALGORITHM, Algorithm::RSA) in TEST_P()
1134 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3) in TEST_P()
1178 .Authorization(TAG_ALGORITHM, Algorithm::EC) in TEST_P()
[all …]
Dkeymaster_tags.h254 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
/hardware/interfaces/security/keymint/support/include/keymint_support/
Dauthorization_set.h205 push_back(Authorization(tag, std::forward<Value>(val)...)); in push_back()
230 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization() function
236 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization() function
244 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization() function
246 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
250 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization() function
252 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
256 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, in Authorization() function
258 return Authorization(ttag, reinterpret_cast<const uint8_t*>(&data[0]), in Authorization()
263 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, in Authorization() function
[all …]
Dkeymint_tags.h294 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
/hardware/interfaces/keymaster/4.0/support/
Dauthorization_set.cpp457 Authorization(TAG_ALGORITHM, Algorithm::RSA); in RsaKey()
458 Authorization(TAG_KEY_SIZE, key_size); in RsaKey()
459 Authorization(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in RsaKey()
464 Authorization(TAG_ALGORITHM, Algorithm::EC); in EcdsaKey()
465 Authorization(TAG_KEY_SIZE, key_size); in EcdsaKey()
470 Authorization(TAG_ALGORITHM, Algorithm::EC); in EcdsaKey()
471 Authorization(TAG_EC_CURVE, curve); in EcdsaKey()
476 Authorization(TAG_ALGORITHM, Algorithm::AES); in AesKey()
477 return Authorization(TAG_KEY_SIZE, key_size); in AesKey()
481 Authorization(TAG_ALGORITHM, Algorithm::TRIPLE_DES); in TripleDesKey()
[all …]
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dauthorization_set.h208 push_back(Authorization(tag, std::forward<Value>(val)...)); in push_back()
236 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization() function
242 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization() function
251 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization() function
253 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
257 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization() function
259 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
Dkeymaster_tags.h269 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
/hardware/interfaces/security/keymint/aidl/vts/performance/
DKeyMintBenchmark.cpp162 .Authorization(TAG_NO_AUTH_REQUIRED) in GenerateKey()
163 .Authorization(TAG_PURPOSE, KeyPurpose::ENCRYPT) in GenerateKey()
164 .Authorization(TAG_PURPOSE, KeyPurpose::DECRYPT) in GenerateKey()
165 .Authorization(TAG_PURPOSE, KeyPurpose::SIGN) in GenerateKey()
166 .Authorization(TAG_PURPOSE, KeyPurpose::VERIFY) in GenerateKey()
167 .Authorization(TAG_KEY_SIZE, keySize) in GenerateKey()
168 .Authorization(TAG_ALGORITHM, algorithm.value()) in GenerateKey()
175 authSet.Authorization(TAG_MIN_MAC_LENGTH, 128); in GenerateKey()
179 authSet.Authorization(TAG_MIN_MAC_LENGTH, 128); in GenerateKey()
182 authSet.Authorization(TAG_RSA_PUBLIC_EXPONENT, 65537U); in GenerateKey()
[all …]
/hardware/interfaces/keymaster/4.0/vts/performance/
DBenchmark.cpp141 .Authorization(TAG_NO_AUTH_REQUIRED)
142 .Authorization(TAG_PURPOSE, KeyPurpose::ENCRYPT)
143 .Authorization(TAG_PURPOSE, KeyPurpose::DECRYPT)
144 .Authorization(TAG_PURPOSE, KeyPurpose::SIGN)
145 .Authorization(TAG_PURPOSE, KeyPurpose::VERIFY)
146 .Authorization(TAG_KEY_SIZE, keySize)
147 .Authorization(TAG_ALGORITHM, algorithm)
149 .Authorization(TAG_MIN_MAC_LENGTH, 128)
155 authSet.Authorization(TAG_RSA_PUBLIC_EXPONENT, 65537U);
215 .Authorization(TAG_MAC_LENGTH, 128) in getOperationParams()
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp687 .Authorization(::keymaster::TAG_CERTIFICATE_NOT_BEFORE, activeTimeMilliSeconds) in createAttestation()
688 .Authorization(::keymaster::TAG_CERTIFICATE_NOT_AFTER, expireTimeMilliSeconds) in createAttestation()
689 .Authorization(::keymaster::TAG_ATTESTATION_CHALLENGE, challenge.data(), in createAttestation()
691 .Authorization(::keymaster::TAG_ACTIVE_DATETIME, activeTimeMilliSeconds) in createAttestation()
699 .Authorization(::keymaster::TAG_ATTESTATION_APPLICATION_ID, in createAttestation()
701 .Authorization(::keymaster::TAG_CERTIFICATE_SUBJECT, subject.data(), in createAttestation()
703 .Authorization(::keymaster::TAG_USAGE_EXPIRE_DATETIME, expireTimeMilliSeconds)); in createAttestation()
707 ::keymaster::AuthorizationSet swEnforced(::keymaster::AuthorizationSetBuilder().Authorization( in createAttestation()
712 .Authorization(::keymaster::TAG_PURPOSE, KM_PURPOSE_SIGN) in createAttestation()
713 .Authorization(::keymaster::TAG_KEY_SIZE, 256) in createAttestation()
[all …]
/hardware/interfaces/keymaster/4.0/
DIKeymasterDevice.hal119 * Access controls are defined as an "authorization list" of tag/value pairs. Authorization tags
890 * == Authorization Enforcement ==
1103 * == Authorization Enforcement ==
1211 * == Authorization enforcement ==
1216 * Authorization per operation keys are the case where the key has one or more