Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/security/
DAndroidKeystoreAttestationVerificationAttributes.java106 private SecurityLevel mAttestationSecurityLevel = null;
109 private SecurityLevel mKeymasterSecurityLevel = null;
137 enum SecurityLevel { enum in AndroidKeystoreAttestationVerificationAttributes
160 SecurityLevel getAttestationSecurityLevel() { in getAttestationSecurityLevel()
173 SecurityLevel getKeymasterSecurityLevel() { in getKeymasterSecurityLevel()
300 this.mAttestationSecurityLevel == SecurityLevel.TRUSTED_ENVIRONMENT; in AndroidKeystoreAttestationVerificationAttributes()
310 this.mKeymasterSecurityLevel == SecurityLevel.TRUSTED_ENVIRONMENT; in AndroidKeystoreAttestationVerificationAttributes()
423 private SecurityLevel getSecurityLevelEnum(ASN1Encodable asn1) { in getSecurityLevelEnum()
427 return SecurityLevel.SOFTWARE; in getSecurityLevelEnum()
429 return SecurityLevel.TRUSTED_ENVIRONMENT; in getSecurityLevelEnum()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmHalAidl.cpp54 using ::aidl::android::hardware::drm::SecurityLevel;
202 static DrmPlugin::SecurityLevel toSecurityLevel(SecurityLevel level) { in toSecurityLevel()
204 case SecurityLevel::SW_SECURE_CRYPTO: in toSecurityLevel()
206 case SecurityLevel::SW_SECURE_DECODE: in toSecurityLevel()
208 case SecurityLevel::HW_SECURE_CRYPTO: in toSecurityLevel()
210 case SecurityLevel::HW_SECURE_DECODE: in toSecurityLevel()
212 case SecurityLevel::HW_SECURE_ALL: in toSecurityLevel()
214 case SecurityLevel::DEFAULT: in toSecurityLevel()
221 static SecurityLevel toAidlSecurityLevel(DrmPlugin::SecurityLevel level) { in toAidlSecurityLevel()
224 return SecurityLevel::SW_SECURE_CRYPTO; in toAidlSecurityLevel()
[all …]
DDrmHalHidl.cpp64 using drm::V1_1::SecurityLevel;
127 static DrmPlugin::SecurityLevel toSecurityLevel(SecurityLevel level) { in toSecurityLevel()
129 case SecurityLevel::SW_SECURE_CRYPTO: in toSecurityLevel()
131 case SecurityLevel::SW_SECURE_DECODE: in toSecurityLevel()
133 case SecurityLevel::HW_SECURE_CRYPTO: in toSecurityLevel()
135 case SecurityLevel::HW_SECURE_DECODE: in toSecurityLevel()
137 case SecurityLevel::HW_SECURE_ALL: in toSecurityLevel()
144 static SecurityLevel toHidlSecurityLevel(DrmPlugin::SecurityLevel level) { in toHidlSecurityLevel()
147 return SecurityLevel::SW_SECURE_CRYPTO; in toHidlSecurityLevel()
149 return SecurityLevel::SW_SECURE_DECODE; in toHidlSecurityLevel()
[all …]
DDrmHal.cpp43 DrmPlugin::SecurityLevel securityLevel, bool* result) { in isCryptoSchemeSupported()
63 DrmStatus DrmHal::openSession(DrmPlugin::SecurityLevel securityLevel, Vector<uint8_t>& sessionId) { in openSession()
166 DrmPlugin::SecurityLevel* level) const { in getSecurityLevel()
273 DrmStatus DrmHal::requiresSecureDecoder(const char* mime, DrmPlugin::SecurityLevel securityLevel, in requiresSecureDecoder()
DDrmMetricsLogger.cpp99 int DrmPluginSecurityLevelToJavaSecurityLevel(DrmPlugin::SecurityLevel securityLevel) { in DrmPluginSecurityLevelToJavaSecurityLevel()
128 DrmPlugin::SecurityLevel securityLevel, in isCryptoSchemeSupported()
171 DrmStatus DrmMetricsLogger::openSession(DrmPlugin::SecurityLevel securityLevel, in openSession()
350 DrmPlugin::SecurityLevel* level) const { in getSecurityLevel()
509 DrmPlugin::SecurityLevel securityLevel, in requiresSecureDecoder()
/frameworks/av/drm/libmediadrm/include/mediadrm/
DDrmMetricsLogger.h85 DrmPlugin::SecurityLevel mTargetSecurityLevel;
86 DrmPlugin::SecurityLevel mActualSecurityLevel;
100 DrmPlugin::SecurityLevel securityLevel,
108 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
151 DrmPlugin::SecurityLevel* level) const;
194 DrmPlugin::SecurityLevel securityLevel,
DDrmHalHidl.h40 using drm::V1_1::SecurityLevel;
70 DrmPlugin::SecurityLevel level, bool* isSupported);
77 virtual DrmStatus openSession(DrmPlugin::SecurityLevel level,
124 DrmPlugin::SecurityLevel *level) const;
179 DrmPlugin::SecurityLevel securityLevel,
247 DrmPlugin::SecurityLevel level,
DDrmHal.h30 DrmPlugin::SecurityLevel securityLevel, bool* result);
34 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
70 DrmPlugin::SecurityLevel *level) const;
114 DrmPlugin::SecurityLevel securityLevel,
DIDrm.h56 DrmPlugin::SecurityLevel securityLevel,
64 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
112 DrmPlugin::SecurityLevel *level) const = 0;
169 DrmPlugin::SecurityLevel securityLevel,
DDrmHalAidl.h44 DrmPlugin::SecurityLevel securityLevel, bool* result);
47 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
79 DrmPlugin::SecurityLevel* level) const;
109 DrmPlugin::SecurityLevel securityLevel,
/frameworks/base/tests/AttestationVerificationTest/src/com/android/server/security/
DAndroidKeystoreAttestationVerificationAttributesTest.java99 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/
DDrmFactory.cpp38 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()
DDrmPlugin.cpp495 ::aidl::android::hardware::drm::SecurityLevel* _aidl_return) { in getSecurityLevel()
497 *_aidl_return = ::aidl::android::hardware::drm::SecurityLevel::UNKNOWN; in getSecurityLevel()
504 *_aidl_return = SecurityLevel::UNKNOWN; in getSecurityLevel()
509 std::map<std::vector<uint8_t>, ::aidl::android::hardware::drm::SecurityLevel>::iterator itr = in getSecurityLevel()
513 *_aidl_return = SecurityLevel::UNKNOWN; in getSecurityLevel()
517 *_aidl_return = SecurityLevel::SW_SECURE_CRYPTO; in getSecurityLevel()
522 ::aidl::android::hardware::drm::SecurityLevel in_securityLevel, in openSession()
795 const std::string& in_mime, ::aidl::android::hardware::drm::SecurityLevel in_level, in requiresSecureDecoder()
1034 Status DrmPlugin::setSecurityLevel(const std::vector<uint8_t>& sessionId, SecurityLevel level) { in setSecurityLevel()
1040 if (level != SecurityLevel::DEFAULT && level != SecurityLevel::SW_SECURE_CRYPTO) { in setSecurityLevel()
[all …]
/frameworks/proto_logging/stats/atoms/media/
Dmedia_drm_atoms.proto55 optional android.media.drm.SecurityLevel security_level = 9;
90 optional android.media.drm.SecurityLevel requested_security_level = 8;
92 optional android.media.drm.SecurityLevel opened_security_level = 9;
120 optional android.media.drm.SecurityLevel opened_security_level = 9;
/frameworks/base/keystore/java/android/security/keystore2/
DKeyStore2ParameterUtils.java23 import android.hardware.security.keymint.SecurityLevel;
197 static boolean isSecureHardware(@SecurityLevel int securityLevel) { in isSecureHardware()
198 return securityLevel == SecurityLevel.TRUSTED_ENVIRONMENT in isSecureHardware()
199 || securityLevel == SecurityLevel.STRONGBOX; in isSecureHardware()
DAndroidKeyStoreKeyGeneratorSpi.java20 import android.hardware.security.keymint.SecurityLevel;
380 @SecurityLevel int securityLevel = SecurityLevel.TRUSTED_ENVIRONMENT; in engineGenerateKey()
382 securityLevel = SecurityLevel.STRONGBOX; in engineGenerateKey()
DAndroidKeyStoreSpi.java26 import android.hardware.security.keymint.SecurityLevel;
354 @SecurityLevel int securitylevel = SecurityLevel.TRUSTED_ENVIRONMENT; in setPrivateKeyEntry()
375 securitylevel = SecurityLevel.STRONGBOX; in setPrivateKeyEntry()
898 @SecurityLevel int securityLevel = params.isStrongBoxBacked() ? SecurityLevel.STRONGBOX : in setSecretKeyEntry()
899 SecurityLevel.TRUSTED_ENVIRONMENT; in setSecretKeyEntry()
DAndroidKeyStoreKeyPairGeneratorSpi.java27 import android.hardware.security.keymint.SecurityLevel;
471 boolean attestKeyInStrongBox = key.metadata.keySecurityLevel == SecurityLevel.STRONGBOX; in checkAttestKeySecurityLevel()
671 final @SecurityLevel int securityLevel = in generateKeyPair()
673 ? SecurityLevel.STRONGBOX in generateKeyPair()
674 : SecurityLevel.TRUSTED_ENVIRONMENT; in generateKeyPair()
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/include/
DDrmPlugin.h91 ::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,
169 Status setSecurityLevel(const std::vector<uint8_t>& sessionId, SecurityLevel level);
188 std::map<std::vector<uint8_t>, SecurityLevel> mSecurityLevel
/frameworks/base/core/java/android/security/keymaster/
DKeymasterDefs.java28 import android.hardware.security.keymint.SecurityLevel;
204 public static final int KM_SECURITY_LEVEL_SOFTWARE = SecurityLevel.SOFTWARE;
206 SecurityLevel.TRUSTED_ENVIRONMENT;
207 public static final int KM_SECURITY_LEVEL_STRONGBOX = SecurityLevel.STRONGBOX;
/frameworks/av/drm/libmediadrm/fuzzer/
Dmediadrm_fuzzer.cpp58 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/
DDrmPlugin.h152 SecurityLevel *level) const { in getSecurityLevel()
159 const SecurityLevel& level) { in setSecurityLevel()
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.h94 DrmPlugin::SecurityLevel level,
/frameworks/base/media/java/android/media/
DMediaDrm.java218 @NonNull UUID uuid, @NonNull String mimeType, @SecurityLevel int securityLevel) { in isCryptoSchemeSupported()
269 @NonNull byte[] uuid, @Nullable String mimeType, @SecurityLevel int securityLevel); in isCryptoSchemeSupportedNative()
1446 public byte[] openSession(@SecurityLevel int level) throws
2146 public @interface SecurityLevel {}
2214 @SecurityLevel
2627 public native boolean requiresSecureDecoder(@NonNull String mime, @SecurityLevel int level);
/frameworks/proto_logging/stats/enums/media/drm/
Denums.proto72 enum SecurityLevel { enum

12