/hardware/interfaces/security/keymint/aidl/vts/functional/ |
D | DeviceUniqueAttestationTest.cpp | 74 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 78 .Authorization(TAG_INCLUDE_UNIQUE_ID) in TEST_P() 79 .Authorization(TAG_CREATION_DATETIME, 1619621648000) in TEST_P() 82 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION), in TEST_P() 102 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 105 .Authorization(TAG_INCLUDE_UNIQUE_ID) in TEST_P() 106 .Authorization(TAG_CREATION_DATETIME, 1619621648000) in TEST_P() 109 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION), in TEST_P() 129 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 133 .Authorization(TAG_INCLUDE_UNIQUE_ID) in TEST_P() [all …]
|
D | AttestKeyTest.cpp | 73 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 105 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 136 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 139 .Authorization(TAG_CREATION_DATETIME, timestamp) in TEST_P() 207 .Authorization(TAG_CERTIFICATE_SERIAL, serial_blob) in TEST_P() 208 .Authorization(TAG_CERTIFICATE_SUBJECT, subject_der) in TEST_P() 209 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 241 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 244 .Authorization(TAG_CERTIFICATE_SERIAL, serial_blob2) in TEST_P() 245 .Authorization(TAG_CERTIFICATE_SUBJECT, subject_der2) in TEST_P() [all …]
|
D | KeyMintAidlTestBase.h | 221 .Authorization(tagToTest) 224 .Authorization(TAG_NO_AUTH_REQUIRED); 234 .Authorization(tagToTest) 236 .Authorization(TAG_MIN_MAC_LENGTH, 128) 237 .Authorization(TAG_NO_AUTH_REQUIRED); 246 .Authorization(tagToTest) 249 .Authorization(TAG_NO_AUTH_REQUIRED) 259 .Authorization(tagToTest) 261 .Authorization(TAG_NO_AUTH_REQUIRED) 325 tags->Authorization(ttag, prop_value.data(), prop_value.size()); in add_tag_from_prop()
|
D | KeyMintAidlTestBase.cpp | 613 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage() 621 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckHmacTestVector() 623 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector() 638 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckAesCtrTestVector() 641 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector() 646 .Authorization(TAG_NONCE, nonce.data(), nonce.size()) in CheckAesCtrTestVector() 661 .Authorization(TAG_NO_AUTH_REQUIRED) in CheckTripleDesTestVector() 663 if (iv.size()) authset.Authorization(TAG_CALLER_NONCE); in CheckTripleDesTestVector() 668 if (iv.size()) begin_params.Authorization(TAG_NONCE, iv.data(), iv.size()); in CheckTripleDesTestVector() 941 .Authorization(TAG_NONCE, iv_in); in EncryptMessage() [all …]
|
D | VtsRemotelyProvisionedComponentTests.cpp | 224 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P()
|
/hardware/interfaces/keymaster/4.1/vts/functional/ |
D | DeviceUniqueAttestationTest.cpp | 225 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 229 .Authorization(TAG_INCLUDE_UNIQUE_ID)))); in TEST_P() 235 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION) in TEST_P() 236 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P() 237 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P() 242 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_P() 245 .Authorization(TAG_INCLUDE_UNIQUE_ID)))); in TEST_P() 250 .Authorization(TAG_DEVICE_UNIQUE_ATTESTATION) in TEST_P() 251 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P() 252 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P() [all …]
|
D | Keymaster4_1HidlTest.h | 65 .Authorization(tagToTest) in CreateTestKeys() 68 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys() 76 .Authorization(tagToTest) in CreateTestKeys() 78 .Authorization(TAG_MIN_MAC_LENGTH, 128) in CreateTestKeys() 79 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys() 87 .Authorization(tagToTest) in CreateTestKeys() 90 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys() 98 .Authorization(tagToTest) in CreateTestKeys() 100 .Authorization(TAG_NO_AUTH_REQUIRED)); in CreateTestKeys() 121 .Authorization(TAG_MAC_LENGTH, 128) in UseHmacKey() [all …]
|
/hardware/interfaces/security/keymint/support/ |
D | authorization_set.cpp | 118 Authorization(TAG_ALGORITHM, Algorithm::RSA); in RsaKey() 119 Authorization(TAG_KEY_SIZE, key_size); in RsaKey() 120 Authorization(TAG_RSA_PUBLIC_EXPONENT, public_exponent); in RsaKey() 125 Authorization(TAG_ALGORITHM, Algorithm::EC); in EcdsaKey() 126 Authorization(TAG_KEY_SIZE, key_size); in EcdsaKey() 131 Authorization(TAG_ALGORITHM, Algorithm::EC); in EcdsaKey() 132 Authorization(TAG_EC_CURVE, curve); in EcdsaKey() 137 Authorization(TAG_ALGORITHM, Algorithm::AES); in AesKey() 138 return Authorization(TAG_KEY_SIZE, key_size); in AesKey() 142 Authorization(TAG_ALGORITHM, Algorithm::TRIPLE_DES); in TripleDesKey() [all …]
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 106 tags->Authorization(ttag, reinterpret_cast<const uint8_t*>(value), in add_tag_from_prop() 677 .Authorization(TAG_ALGORITHM, Algorithm::RSA) in TEST_P() 678 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3U) in TEST_P() 723 .Authorization(TAG_ALGORITHM, Algorithm::EC) in TEST_P() 759 .Authorization(TAG_EC_CURVE, EcCurve::P_256) in TEST_P() 814 GenerateKey(AuthorizationSetBuilder().HmacKey(key_size).Digest(digest).Authorization( in TEST_P() 854 .Authorization(TAG_MIN_MAC_LENGTH, 256))) in TEST_P() 861 .Authorization(TAG_MIN_MAC_LENGTH, 256))) in TEST_P() 887 .Authorization(TAG_MIN_MAC_LENGTH, min_mac_length))) in TEST_P() 895 .Authorization(TAG_MIN_MAC_LENGTH, min_mac_length))) in TEST_P() [all …]
|
/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/security/keymint/support/include/keymint_support/ |
D | authorization_set.h | 205 push_back(Authorization(tag, std::forward<Value>(val)...)); in push_back() 230 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization() function 236 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization() function 244 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization() function 246 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization() 250 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization() function 252 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization() 256 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, in Authorization() function 258 return Authorization(ttag, reinterpret_cast<const uint8_t*>(&data[0]), in Authorization() 263 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, in Authorization() function [all …]
|
D | keymint_tags.h | 294 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
|
/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 | 208 push_back(Authorization(tag, std::forward<Value>(val)...)); in push_back() 236 AuthorizationSetBuilder& Authorization(TagType ttag, ValueType&&... value) { in Authorization() function 242 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const uint8_t* data, in Authorization() function 251 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, const char* data, in Authorization() function 253 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization() 257 AuthorizationSetBuilder& Authorization(TypedTag<TagType::BYTES, tag> ttag, char* data, in Authorization() function 259 return Authorization(ttag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization()
|
D | keymaster_tags.h | 269 inline KeyParameter Authorization(TypedTag<tag_type, tag> ttag, Args&&... args) {
|
/hardware/interfaces/security/keymint/aidl/vts/performance/ |
D | KeyMintBenchmark.cpp | 162 .Authorization(TAG_NO_AUTH_REQUIRED) in GenerateKey() 163 .Authorization(TAG_PURPOSE, KeyPurpose::ENCRYPT) in GenerateKey() 164 .Authorization(TAG_PURPOSE, KeyPurpose::DECRYPT) in GenerateKey() 165 .Authorization(TAG_PURPOSE, KeyPurpose::SIGN) in GenerateKey() 166 .Authorization(TAG_PURPOSE, KeyPurpose::VERIFY) in GenerateKey() 167 .Authorization(TAG_KEY_SIZE, keySize) in GenerateKey() 168 .Authorization(TAG_ALGORITHM, algorithm.value()) in GenerateKey() 175 authSet.Authorization(TAG_MIN_MAC_LENGTH, 128); in GenerateKey() 179 authSet.Authorization(TAG_MIN_MAC_LENGTH, 128); in GenerateKey() 182 authSet.Authorization(TAG_RSA_PUBLIC_EXPONENT, 65537U); in GenerateKey() [all …]
|
/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 | 687 .Authorization(::keymaster::TAG_CERTIFICATE_NOT_BEFORE, activeTimeMilliSeconds) in createAttestation() 688 .Authorization(::keymaster::TAG_CERTIFICATE_NOT_AFTER, expireTimeMilliSeconds) in createAttestation() 689 .Authorization(::keymaster::TAG_ATTESTATION_CHALLENGE, challenge.data(), in createAttestation() 691 .Authorization(::keymaster::TAG_ACTIVE_DATETIME, activeTimeMilliSeconds) in createAttestation() 699 .Authorization(::keymaster::TAG_ATTESTATION_APPLICATION_ID, in createAttestation() 701 .Authorization(::keymaster::TAG_CERTIFICATE_SUBJECT, subject.data(), in createAttestation() 703 .Authorization(::keymaster::TAG_USAGE_EXPIRE_DATETIME, expireTimeMilliSeconds)); in createAttestation() 707 ::keymaster::AuthorizationSet swEnforced(::keymaster::AuthorizationSetBuilder().Authorization( in createAttestation() 712 .Authorization(::keymaster::TAG_PURPOSE, KM_PURPOSE_SIGN) in createAttestation() 713 .Authorization(::keymaster::TAG_KEY_SIZE, 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
|