Home
last modified time | relevance | path

Searched refs:AuthorizationSetBuilder (Results 1 – 6 of 6) 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.cpp470 AuthorizationSet UserAuths() { return AuthorizationSetBuilder().Authorization(TAG_USER_ID, 7); } in UserAuths()
779 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
786 ImportKey(AuthorizationSetBuilder() in CheckHmacTestVector()
800 ASSERT_EQ(ErrorCode::OK, ImportKey(AuthorizationSetBuilder() in CheckAesCtrTestVector()
808 auto params = AuthorizationSetBuilder() in CheckAesCtrTestVector()
1131 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_F()
1163 GenerateKey(AuthorizationSetBuilder() in TEST_F()
1179 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_F()
1208 GenerateKey(AuthorizationSetBuilder() in TEST_F()
1222 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(190).Digest(Digest::NONE))); in TEST_F()
[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.cpp528 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_F()
562 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_F()
581 ASSERT_EQ(ErrorCode::UNSUPPORTED_KEY_SIZE, GenerateKey(AuthorizationSetBuilder() in TEST_F()
596 GenerateKey(AuthorizationSetBuilder() in TEST_F()
614 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_F()
643 ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() in TEST_F()
659 GenerateKey(AuthorizationSetBuilder() in TEST_F()
676 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_F()
681 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(190).Digest(Digest::NONE))); in TEST_F()
694 GenerateKey(AuthorizationSetBuilder() in TEST_F()
[all …]
DKeymasterHidlTest.cpp468 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
475 ImportKey(AuthorizationSetBuilder() in CheckHmacTestVector()
492 ASSERT_EQ(ErrorCode::OK, ImportKey(AuthorizationSetBuilder() in CheckAesCtrTestVector()
500 auto params = AuthorizationSetBuilder() in CheckAesCtrTestVector()
513 auto authset = AuthorizationSetBuilder() in CheckTripleDesTestVector()
520 auto begin_params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding_mode); in CheckTripleDesTestVector()
582 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
592 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
605 auto params = AuthorizationSetBuilder() in EncryptMessage()
632 auto params = AuthorizationSetBuilder() in DecryptMessage()
/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 …]