Home
last modified time | relevance | path

Searched refs:securityLevel (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreRSAPublicKey.java40 @NonNull KeyStoreSecurityLevel securityLevel, @NonNull BigInteger modulus, in AndroidKeyStoreRSAPublicKey() argument
43 securityLevel); in AndroidKeyStoreRSAPublicKey()
50 @NonNull KeyStoreSecurityLevel securityLevel, @NonNull RSAPublicKey info) { in AndroidKeyStoreRSAPublicKey() argument
51 this(descriptor, metadata, info.getEncoded(), securityLevel, info.getModulus(), in AndroidKeyStoreRSAPublicKey()
DAndroidKeyStoreSecretKeyFactorySpi.java72 @KeyProperties.SecurityLevelEnum int securityLevel = in getKeyInfo() local
102 KeyStore2ParameterUtils.isSecureHardware(a.securityLevel); in getKeyInfo()
103 securityLevel = a.securityLevel; in getKeyInfo()
151 if (KeyStore2ParameterUtils.isSecureHardware(a.securityLevel)) { in getKeyInfo()
190 KeyStore2ParameterUtils.isSecureHardware(a.securityLevel); in getKeyInfo()
194 KeyStore2ParameterUtils.isSecureHardware(a.securityLevel); in getKeyInfo()
198 KeyStore2ParameterUtils.isSecureHardware(a.securityLevel); in getKeyInfo()
265 securityLevel, in getKeyInfo()
DAndroidKeyStoreECPublicKey.java44 @NonNull KeyStoreSecurityLevel securityLevel, in AndroidKeyStoreECPublicKey() argument
46 super(descriptor, metadata, x509EncodedForm, KeyProperties.KEY_ALGORITHM_EC, securityLevel); in AndroidKeyStoreECPublicKey()
53 @NonNull KeyStoreSecurityLevel securityLevel, @NonNull ECPublicKey info) { in AndroidKeyStoreECPublicKey() argument
54 this(descriptor, metadata, info.getEncoded(), securityLevel, info.getParams(), info.getW()); in AndroidKeyStoreECPublicKey()
DAndroidKeyStorePrivateKey.java35 @NonNull KeyStoreSecurityLevel securityLevel) { in AndroidKeyStorePrivateKey() argument
36 super(descriptor, keyId, authorizations, algorithm, securityLevel); in AndroidKeyStorePrivateKey()
DAndroidKeyStoreSecretKey.java35 @NonNull KeyStoreSecurityLevel securityLevel) { in AndroidKeyStoreSecretKey() argument
36 super(descriptor, metadata.key.nspace, metadata.authorizations, algorithm, securityLevel); in AndroidKeyStoreSecretKey()
DAndroidKeyStoreEdECPrivateKey.java38 @NonNull KeyStoreSecurityLevel securityLevel) { in AndroidKeyStoreEdECPrivateKey() argument
39 super(descriptor, keyId, authorizations, algorithm, securityLevel); in AndroidKeyStoreEdECPrivateKey()
DAndroidKeyStoreRSAPrivateKey.java42 @NonNull KeyStoreSecurityLevel securityLevel, @NonNull BigInteger modulus) { in AndroidKeyStoreRSAPrivateKey() argument
43 super(descriptor, keyId, authorizations, KeyProperties.KEY_ALGORITHM_RSA, securityLevel); in AndroidKeyStoreRSAPrivateKey()
DAndroidKeyStoreXDHPrivateKey.java41 @NonNull KeyStoreSecurityLevel securityLevel) { in AndroidKeyStoreXDHPrivateKey() argument
42 super(descriptor, keyId, authorizations, algorithm, securityLevel); in AndroidKeyStoreXDHPrivateKey()
DAndroidKeyStoreECPrivateKey.java40 @NonNull KeyStoreSecurityLevel securityLevel, in AndroidKeyStoreECPrivateKey() argument
42 super(descriptor, keyId, authorizations, KeyProperties.KEY_ALGORITHM_EC, securityLevel); in AndroidKeyStoreECPrivateKey()
DAndroidKeyStorePublicKey.java40 @NonNull String algorithm, @NonNull KeyStoreSecurityLevel securityLevel) { in AndroidKeyStorePublicKey() argument
41 super(descriptor, metadata.key.nspace, metadata.authorizations, algorithm, securityLevel); in AndroidKeyStorePublicKey()
DAndroidKeyStoreKey.java59 @NonNull KeyStoreSecurityLevel securityLevel) { in AndroidKeyStoreKey() argument
64 mSecurityLevel = securityLevel; in AndroidKeyStoreKey()
DKeyStore2ParameterUtils.java97 kp.value = KeyParameterValue.securityLevel(v); in makeEnum()
197 static boolean isSecureHardware(@SecurityLevel int securityLevel) { in isSecureHardware() argument
198 return securityLevel == SecurityLevel.TRUSTED_ENVIRONMENT in isSecureHardware()
199 || securityLevel == SecurityLevel.STRONGBOX; in isSecureHardware()
DAndroidKeyStoreKeyGeneratorSpi.java380 @SecurityLevel int securityLevel = SecurityLevel.TRUSTED_ENVIRONMENT; in engineGenerateKey() local
382 securityLevel = SecurityLevel.STRONGBOX; in engineGenerateKey()
401 iSecurityLevel = mKeyStore.getSecurityLevel(securityLevel); in engineGenerateKey()
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp43 DrmPlugin::SecurityLevel securityLevel, bool* result) { in isCryptoSchemeSupported() argument
45 mDrmHalAidl->isCryptoSchemeSupported(uuid, mimeType, securityLevel, result); in isCryptoSchemeSupported()
47 return mDrmHalHidl->isCryptoSchemeSupported(uuid, mimeType, securityLevel, result); in isCryptoSchemeSupported()
63 DrmStatus DrmHal::openSession(DrmPlugin::SecurityLevel securityLevel, Vector<uint8_t>& sessionId) { in openSession() argument
64 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->openSession(securityLevel, sessionId); in openSession()
65 return mDrmHalHidl->openSession(securityLevel, sessionId); in openSession()
273 DrmStatus DrmHal::requiresSecureDecoder(const char* mime, DrmPlugin::SecurityLevel securityLevel, in requiresSecureDecoder() argument
276 return mDrmHalAidl->requiresSecureDecoder(mime, securityLevel, required); in requiresSecureDecoder()
277 return mDrmHalHidl->requiresSecureDecoder(mime, securityLevel, required); in requiresSecureDecoder()
DDrmMetricsLogger.cpp99 int DrmPluginSecurityLevelToJavaSecurityLevel(DrmPlugin::SecurityLevel securityLevel) { in DrmPluginSecurityLevelToJavaSecurityLevel() argument
104 switch (securityLevel) { in DrmPluginSecurityLevelToJavaSecurityLevel()
114 return static_cast<int>(securityLevel); in DrmPluginSecurityLevelToJavaSecurityLevel()
128 DrmPlugin::SecurityLevel securityLevel, in isCryptoSchemeSupported() argument
130 DrmStatus status = mImpl->isCryptoSchemeSupported(uuid, mimeType, securityLevel, result); in isCryptoSchemeSupported()
171 DrmStatus DrmMetricsLogger::openSession(DrmPlugin::SecurityLevel securityLevel, in openSession() argument
177 DrmStatus status = mImpl->openSession(securityLevel, sessionId); in openSession()
180 ctx.mTargetSecurityLevel = securityLevel; in openSession()
509 DrmPlugin::SecurityLevel securityLevel, in requiresSecureDecoder() argument
511 DrmStatus status = mImpl->requiresSecureDecoder(mime, securityLevel, required); in requiresSecureDecoder()
/frameworks/av/drm/libmediadrm/fuzzer/
Dmediadrm_fuzzer.cpp166 DrmPlugin::SecurityLevel securityLevel; in invokeDrmOpenSession() local
169 securityLevel = in invokeDrmOpenSession()
172 securityLevel = kSecurityLevel[mFuzzedDataProvider->ConsumeIntegralInRange<size_t>( in invokeDrmOpenSession()
175 mDrm->openSession(securityLevel, mSessionId); in invokeDrmOpenSession()
210 DrmPlugin::SecurityLevel securityLevel; in invokeDrmDecryptEncryptAPI() local
211 mDrm->getSecurityLevel(mSessionId, &securityLevel); in invokeDrmDecryptEncryptAPI()
217 mDrm->isCryptoSchemeSupported(kClearKeyUUID, mimeType, securityLevel, &isSupported); in invokeDrmDecryptEncryptAPI()
DREADME.md12 1. Security Level (parameter name: `securityLevel`)
19 | `securityLevel` | 0.`DrmPlugin::kSecurityLevelUnknown` 1.`DrmPlugin::kSecurityLevelMax` 2.`DrmPlu…
/frameworks/base/keystore/java/android/security/
DKeyStoreSecurityLevel.java49 public KeyStoreSecurityLevel(IKeystoreSecurityLevel securityLevel) { in KeyStoreSecurityLevel() argument
50 Binder.allowBlocking(securityLevel.asBinder()); in KeyStoreSecurityLevel()
51 this.mSecurityLevel = securityLevel; in KeyStoreSecurityLevel()
DKeyStore2.java297 public KeyStoreSecurityLevel getSecurityLevel(int securityLevel) in getSecurityLevel() argument
301 service.getSecurityLevel(securityLevel) in getSecurityLevel()
/frameworks/av/drm/libmediadrm/include/mediadrm/
DDrmHal.h30 DrmPlugin::SecurityLevel securityLevel, bool* result);
34 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
114 DrmPlugin::SecurityLevel securityLevel,
DIDrm.h56 DrmPlugin::SecurityLevel securityLevel,
64 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
169 DrmPlugin::SecurityLevel securityLevel,
DDrmHalAidl.h44 DrmPlugin::SecurityLevel securityLevel, bool* result);
47 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
109 DrmPlugin::SecurityLevel securityLevel,
DDrmMetricsLogger.h100 DrmPlugin::SecurityLevel securityLevel,
108 virtual DrmStatus openSession(DrmPlugin::SecurityLevel securityLevel,
194 DrmPlugin::SecurityLevel securityLevel,
/frameworks/base/keystore/java/android/security/keystore/
DKeyProperties.java890 public static int toKeymaster(int securityLevel) { in toKeymaster() argument
891 switch (securityLevel) { in toKeymaster()
900 + securityLevel); in toKeymaster()
908 public static int fromKeymaster(int securityLevel) { in fromKeymaster() argument
909 switch (securityLevel) { in fromKeymaster()
918 + securityLevel); in fromKeymaster()
DKeyInfo.java116 @KeyProperties.SecurityLevelEnum int securityLevel, in KeyInfo() argument
142 mSecurityLevel = securityLevel; in KeyInfo()

12