/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | authorization_set.h | 213 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 …]
|
D | keymaster_hidl_hal_test.cpp | 470 AuthorizationSet UserAuths() { return AuthorizationSetBuilder().Authorization(TAG_USER_ID, 7); } in UserAuths() 779 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage() 787 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckHmacTestVector() 789 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector() 801 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckAesCtrTestVector() 804 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector() 809 .Authorization(TAG_NONCE, nonce.data(), nonce.size()) in CheckAesCtrTestVector() 1164 .Authorization(TAG_ALGORITHM, Algorithm::RSA) in TEST_F() 1165 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3) in TEST_F() 1209 .Authorization(TAG_ALGORITHM, Algorithm::EC) in TEST_F() [all …]
|
D | keymaster_tags.h | 254 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 563 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_F() 597 .Authorization(TAG_ALGORITHM, Algorithm::RSA) in TEST_F() 598 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3U) in TEST_F() 644 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_F() 660 .Authorization(TAG_ALGORITHM, Algorithm::EC) in TEST_F() 696 .Authorization(TAG_EC_CURVE, EcCurve::P_256) in TEST_F() 751 GenerateKey(AuthorizationSetBuilder().HmacKey(key_size).Digest(digest).Authorization( in TEST_F() 791 .Authorization(TAG_MIN_MAC_LENGTH, 256))) in TEST_F() 798 .Authorization(TAG_MIN_MAC_LENGTH, 256))) in TEST_F() 824 .Authorization(TAG_MIN_MAC_LENGTH, min_mac_length))) in TEST_F() [all …]
|
D | KeymasterHidlTest.cpp | 468 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage() 476 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckHmacTestVector() 478 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector() 493 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckAesCtrTestVector() 496 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector() 501 .Authorization(TAG_NONCE, nonce.data(), nonce.size()) in CheckAesCtrTestVector() 516 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckTripleDesTestVector() 518 if (iv.size()) authset.Authorization(TAG_CALLER_NONCE); in CheckTripleDesTestVector() 521 if (iv.size()) begin_params.Authorization(TAG_NONCE, iv.data(), iv.size()); in CheckTripleDesTestVector() 608 .Authorization(TAG_NONCE, iv_in); in EncryptMessage() [all …]
|
/hardware/interfaces/keymaster/4.0/support/ |
D | authorization_set.cpp | 457 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/ |
D | authorization_set.h | 206 push_back(Authorization(tag, std::forward<Value>(val)...)); in push_back() 234 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization() function 240 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization() function 249 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization() function 251 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization() 255 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization() function 257 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
|
D | keymaster_tags.h | 260 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
|
/hardware/interfaces/keymaster/4.0/ |
D | IKeymasterDevice.hal | 119 * Access controls are defined as an "authorization list" of tag/value pairs. Authorization tags 890 * == Authorization Enforcement == 1105 * == Authorization Enforcement == 1213 * == Authorization enforcement == 1218 * Authorization per operation keys are the case where the key has one or more
|