Home
last modified time | relevance | path

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

/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(uint32_t key_size) { in EcdsaSigningKey()
169 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaSigningKey(EcCurve curve) { in EcdsaSigningKey()
[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.cpp101 void add_tag_from_prop(AuthorizationSetBuilder* tags, TypedTag<TagType::BYTES, tag> ttag, in add_tag_from_prop()
625 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_P()
661 GenerateKey(AuthorizationSetBuilder() in TEST_P()
676 GenerateKey(AuthorizationSetBuilder() in TEST_P()
694 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P()
722 GenerateKey(AuthorizationSetBuilder() in TEST_P()
739 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P()
744 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(190).Digest(Digest::NONE))); in TEST_P()
757 GenerateKey(AuthorizationSetBuilder() in TEST_P()
772 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(size).Digest(Digest::NONE))) in TEST_P()
[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/aidl/vts/functional/
DDeviceUniqueAttestationTest.cpp73 auto result = GenerateKey(AuthorizationSetBuilder() in TEST_P()
101 auto result = GenerateKey(AuthorizationSetBuilder() in TEST_P()
128 auto result = GenerateKey(AuthorizationSetBuilder() in TEST_P()
145 AuthorizationSetBuilder hw_enforced = in TEST_P()
146 AuthorizationSetBuilder() in TEST_P()
185 auto result = GenerateKey(AuthorizationSetBuilder() in TEST_P()
200 AuthorizationSetBuilder hw_enforced = in TEST_P()
201 AuthorizationSetBuilder() in TEST_P()
236 auto attestation_id_tags = AuthorizationSetBuilder(); in TEST_P()
249 AuthorizationSetBuilder builder = in TEST_P()
[all …]
DAttestKeyTest.cpp52 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_P()
71 GenerateKey(AuthorizationSetBuilder() in TEST_P()
101 GenerateKey(AuthorizationSetBuilder() in TEST_P()
134 GenerateKey(AuthorizationSetBuilder() in TEST_P()
202 GenerateKey(AuthorizationSetBuilder() in TEST_P()
239 GenerateKey(AuthorizationSetBuilder() in TEST_P()
301 GenerateKey(AuthorizationSetBuilder() in TEST_P()
373 GenerateKey(AuthorizationSetBuilder() in TEST_P()
448 GenerateKey(AuthorizationSetBuilder() in TEST_P()
461 GenerateKey(AuthorizationSetBuilder() in TEST_P()
[all …]
DKeyMintAidlTestBase.h215 std::function<void(AuthorizationSetBuilder*)> tagModifier =
216 [](AuthorizationSetBuilder*) {}) {
219 AuthorizationSetBuilder aesBuilder = AuthorizationSetBuilder()
232 AuthorizationSetBuilder hmacBuilder = AuthorizationSetBuilder()
244 AuthorizationSetBuilder rsaBuilder = AuthorizationSetBuilder()
257 AuthorizationSetBuilder ecdsaBuilder = AuthorizationSetBuilder()
321 void add_tag_from_prop(AuthorizationSetBuilder* tags, TypedTag<TagType::BYTES, tag> ttag, in add_tag_from_prop()
DKeyMintAidlTestBase.cpp613 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
620 ImportKey(AuthorizationSetBuilder() in CheckHmacTestVector()
637 ASSERT_EQ(ErrorCode::OK, ImportKey(AuthorizationSetBuilder() in CheckAesCtrTestVector()
645 auto params = AuthorizationSetBuilder() in CheckAesCtrTestVector()
658 auto authset = AuthorizationSetBuilder() in CheckTripleDesTestVector()
667 auto begin_params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding_mode); in CheckTripleDesTestVector()
915 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
925 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
938 auto params = AuthorizationSetBuilder() in EncryptMessage()
951 auto params = AuthorizationSetBuilder() in EncryptMessage()
[all …]
DVtsRemotelyProvisionedComponentTests.cpp223 AuthorizationSet keyDesc = AuthorizationSetBuilder() in TEST_P()
/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()
/hardware/interfaces/security/keymint/aidl/vts/performance/
DKeyMintBenchmark.cpp161 AuthorizationSetBuilder authSet = AuthorizationSetBuilder() in GenerateKey()
193 AuthorizationSetBuilder builder = AuthorizationSetBuilder() in getOperationParams()
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp686 ::keymaster::AuthorizationSetBuilder() in createAttestation()
707 ::keymaster::AuthorizationSet swEnforced(::keymaster::AuthorizationSetBuilder().Authorization( in createAttestation()
710 ::keymaster::AuthorizationSetBuilder hwEnforcedBuilder = in createAttestation()
711 ::keymaster::AuthorizationSetBuilder() in createAttestation()