Home
last modified time | relevance | path

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

12

/hardware/interfaces/security/keymint/support/
Dauthorization_set.cpp116 AuthorizationSetBuilder& AuthorizationSetBuilder::RsaKey(uint32_t key_size, in RsaKey()
124 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaKey(uint32_t key_size) { in EcdsaKey()
130 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaKey(EcCurve curve) { in EcdsaKey()
136 AuthorizationSetBuilder& AuthorizationSetBuilder::AesKey(uint32_t key_size) { in AesKey()
141 AuthorizationSetBuilder& AuthorizationSetBuilder::TripleDesKey(uint32_t key_size) { in TripleDesKey()
146 AuthorizationSetBuilder& AuthorizationSetBuilder::HmacKey(uint32_t key_size) { in HmacKey()
152 AuthorizationSetBuilder& AuthorizationSetBuilder::RsaSigningKey(uint32_t key_size, in RsaSigningKey()
158 AuthorizationSetBuilder& AuthorizationSetBuilder::RsaEncryptionKey(uint32_t key_size, in RsaEncryptionKey()
164 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaSigningKey(EcCurve curve) { in EcdsaSigningKey()
169 AuthorizationSetBuilder& AuthorizationSetBuilder::AesEncryptionKey(uint32_t key_size) { in AesEncryptionKey()
[all …]
/hardware/interfaces/keymaster/3.0/vts/functional/
Dauthorization_set.h30 class AuthorizationSetBuilder; variable
241 class AuthorizationSetBuilder : public AuthorizationSet {
244 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization()
250 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization()
259 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization()
265 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization()
270 AuthorizationSetBuilder& Authorizations(AuthorizationSet&& set);
271 AuthorizationSetBuilder& Authorizations(const AuthorizationSet& set);
273 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
274 AuthorizationSetBuilder& EcdsaKey(uint32_t key_size);
[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()
768 ImportKey(AuthorizationSetBuilder() in CheckHmacTestVector()
782 ASSERT_EQ(ErrorCode::OK, ImportKey(AuthorizationSetBuilder() in CheckAesCtrTestVector()
790 auto params = AuthorizationSetBuilder() in CheckAesCtrTestVector()
1100 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_P()
1132 GenerateKey(AuthorizationSetBuilder() in TEST_P()
1148 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_P()
1177 GenerateKey(AuthorizationSetBuilder() in TEST_P()
1191 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(190).Digest(Digest::NONE))); in TEST_P()
[all …]
/hardware/interfaces/security/keymint/support/include/keymint_support/
Dauthorization_set.h32 class AuthorizationSetBuilder; variable
227 class AuthorizationSetBuilder : public AuthorizationSet {
230 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization()
236 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization()
244 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization()
250 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization()
256 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, in Authorization()
263 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, in Authorization()
268 AuthorizationSetBuilder& Authorizations(const AuthorizationSet& set) { in Authorizations()
275 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
[all …]
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dauthorization_set.h30 class AuthorizationSetBuilder; variable
233 class AuthorizationSetBuilder : public AuthorizationSet {
236 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization()
242 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization()
251 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization()
257 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization()
262 AuthorizationSetBuilder& Authorizations(const AuthorizationSet& set) { in Authorizations()
269 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
270 AuthorizationSetBuilder& EcdsaKey(uint32_t key_size);
271 AuthorizationSetBuilder& EcdsaKey(EcCurve curve);
[all …]
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp108 void add_tag_from_prop(AuthorizationSetBuilder* tags, TypedTag<TagType::BYTES, tag> ttag, in add_tag_from_prop()
631 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_P()
667 GenerateKey(AuthorizationSetBuilder() in TEST_P()
682 GenerateKey(AuthorizationSetBuilder() in TEST_P()
700 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P()
728 GenerateKey(AuthorizationSetBuilder() in TEST_P()
745 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P()
750 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(190).Digest(Digest::NONE))); in TEST_P()
763 GenerateKey(AuthorizationSetBuilder() in TEST_P()
778 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(size).Digest(Digest::NONE))) in TEST_P()
[all …]
DBootloaderStateTest.cpp42 auto ec = GenerateKey(AuthorizationSetBuilder() in SetUp()
50 ec = AttestKey(AuthorizationSetBuilder() in SetUp()
DKeymasterHidlTest.cpp443 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
448 auto builder = AuthorizationSetBuilder() in CheckAesIncrementalEncryptOperation()
460 auto params = AuthorizationSetBuilder() in CheckAesIncrementalEncryptOperation()
545 ImportKey(AuthorizationSetBuilder() in CheckHmacTestVector()
562 ASSERT_EQ(ErrorCode::OK, ImportKey(AuthorizationSetBuilder() in CheckAesCtrTestVector()
570 auto params = AuthorizationSetBuilder() in CheckAesCtrTestVector()
583 auto authset = AuthorizationSetBuilder() in CheckTripleDesTestVector()
590 auto begin_params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding_mode); in CheckTripleDesTestVector()
652 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
662 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
[all …]
/hardware/interfaces/keymaster/4.0/support/
Dauthorization_set.cpp455 AuthorizationSetBuilder& AuthorizationSetBuilder::RsaKey(uint32_t key_size, in RsaKey()
463 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaKey(uint32_t key_size) { in EcdsaKey()
469 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaKey(EcCurve curve) { in EcdsaKey()
475 AuthorizationSetBuilder& AuthorizationSetBuilder::AesKey(uint32_t key_size) { in AesKey()
480 AuthorizationSetBuilder& AuthorizationSetBuilder::TripleDesKey(uint32_t key_size) { in TripleDesKey()
485 AuthorizationSetBuilder& AuthorizationSetBuilder::HmacKey(uint32_t key_size) { in HmacKey()
491 AuthorizationSetBuilder& AuthorizationSetBuilder::RsaSigningKey(uint32_t key_size, in RsaSigningKey()
497 AuthorizationSetBuilder& AuthorizationSetBuilder::RsaEncryptionKey(uint32_t key_size, in RsaEncryptionKey()
503 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaSigningKey(uint32_t key_size) { in EcdsaSigningKey()
508 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaSigningKey(EcCurve curve) { in EcdsaSigningKey()
[all …]
/hardware/interfaces/security/keymint/support/fuzzer/
Dkeymint_common.h91 return AuthorizationSetBuilder() in createAuthSetForAttestKey()
106 return AuthorizationSetBuilder() in createAuthSetForAttestKey()
121 return AuthorizationSetBuilder(); in createAuthSetForAttestKey()
134 return AuthorizationSetBuilder() in createAuthorizationSet()
147 return AuthorizationSetBuilder() in createAuthorizationSet()
159 return AuthorizationSetBuilder() in createAuthorizationSet()
172 return AuthorizationSetBuilder() in createAuthorizationSet()
184 return AuthorizationSetBuilder() in createAuthorizationSet()
193 return AuthorizationSetBuilder() in createAuthorizationSet()
203 return AuthorizationSetBuilder() in createAuthorizationSet()
[all …]
Dkeymint_authSet_fuzzer.cpp111 AuthorizationSetBuilder builder = AuthorizationSetBuilder(); in process()
119 auto params = AuthorizationSetBuilder().Authorizations(authSet); in process()
123 auto params = AuthorizationSetBuilder().Authorizations(authSet); in process()
/hardware/interfaces/keymaster/4.0/support/fuzzer/
Dkeymaster4_common.h68 return AuthorizationSetBuilder() in createAuthorizationSet()
78 return AuthorizationSetBuilder() in createAuthorizationSet()
88 return AuthorizationSetBuilder() in createAuthorizationSet()
96 return AuthorizationSetBuilder() in createAuthorizationSet()
105 return AuthorizationSetBuilder() in createAuthorizationSet()
115 return AuthorizationSetBuilder() in createAuthorizationSet()
125 return AuthorizationSetBuilder() in createAuthorizationSet()
135 return AuthorizationSetBuilder() in createAuthorizationSet()
145 return AuthorizationSetBuilder() in createAuthorizationSet()
156 return AuthorizationSetBuilder() in createAuthorizationSet()
[all …]
Dkeymaster4_authSet_fuzzer.cpp124 AuthorizationSetBuilder builder = AuthorizationSetBuilder(); in invokeAuthSetAPIs()
132 auto params = AuthorizationSetBuilder().Authorizations(authSet); in invokeAuthSetAPIs()
136 auto params = AuthorizationSetBuilder().Authorizations(authSet); in invokeAuthSetAPIs()
/hardware/interfaces/security/keymint/aidl/vts/functional/
DKeyMintTest.cpp690 auto builder = AuthorizationSetBuilder() in TEST_P()
729 auto builder = AuthorizationSetBuilder() in TEST_P()
749 auto builder = AuthorizationSetBuilder() in TEST_P()
775 auto builder = AuthorizationSetBuilder() in TEST_P()
789 AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding_mode); in TEST_P()
822 auto builder = AuthorizationSetBuilder() in TEST_P()
848 auto builder = AuthorizationSetBuilder() in TEST_P()
875 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_P()
919 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_P()
959 GenerateKey(AuthorizationSetBuilder() in TEST_P()
[all …]
DDeviceUniqueAttestationTest.cpp77 GenerateKey(AuthorizationSetBuilder() in TEST_P()
110 GenerateKey(AuthorizationSetBuilder() in TEST_P()
141 auto result = GenerateKey(AuthorizationSetBuilder() in TEST_P()
159 AuthorizationSetBuilder hw_enforced = in TEST_P()
160 AuthorizationSetBuilder() in TEST_P()
201 auto result = GenerateKey(AuthorizationSetBuilder() in TEST_P()
217 AuthorizationSetBuilder hw_enforced = in TEST_P()
218 AuthorizationSetBuilder() in TEST_P()
255 auto attestation_id_tags = AuthorizationSetBuilder(); in TEST_P()
294 AuthorizationSetBuilder builder = in TEST_P()
[all …]
DAttestKeyTest.cpp62 GenerateAttestKey(AuthorizationSetBuilder() in TEST_P()
82 GenerateKey(AuthorizationSetBuilder() in TEST_P()
114 GenerateKey(AuthorizationSetBuilder() in TEST_P()
149 GenerateKey(AuthorizationSetBuilder() in TEST_P()
211 GenerateKey(AuthorizationSetBuilder() in TEST_P()
243 auto result = GenerateAttestKey(AuthorizationSetBuilder() in TEST_P()
285 GenerateKey(AuthorizationSetBuilder() in TEST_P()
348 AuthorizationSetBuilder auth_set_builder = in TEST_P()
349 AuthorizationSetBuilder() in TEST_P()
425 AuthorizationSetBuilder auth_set_builder = in TEST_P()
[all …]
DKeyBlobUpgradeTest.cpp229 auto builder = AuthorizationSetBuilder(); in UpgradeKeyBlobs()
297 std::map<const std::string, AuthorizationSetBuilder> keys_info = { in TEST_P()
298 {"aes-key", AuthorizationSetBuilder() in TEST_P()
303 {"aes-key-rr", AuthorizationSetBuilder() in TEST_P()
309 {"des-key", AuthorizationSetBuilder() in TEST_P()
314 {"hmac-key", AuthorizationSetBuilder() in TEST_P()
319 {"rsa-key", AuthorizationSetBuilder() in TEST_P()
329 AuthorizationSetBuilder() in TEST_P()
339 AuthorizationSetBuilder() in TEST_P()
345 {"x25519-key", AuthorizationSetBuilder() in TEST_P()
[all …]
DKeyMintAidlTestBase.h250 std::function<void(AuthorizationSetBuilder*)> tagModifier =
251 [](AuthorizationSetBuilder*) {}) {
254 AuthorizationSetBuilder aesBuilder = AuthorizationSetBuilder()
267 AuthorizationSetBuilder hmacBuilder = AuthorizationSetBuilder()
279 AuthorizationSetBuilder rsaBuilder = AuthorizationSetBuilder()
295 AuthorizationSetBuilder ecdsaBuilder = AuthorizationSetBuilder()
390 void add_tag_from_prop(AuthorizationSetBuilder* tags, TypedTag<TagType::BYTES, tag> ttag, in add_tag_from_prop()
453 void add_attestation_id(AuthorizationSetBuilder* attestation_id_tags, in add_attestation_id()
DAuthTest.cpp313 auto builder = AuthorizationSetBuilder() in TEST_P()
329 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_P()
389 auto builder = AuthorizationSetBuilder() in TEST_P()
412 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_P()
445 auto builder = AuthorizationSetBuilder() in TEST_P()
468 auto params = AuthorizationSetBuilder().Digest(Digest::SHA_2_256); in TEST_P()
491 auto builder = AuthorizationSetBuilder() in TEST_P()
506 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_P()
559 auto builder = AuthorizationSetBuilder() in TEST_P()
574 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_P()
[all …]
DKeyMintAidlTestBase.cpp324 AuthorizationSetBuilder().EcdsaKey(EcCurve::P_256).AttestKey().SetDefaultValidity(); in GenerateKey()
732 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
737 auto builder = AuthorizationSetBuilder() in CheckAesIncrementalEncryptOperation()
749 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(PaddingMode::NONE); in CheckAesIncrementalEncryptOperation()
815 auto auth_set = AuthorizationSetBuilder() in AesCheckEncryptOneByteAtATime()
834 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding_mode); in CheckEncryptOneByteAtATime()
908 ImportKey(AuthorizationSetBuilder() in CheckHmacTestVector()
925 ASSERT_EQ(ErrorCode::OK, ImportKey(AuthorizationSetBuilder() in CheckAesCtrTestVector()
933 auto params = AuthorizationSetBuilder() in CheckAesCtrTestVector()
946 auto authset = AuthorizationSetBuilder() in CheckTripleDesTestVector()
[all …]
DBootloaderStateTest.cpp49 AuthorizationSet keyDesc = AuthorizationSetBuilder() in SetUp()
/hardware/interfaces/keymaster/4.1/vts/functional/
DDeviceUniqueAttestationTest.cpp224 ASSERT_EQ(ErrorCode::OK, convert(GenerateKey(AuthorizationSetBuilder() in TEST_P()
234 AuthorizationSetBuilder() in TEST_P()
241 ASSERT_EQ(ErrorCode::OK, convert(GenerateKey(AuthorizationSetBuilder() in TEST_P()
249 AuthorizationSetBuilder() in TEST_P()
259 ASSERT_EQ(ErrorCode::OK, convert(GenerateKey(AuthorizationSetBuilder() in TEST_P()
270 convert(AttestKey(AuthorizationSetBuilder() in TEST_P()
291 AuthorizationSetBuilder().Authorization(TAG_ATTESTATION_APPLICATION_ID, app_id), in TEST_P()
293 AuthorizationSetBuilder() in TEST_P()
307 ASSERT_EQ(ErrorCode::OK, convert(GenerateKey(AuthorizationSetBuilder() in TEST_P()
317 convert(AttestKey(AuthorizationSetBuilder() in TEST_P()
[all …]
DKeymaster4_1HidlTest.h63 GenerateKeyData(AuthorizationSetBuilder() in CreateTestKeys()
74 GenerateKeyData(AuthorizationSetBuilder() in CreateTestKeys()
85 GenerateKeyData(AuthorizationSetBuilder() in CreateTestKeys()
96 GenerateKeyData(AuthorizationSetBuilder() in CreateTestKeys()
113 AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE)); in UseAesKey()
120 AuthorizationSetBuilder() in UseHmacKey()
130 AuthorizationSetBuilder().Digest(Digest::NONE).Padding(PaddingMode::NONE)); in UseRsaKey()
137 AuthorizationSetBuilder().Digest(Digest::SHA_2_256)); in UseEcdsaKey()
169 void add_tag_from_prop(AuthorizationSetBuilder* tags, TypedTag<TagType::BYTES, tag> ttag, in add_tag_from_prop()
/hardware/interfaces/keymaster/4.1/support/include/keymasterV4_1/
Dauthorization_set.h26 using V4_0::AuthorizationSetBuilder;
/hardware/interfaces/keymaster/4.0/vts/performance/
DBenchmark.cpp61 using android::hardware::keymaster::V4_0::AuthorizationSetBuilder;
140 AuthorizationSetBuilder authSet = AuthorizationSetBuilder()
213 AuthorizationSetBuilder builder = AuthorizationSetBuilder() in getOperationParams()

12