/hardware/interfaces/keymaster/4.1/vts/functional/ |
D | DeviceUniqueAttestationTest.cpp | 162 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 166 .Authorization(TAG_INCLUDE_UNIQUE_ID)))); in TEST_P() 172 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION) in TEST_P() 173 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P() 174 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P() 179 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 182 .Authorization(TAG_INCLUDE_UNIQUE_ID)))); in TEST_P() 187 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION) in TEST_P() 188 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P() 189 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P() [all …]
|
D | Keymaster4_1HidlTest.h | 63 .Authorization(tagToTest) in CreateTestKeys() 66 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys() 74 .Authorization(tagToTest) in CreateTestKeys() 76 .Authorization(TAG_MIN_MAC_LENGTH, 128) in CreateTestKeys() 77 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys() 85 .Authorization(tagToTest) in CreateTestKeys() 88 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys() 96 .Authorization(tagToTest) in CreateTestKeys() 98 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys() 118 AuthorizationSetBuilder().Authorization(TAG_MAC_LENGTH, 128)); in UseHmacKey()
|
/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 | 452 AuthorizationSet UserAuths() { return AuthorizationSetBuilder().Authorization(TAG_USER_ID, 7); } in UserAuths() 761 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage() 769 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckHmacTestVector() 771 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector() 783 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckAesCtrTestVector() 786 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector() 791 .Authorization(TAG_NONCE, nonce.data(), nonce.size()) in CheckAesCtrTestVector() 1133 .Authorization(TAG_ALGORITHM, Algorithm::RSA) in TEST_P() 1134 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3) in TEST_P() 1178 .Authorization(TAG_ALGORITHM, Algorithm::EC) in TEST_P() [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 | 590 .Authorization(TAG_ALGORITHM, Algorithm::RSA) in TEST_P() 591 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3U) in TEST_P() 636 .Authorization(TAG_ALGORITHM, Algorithm::EC) in TEST_P() 672 .Authorization(TAG_EC_CURVE, EcCurve::P_256) in TEST_P() 727 GenerateKey(AuthorizationSetBuilder().HmacKey(key_size).Digest(digest).Authorization( in TEST_P() 767 .Authorization(TAG_MIN_MAC_LENGTH, 256))) in TEST_P() 774 .Authorization(TAG_MIN_MAC_LENGTH, 256))) in TEST_P() 800 .Authorization(TAG_MIN_MAC_LENGTH, min_mac_length))) in TEST_P() 808 .Authorization(TAG_MIN_MAC_LENGTH, min_mac_length))) in TEST_P() 829 .Authorization(TAG_MIN_MAC_LENGTH, 128))); in TEST_P() [all …]
|
D | KeymasterHidlTest.cpp | 443 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage() 451 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckHmacTestVector() 453 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector() 468 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckAesCtrTestVector() 471 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector() 476 .Authorization(TAG_NONCE, nonce.data(), nonce.size()) in CheckAesCtrTestVector() 491 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckTripleDesTestVector() 493 if (iv.size()) authset.Authorization(TAG_CALLER_NONCE); in CheckTripleDesTestVector() 496 if (iv.size()) begin_params.Authorization(TAG_NONCE, iv.data(), iv.size()); in CheckTripleDesTestVector() 583 .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 | 266 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
|
/hardware/interfaces/keymaster/4.0/vts/performance/ |
D | Benchmark.cpp | 141 .Authorization(TAG_NO_AUTH_REQUIRED) 142 .Authorization(TAG_PURPOSE, KeyPurpose::ENCRYPT) 143 .Authorization(TAG_PURPOSE, KeyPurpose::DECRYPT) 144 .Authorization(TAG_PURPOSE, KeyPurpose::SIGN) 145 .Authorization(TAG_PURPOSE, KeyPurpose::VERIFY) 146 .Authorization(TAG_KEY_SIZE, keySize) 147 .Authorization(TAG_ALGORITHM, algorithm) 149 .Authorization(TAG_MIN_MAC_LENGTH, 128) 155 authSet.Authorization(TAG_RSA_PUBLIC_EXPONENT, 65537U); 215 .Authorization(TAG_MAC_LENGTH, 128) in getOperationParams()
|
/hardware/interfaces/identity/support/src/ |
D | IdentityCredentialSupport.cpp | 838 .Authorization(::keymaster::TAG_ATTESTATION_CHALLENGE, challenge.data(), in createAttestation() 840 .Authorization(::keymaster::TAG_ACTIVE_DATETIME, activeTimeMilliSeconds) in createAttestation() 848 .Authorization(::keymaster::TAG_ATTESTATION_APPLICATION_ID, in createAttestation() 850 .Authorization(::keymaster::TAG_USAGE_EXPIRE_DATETIME, expireTimeMilliSeconds)); in createAttestation() 854 ::keymaster::AuthorizationSet swEnforced(::keymaster::AuthorizationSetBuilder().Authorization( in createAttestation() 859 .Authorization(::keymaster::TAG_PURPOSE, KM_PURPOSE_SIGN) in createAttestation() 860 .Authorization(::keymaster::TAG_KEY_SIZE, 256) in createAttestation() 861 .Authorization(::keymaster::TAG_ALGORITHM, KM_ALGORITHM_EC) in createAttestation() 862 .Authorization(::keymaster::TAG_NO_AUTH_REQUIRED) in createAttestation() 863 .Authorization(::keymaster::TAG_DIGEST, KM_DIGEST_SHA_2_256) in createAttestation() [all …]
|
/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 == 1103 * == Authorization Enforcement == 1211 * == Authorization enforcement == 1216 * Authorization per operation keys are the case where the key has one or more
|