Home
last modified time | relevance | path

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

/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/keymaster/4.0/support/include/keymasterV4_0/
Dauthorization_set.h29 class AuthorizationSetBuilder; variable
231 class AuthorizationSetBuilder : public AuthorizationSet {
234 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization()
240 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization()
249 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization()
255 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization()
260 AuthorizationSetBuilder& Authorizations(const AuthorizationSet& set) { in Authorizations()
267 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
268 AuthorizationSetBuilder& EcdsaKey(uint32_t key_size);
269 AuthorizationSetBuilder& EcdsaKey(EcCurve curve);
[all …]
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp538 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_P()
574 GenerateKey(AuthorizationSetBuilder() in TEST_P()
589 GenerateKey(AuthorizationSetBuilder() in TEST_P()
607 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P()
635 GenerateKey(AuthorizationSetBuilder() in TEST_P()
652 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P()
657 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(190).Digest(Digest::NONE))); in TEST_P()
670 GenerateKey(AuthorizationSetBuilder() in TEST_P()
685 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(size).Digest(Digest::NONE))) in TEST_P()
707 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(curve).Digest(digest))) in TEST_P()
[all …]
DKeymasterHidlTest.cpp443 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
450 ImportKey(AuthorizationSetBuilder() in CheckHmacTestVector()
467 ASSERT_EQ(ErrorCode::OK, ImportKey(AuthorizationSetBuilder() in CheckAesCtrTestVector()
475 auto params = AuthorizationSetBuilder() in CheckAesCtrTestVector()
488 auto authset = AuthorizationSetBuilder() in CheckTripleDesTestVector()
495 auto begin_params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding_mode); in CheckTripleDesTestVector()
557 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
567 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
580 auto params = AuthorizationSetBuilder() in EncryptMessage()
593 auto params = AuthorizationSetBuilder() 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/keymaster/4.1/vts/functional/
DDeviceUniqueAttestationTest.cpp161 ASSERT_EQ(ErrorCode::OK, convert(GenerateKey(AuthorizationSetBuilder() in TEST_P()
171 AuthorizationSetBuilder() in TEST_P()
178 ASSERT_EQ(ErrorCode::OK, convert(GenerateKey(AuthorizationSetBuilder() in TEST_P()
186 AuthorizationSetBuilder() in TEST_P()
197 convert(GenerateKey(AuthorizationSetBuilder() in TEST_P()
208 convert(AttestKey(AuthorizationSetBuilder() in TEST_P()
220 AuthorizationSetBuilder() in TEST_P()
224 AuthorizationSetBuilder() in TEST_P()
239 convert(GenerateKey(AuthorizationSetBuilder() in TEST_P()
249 convert(AttestKey(AuthorizationSetBuilder() in TEST_P()
[all …]
DKeymaster4_1HidlTest.h61 GenerateKeyData(AuthorizationSetBuilder() in CreateTestKeys()
72 GenerateKeyData(AuthorizationSetBuilder() in CreateTestKeys()
83 GenerateKeyData(AuthorizationSetBuilder() in CreateTestKeys()
94 GenerateKeyData(AuthorizationSetBuilder() in CreateTestKeys()
111 AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE)); in UseAesKey()
118 AuthorizationSetBuilder().Authorization(TAG_MAC_LENGTH, 128)); in UseHmacKey()
126 AuthorizationSetBuilder().Digest(Digest::NONE).Padding(PaddingMode::NONE)); in UseRsaKey()
133 AuthorizationSetBuilder().Digest(Digest::SHA_2_256)); in UseEcdsaKey()
/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/identity/support/src/
DIdentityCredentialSupport.cpp837 ::keymaster::AuthorizationSetBuilder() in createAttestation()
854 ::keymaster::AuthorizationSet swEnforced(::keymaster::AuthorizationSetBuilder().Authorization( in createAttestation()
858 ::keymaster::AuthorizationSetBuilder() in createAttestation()