Home
last modified time | relevance | path

Searched refs:SecurityLevel (Results 1 – 22 of 22) sorted by relevance

/hardware/interfaces/keymaster/4.0/default/
Dservice.cpp24 using android::hardware::keymaster::V4_0::SecurityLevel;
28 auto keymaster = ::keymaster::V4_0::ng::CreateKeymasterDevice(SecurityLevel::SOFTWARE); in main()
/hardware/interfaces/keymaster/3.0/vts/functional/
Dattestation_record.h45 SecurityLevel* attestation_security_level,
47 SecurityLevel* keymaster_security_level,
Dattestation_record.cpp259 SecurityLevel* attestation_security_level, in MAKE_OPENSSL_PTR_TYPE()
261 SecurityLevel* keymaster_security_level, in MAKE_OPENSSL_PTR_TYPE()
272 static_cast<SecurityLevel>(ASN1_ENUMERATED_get(record->attestation_security_level)); in MAKE_OPENSSL_PTR_TYPE()
275 static_cast<SecurityLevel>(ASN1_ENUMERATED_get(record->keymaster_security_level)); in MAKE_OPENSSL_PTR_TYPE()
Dkeymaster_hidl_hal_test.cpp991 SecurityLevel att_attestation_security_level; in verify_attestation_record()
992 SecurityLevel att_keymaster_security_level; in verify_attestation_record()
1026 EXPECT_EQ(KeymasterHidlTest::IsSecure() ? SecurityLevel::TRUSTED_ENVIRONMENT in verify_attestation_record()
1027 : SecurityLevel::SOFTWARE, in verify_attestation_record()
1029 EXPECT_EQ(KeymasterHidlTest::SupportsAttestation() ? SecurityLevel::TRUSTED_ENVIRONMENT in verify_attestation_record()
1030 : SecurityLevel::SOFTWARE, in verify_attestation_record()
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dattestation_record.h54 SecurityLevel* attestation_security_level,
56 SecurityLevel* keymaster_security_level,
DKeymaster.h53 SecurityLevel securityLevel;
Dkey_param_output.h56 inline ::std::ostream& operator<<(::std::ostream& os, SecurityLevel value) {
/hardware/interfaces/drm/1.1/vts/functional/
Ddrm_hal_clearkey_test.cpp64 using ::android::hardware::drm::V1_1::SecurityLevel;
65 using ::android::hardware::drm::V1_1::SecurityLevel;
168 SessionId openSession(SecurityLevel level);
289 SessionId DrmHalClearkeyTest::openSession(SecurityLevel level) { in openSession()
375 auto res = drmPlugin->openSession_1_1(SecurityLevel::HW_SECURE_ALL, in TEST_F()
510 SecurityLevel defaultLevel; in TEST_F()
512 [&](Status status, SecurityLevel level) { in TEST_F()
521 [&](Status status, SecurityLevel level) { in TEST_F()
534 SessionId session = openSession(SecurityLevel::SW_SECURE_CRYPTO); in TEST_F()
536 [&](Status status, SecurityLevel level) { in TEST_F()
[all …]
/hardware/interfaces/keymaster/4.0/vts/functional/
DKeymasterHidlTest.cpp48 SecurityLevel KeymasterHidlTest::securityLevel_;
58 ->getHardwareInfo([&](SecurityLevel securityLevel, const hidl_string& name, in SetUpTestCase()
651 case SecurityLevel::TRUSTED_ENVIRONMENT: in ValidKeySizes()
653 case SecurityLevel::STRONGBOX: in ValidKeySizes()
662 case SecurityLevel::TRUSTED_ENVIRONMENT: in ValidKeySizes()
664 case SecurityLevel::STRONGBOX: in ValidKeySizes()
689 if (SecLevel() == SecurityLevel::TRUSTED_ENVIRONMENT) return {}; in InvalidKeySizes()
690 CHECK(SecLevel() == SecurityLevel::STRONGBOX); in InvalidKeySizes()
704 if (securityLevel_ == SecurityLevel::STRONGBOX) { in ValidCurves()
712 if (SecLevel() == SecurityLevel::TRUSTED_ENVIRONMENT) return {}; in InvalidCurves()
[all …]
DKeymasterHidlTest.h213 static bool IsSecure() { return securityLevel_ != SecurityLevel::SOFTWARE; } in IsSecure()
214 static SecurityLevel SecLevel() { return securityLevel_; } in SecLevel()
235 static SecurityLevel securityLevel_;
DVerificationTokenTest.cpp84 if (SecLevel() == SecurityLevel::STRONGBOX) { in TEST_F()
Dkeymaster_hidl_hal_test.cpp321 AuthorizationSet expected_hw_enforced, SecurityLevel security_level, in verify_attestation_record()
336 SecurityLevel att_attestation_security_level; in verify_attestation_record()
337 SecurityLevel att_keymaster_security_level; in verify_attestation_record()
691 if (SecLevel() == SecurityLevel::STRONGBOX) return; in TEST_F()
723 if (SecLevel() == SecurityLevel::STRONGBOX) { in TEST_F()
846 if (SecLevel() == SecurityLevel::STRONGBOX) return; in TEST_F()
1000 if (SecLevel() == SecurityLevel::STRONGBOX) return; in TEST_F()
1085 if (SecLevel() == SecurityLevel::STRONGBOX) return; in TEST_F()
1501 if (SecLevel() != SecurityLevel::STRONGBOX) { in TEST_F()
1535 if (SecLevel() != SecurityLevel::STRONGBOX) { in TEST_F()
[all …]
/hardware/interfaces/keymaster/4.0/support/
DKeymaster4.cpp32 dev_->getHardwareInfo([&](SecurityLevel securityLevel, const hidl_string& keymasterName, in getVersionIfNeeded()
Dattestation_record.cpp279 SecurityLevel* attestation_security_level, in MAKE_OPENSSL_PTR_TYPE()
281 SecurityLevel* keymaster_security_level, in MAKE_OPENSSL_PTR_TYPE()
292 static_cast<SecurityLevel>(ASN1_ENUMERATED_get(record->attestation_security_level)); in MAKE_OPENSSL_PTR_TYPE()
295 static_cast<SecurityLevel>(ASN1_ENUMERATED_get(record->keymaster_security_level)); in MAKE_OPENSSL_PTR_TYPE()
DKeymaster3.cpp114 isSecure ? SecurityLevel::TRUSTED_ENVIRONMENT : SecurityLevel::SOFTWARE, in getVersionIfNeeded()
123 if (version_.securityLevel == SecurityLevel::SOFTWARE) { in getVersionIfNeeded()
/hardware/interfaces/drm/1.2/
DIDrmFactory.hal20 import @1.1::SecurityLevel;
50 @1.1::SecurityLevel securityLevel) generates(bool isSupported);
/hardware/interfaces/drm/1.2/vts/functional/
Ddrm_hal_test.cpp28 using ::android::hardware::drm::V1_1::SecurityLevel;
49 static const SecurityLevel kSwSecureCrypto = SecurityLevel::SW_SECURE_CRYPTO;
424 const SecurityLevel kHwSecureAll = SecurityLevel::HW_SECURE_ALL; in TEST_P()
/hardware/interfaces/drm/1.1/
DIDrmPlugin.hal28 import @1.1::SecurityLevel;
62 openSession_1_1(SecurityLevel securityLevel) generates (Status status,
178 SecurityLevel level);
Dtypes.hal177 enum SecurityLevel : uint32_t {
/hardware/interfaces/keymaster/4.0/
DIKeymasterDevice.hal58 * are identified by the SecurityLevel TRUSTED_ENVIRONMENT.
62 * units (SPU). StrongBox environments are identified by the SecurityLevel STRONGBOX. To
212 generates (SecurityLevel securityLevel, string keymasterName, string keymasterAuthorName);
686 * attestationSecurityLevel SecurityLevel, # See below
688 * keymasterSecurityLevel SecurityLevel, # See below
695 * SecurityLevel ::= ENUMERATED {
Dtypes.hal1112 enum SecurityLevel : uint32_t {
1153 SecurityLevel hardwareType;
1298 * SecurityLevel of the secure environment that generated the token.
1300 SecurityLevel securityLevel;
/hardware/interfaces/keymaster/3.0/
Dtypes.hal421 enum SecurityLevel : uint32_t {