/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/fuzzer/ |
D | README.md | 19 …SecurityLevel::UNKNOWN` 1.`SecurityLevel::SW_SECURE_CRYPTO` 2.`SecurityLevel::SW_SECURE_DECODE` 3.…
|
D | clearkeyV1.4_fuzzer.cpp | 60 using drm::V1_1::SecurityLevel; 86 const SecurityLevel kSecurityLevel[] = { 87 SecurityLevel::UNKNOWN, SecurityLevel::SW_SECURE_CRYPTO, 88 SecurityLevel::SW_SECURE_DECODE, SecurityLevel::HW_SECURE_CRYPTO, 89 SecurityLevel::HW_SECURE_DECODE, SecurityLevel::HW_SECURE_ALL}; 327 SecurityLevel securityLevel; in invokeDrmDecryptEncryptAPI() 329 [&](Status status, SecurityLevel hLevel) { in invokeDrmDecryptEncryptAPI() 514 SecurityLevel secLevel = in invokeDrmPlugin() 517 : static_cast<SecurityLevel>(mFDP->ConsumeIntegral<uint32_t>()); in invokeDrmPlugin() 631 SecurityLevel securityLevel = in invokeDrmFactory() [all …]
|
/frameworks/base/services/core/java/com/android/server/security/ |
D | AndroidKeystoreAttestationVerificationAttributes.java | 105 private SecurityLevel mAttestationSecurityLevel = null; 108 private SecurityLevel mKeymasterSecurityLevel = null; 136 enum SecurityLevel { enum in AndroidKeystoreAttestationVerificationAttributes 159 SecurityLevel getAttestationSecurityLevel() { in getAttestationSecurityLevel() 172 SecurityLevel getKeymasterSecurityLevel() { in getKeymasterSecurityLevel() 299 this.mAttestationSecurityLevel == SecurityLevel.TRUSTED_ENVIRONMENT; in AndroidKeystoreAttestationVerificationAttributes() 309 this.mKeymasterSecurityLevel == SecurityLevel.TRUSTED_ENVIRONMENT; in AndroidKeystoreAttestationVerificationAttributes() 422 private SecurityLevel getSecurityLevelEnum(ASN1Encodable asn1) { in getSecurityLevelEnum() 426 return SecurityLevel.SOFTWARE; in getSecurityLevelEnum() 428 return SecurityLevel.TRUSTED_ENVIRONMENT; in getSecurityLevelEnum() [all …]
|
/frameworks/av/drm/libmediadrm/ |
D | DrmHalAidl.cpp | 54 using ::aidl::android::hardware::drm::SecurityLevel; 201 static DrmPlugin::SecurityLevel toSecurityLevel(SecurityLevel level) { in toSecurityLevel() 203 case SecurityLevel::SW_SECURE_CRYPTO: in toSecurityLevel() 205 case SecurityLevel::SW_SECURE_DECODE: in toSecurityLevel() 207 case SecurityLevel::HW_SECURE_CRYPTO: in toSecurityLevel() 209 case SecurityLevel::HW_SECURE_DECODE: in toSecurityLevel() 211 case SecurityLevel::HW_SECURE_ALL: in toSecurityLevel() 213 case SecurityLevel::DEFAULT: in toSecurityLevel() 220 static SecurityLevel toAidlSecurityLevel(DrmPlugin::SecurityLevel level) { in toAidlSecurityLevel() 223 return SecurityLevel::SW_SECURE_CRYPTO; in toAidlSecurityLevel() [all …]
|
D | DrmHalHidl.cpp | 63 using drm::V1_1::SecurityLevel; 126 static DrmPlugin::SecurityLevel toSecurityLevel(SecurityLevel level) { in toSecurityLevel() 128 case SecurityLevel::SW_SECURE_CRYPTO: in toSecurityLevel() 130 case SecurityLevel::SW_SECURE_DECODE: in toSecurityLevel() 132 case SecurityLevel::HW_SECURE_CRYPTO: in toSecurityLevel() 134 case SecurityLevel::HW_SECURE_DECODE: in toSecurityLevel() 136 case SecurityLevel::HW_SECURE_ALL: in toSecurityLevel() 143 static SecurityLevel toHidlSecurityLevel(DrmPlugin::SecurityLevel level) { in toHidlSecurityLevel() 146 return SecurityLevel::SW_SECURE_CRYPTO; in toHidlSecurityLevel() 148 return SecurityLevel::SW_SECURE_DECODE; in toHidlSecurityLevel() [all …]
|
D | DrmHal.cpp | 41 DrmPlugin::SecurityLevel securityLevel, bool* result) { in isCryptoSchemeSupported() 62 status_t DrmHal::openSession(DrmPlugin::SecurityLevel securityLevel, Vector<uint8_t>& sessionId) { in openSession() 165 DrmPlugin::SecurityLevel* level) const { in getSecurityLevel() 272 status_t DrmHal::requiresSecureDecoder(const char* mime, DrmPlugin::SecurityLevel securityLevel, in requiresSecureDecoder()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | DrmFactory.cpp | 38 using ::android::hardware::drm::V1_1::SecurityLevel; 50 SecurityLevel level) { in isCryptoSchemeSupported_1_2() 52 level == SecurityLevel::SW_SECURE_CRYPTO; in isCryptoSchemeSupported_1_2()
|
D | DrmPlugin.cpp | 130 Status status = setSecurityLevel(sessionId, SecurityLevel::SW_SECURE_CRYPTO); in openSession() 136 Return<void> DrmPlugin::openSession_1_1(SecurityLevel securityLevel, in openSession_1_1() 611 _hidl_cb(Status::BAD_VALUE, SecurityLevel::UNKNOWN); in getSecurityLevel() 618 _hidl_cb(Status::ERROR_DRM_SESSION_NOT_OPENED, SecurityLevel::UNKNOWN); in getSecurityLevel() 623 std::map<std::vector<uint8_t>, SecurityLevel>::iterator itr = in getSecurityLevel() 627 _hidl_cb(Status::ERROR_DRM_INVALID_STATE, SecurityLevel::UNKNOWN); in getSecurityLevel() 651 const hidl_string& mime, SecurityLevel level) { in requiresSecureDecoder() 678 SecurityLevel level) { in setSecurityLevel() 684 if (level > SecurityLevel::SW_SECURE_CRYPTO) { in setSecurityLevel() 696 std::map<std::vector<uint8_t>, SecurityLevel>::iterator itr = in setSecurityLevel() [all …]
|
/frameworks/base/tests/AttestationVerificationTest/src/com/android/server/security/ |
D | AndroidKeystoreAttestationVerificationAttributesTest.java | 99 AndroidKeystoreAttestationVerificationAttributes.SecurityLevel.TRUSTED_ENVIRONMENT); in parseCertificate_attestationSecurityLevel() 101 AndroidKeystoreAttestationVerificationAttributes.SecurityLevel.TRUSTED_ENVIRONMENT); in parseCertificate_attestationSecurityLevel() 103 AndroidKeystoreAttestationVerificationAttributes.SecurityLevel.SOFTWARE); in parseCertificate_attestationSecurityLevel() 123 AndroidKeystoreAttestationVerificationAttributes.SecurityLevel.TRUSTED_ENVIRONMENT); in parseCertificate_keymasterSecurityLevel() 125 AndroidKeystoreAttestationVerificationAttributes.SecurityLevel.TRUSTED_ENVIRONMENT); in parseCertificate_keymasterSecurityLevel() 127 AndroidKeystoreAttestationVerificationAttributes.SecurityLevel.SOFTWARE); in parseCertificate_keymasterSecurityLevel()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/ |
D | DrmFactory.cpp | 38 using ::aidl::android::hardware::drm::SecurityLevel; 87 const auto minLevel = SecurityLevel::SW_SECURE_CRYPTO; in getSupportedCryptoSchemes() 88 const auto maxLevel = SecurityLevel::SW_SECURE_CRYPTO; in getSupportedCryptoSchemes()
|
D | DrmPlugin.cpp | 464 ::aidl::android::hardware::drm::SecurityLevel* _aidl_return) { in getSecurityLevel() 466 *_aidl_return = ::aidl::android::hardware::drm::SecurityLevel::UNKNOWN; in getSecurityLevel() 473 *_aidl_return = SecurityLevel::UNKNOWN; in getSecurityLevel() 477 std::map<std::vector<uint8_t>, ::aidl::android::hardware::drm::SecurityLevel>::iterator itr = in getSecurityLevel() 481 *_aidl_return = SecurityLevel::UNKNOWN; in getSecurityLevel() 485 *_aidl_return = SecurityLevel::SW_SECURE_CRYPTO; in getSecurityLevel() 490 ::aidl::android::hardware::drm::SecurityLevel in_securityLevel, in openSession() 763 const std::string& in_mime, ::aidl::android::hardware::drm::SecurityLevel in_level, in requiresSecureDecoder() 995 Status DrmPlugin::setSecurityLevel(const std::vector<uint8_t>& sessionId, SecurityLevel level) { in setSecurityLevel() 1001 if (level != SecurityLevel::DEFAULT && level != SecurityLevel::SW_SECURE_CRYPTO) { in setSecurityLevel() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/ |
D | DrmFactory.h | 31 using ::android::hardware::drm::V1_1::SecurityLevel; 46 SecurityLevel level) override;
|
D | DrmPlugin.h | 52 using drm::V1_1::SecurityLevel; 78 Return<void> openSession_1_1(SecurityLevel securityLevel, 213 const hidl_string& mime, SecurityLevel level) override; 395 SecurityLevel level); 417 std::map<std::vector<uint8_t>, SecurityLevel> mSecurityLevel
|
D | ClearKeyTypes.h | 31 using ::android::hardware::drm::V1_1::SecurityLevel;
|
/frameworks/av/drm/libmediadrm/include/mediadrm/ |
D | DrmHalHidl.h | 39 using drm::V1_1::SecurityLevel; 70 DrmPlugin::SecurityLevel level, 78 virtual status_t openSession(DrmPlugin::SecurityLevel level, 125 DrmPlugin::SecurityLevel *level) const; 179 virtual status_t requiresSecureDecoder(const char *mime, DrmPlugin::SecurityLevel securityLevel, 247 DrmPlugin::SecurityLevel level,
|
D | DrmHal.h | 30 DrmPlugin::SecurityLevel securityLevel, 35 virtual status_t openSession(DrmPlugin::SecurityLevel securityLevel, 71 DrmPlugin::SecurityLevel *level) const; 114 virtual status_t requiresSecureDecoder(const char *mime, DrmPlugin::SecurityLevel securityLevel,
|
D | IDrm.h | 47 DrmPlugin::SecurityLevel securityLevel, 55 virtual status_t openSession(DrmPlugin::SecurityLevel securityLevel, 103 DrmPlugin::SecurityLevel *level) const = 0; 159 virtual status_t requiresSecureDecoder(const char *mime, DrmPlugin::SecurityLevel securityLevel,
|
D | DrmHalAidl.h | 43 DrmPlugin::SecurityLevel securityLevel, bool* result); 46 virtual status_t openSession(DrmPlugin::SecurityLevel securityLevel, 76 DrmPlugin::SecurityLevel* level) const; 104 virtual status_t requiresSecureDecoder(const char* mime, DrmPlugin::SecurityLevel securityLevel,
|
/frameworks/base/keystore/java/android/security/keystore2/ |
D | KeyStore2ParameterUtils.java | 23 import android.hardware.security.keymint.SecurityLevel; 196 static boolean isSecureHardware(@SecurityLevel int securityLevel) { in isSecureHardware() 197 return securityLevel == SecurityLevel.TRUSTED_ENVIRONMENT in isSecureHardware() 198 || securityLevel == SecurityLevel.STRONGBOX; in isSecureHardware()
|
D | AndroidKeyStoreKeyGeneratorSpi.java | 20 import android.hardware.security.keymint.SecurityLevel; 378 @SecurityLevel int securityLevel = SecurityLevel.TRUSTED_ENVIRONMENT; in engineGenerateKey() 380 securityLevel = SecurityLevel.STRONGBOX; in engineGenerateKey()
|
D | AndroidKeyStoreSpi.java | 23 import android.hardware.security.keymint.SecurityLevel; 331 @SecurityLevel int securitylevel = SecurityLevel.TRUSTED_ENVIRONMENT; in setPrivateKeyEntry() 352 securitylevel = SecurityLevel.STRONGBOX; in setPrivateKeyEntry() 795 @SecurityLevel int securityLevel = params.isStrongBoxBacked() ? SecurityLevel.STRONGBOX : in setSecretKeyEntry() 796 SecurityLevel.TRUSTED_ENVIRONMENT; in setSecretKeyEntry()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/include/ |
D | DrmPlugin.h | 91 ::aidl::android::hardware::drm::SecurityLevel* _aidl_return) override; 92 ::ndk::ScopedAStatus openSession(::aidl::android::hardware::drm::SecurityLevel in_securityLevel, 115 const std::string& in_mime, ::aidl::android::hardware::drm::SecurityLevel in_level, 166 Status setSecurityLevel(const std::vector<uint8_t>& sessionId, SecurityLevel level); 185 std::map<std::vector<uint8_t>, SecurityLevel> mSecurityLevel;
|
/frameworks/base/core/java/android/security/keymaster/ |
D | KeymasterDefs.java | 28 import android.hardware.security.keymint.SecurityLevel; 199 public static final int KM_SECURITY_LEVEL_SOFTWARE = SecurityLevel.SOFTWARE; 201 SecurityLevel.TRUSTED_ENVIRONMENT; 202 public static final int KM_SECURITY_LEVEL_STRONGBOX = SecurityLevel.STRONGBOX;
|
/frameworks/av/drm/libmediadrm/fuzzer/ |
D | mediadrm_fuzzer.cpp | 58 const DrmPlugin::SecurityLevel kSecurityLevel[] = { 166 DrmPlugin::SecurityLevel securityLevel; in invokeDrmOpenSession() 170 static_cast<DrmPlugin::SecurityLevel>(mFuzzedDataProvider->ConsumeIntegral<size_t>()); in invokeDrmOpenSession() 210 DrmPlugin::SecurityLevel securityLevel; in invokeDrmDecryptEncryptAPI()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
D | DrmPlugin.h | 152 SecurityLevel *level) const { in getSecurityLevel() 159 const SecurityLevel& level) { in setSecurityLevel()
|