Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreBCWorkaroundProvider.java230 private void putMacImpl(String algorithm, String implClass) { in putMacImpl() argument
231 put("Mac." + algorithm, implClass); in putMacImpl()
232 put("Mac." + algorithm + " SupportedKeyClasses", KEYSTORE_SECRET_KEY_CLASS_NAME); in putMacImpl()
246 private void putSignatureImpl(String algorithm, String implClass) { in putSignatureImpl() argument
247 put("Signature." + algorithm, implClass); in putSignatureImpl()
248 put("Signature." + algorithm + " SupportedKeyClasses", in putSignatureImpl()
DKeyProperties.java172 @NonNull @KeyAlgorithmEnum String algorithm) { in toKeymasterAsymmetricKeyAlgorithm()
173 if (KEY_ALGORITHM_EC.equalsIgnoreCase(algorithm)) { in toKeymasterAsymmetricKeyAlgorithm()
175 } else if (KEY_ALGORITHM_RSA.equalsIgnoreCase(algorithm)) { in toKeymasterAsymmetricKeyAlgorithm()
178 throw new IllegalArgumentException("Unsupported key algorithm: " + algorithm); in toKeymasterAsymmetricKeyAlgorithm()
197 @NonNull @KeyAlgorithmEnum String algorithm) { in toKeymasterSecretKeyAlgorithm()
198 if (KEY_ALGORITHM_AES.equalsIgnoreCase(algorithm)) { in toKeymasterSecretKeyAlgorithm()
200 } else if (algorithm.toUpperCase(Locale.US).startsWith("HMAC")) { in toKeymasterSecretKeyAlgorithm()
204 "Unsupported secret key algorithm: " + algorithm); in toKeymasterSecretKeyAlgorithm()
241 public static int toKeymasterDigest(@NonNull @KeyAlgorithmEnum String algorithm) { in toKeymasterDigest() argument
242 String algorithmUpper = algorithm.toUpperCase(Locale.US); in toKeymasterDigest()
DAndroidKeyStoreSecretKey.java28 public AndroidKeyStoreSecretKey(String alias, String algorithm) { in AndroidKeyStoreSecretKey() argument
29 super(alias, algorithm); in AndroidKeyStoreSecretKey()
DAndroidKeyStorePrivateKey.java28 public AndroidKeyStorePrivateKey(String alias, String algorithm) { in AndroidKeyStorePrivateKey() argument
29 super(alias, algorithm); in AndroidKeyStorePrivateKey()
DAndroidKeyStorePublicKey.java31 public AndroidKeyStorePublicKey(String alias, String algorithm, byte[] x509EncodedForm) { in AndroidKeyStorePublicKey() argument
32 super(alias, algorithm); in AndroidKeyStorePublicKey()
DAndroidKeyStoreKey.java30 public AndroidKeyStoreKey(String alias, String algorithm) { in AndroidKeyStoreKey() argument
32 mAlgorithm = algorithm; in AndroidKeyStoreKey()
DAndroidKeyStoreProvider.java121 private void putSecretKeyFactoryImpl(String algorithm) { in putSecretKeyFactoryImpl() argument
122 put("SecretKeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreSecretKeyFactorySpi"); in putSecretKeyFactoryImpl()
125 private void putKeyFactoryImpl(String algorithm) { in putKeyFactoryImpl() argument
126 put("KeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreKeyFactorySpi"); in putKeyFactoryImpl()
/frameworks/av/drm/mediadrm/plugins/clearkey/
DDrmPlugin.h157 const Vector<uint8_t>& sessionId, const String8& algorithm) { in setCipherAlgorithm() argument
159 UNUSED(algorithm); in setCipherAlgorithm()
164 const Vector<uint8_t>& sessionId, const String8& algorithm) { in setMacAlgorithm() argument
166 UNUSED(algorithm); in setMacAlgorithm()
225 const String8& algorithm, in signRSA() argument
230 UNUSED(algorithm); in signRSA()
/frameworks/support/v4/java/android/support/v4/text/
DTextDirectionHeuristicsCompat.java114 public TextDirectionHeuristicImpl(TextDirectionAlgorithm algorithm) { in TextDirectionHeuristicImpl() argument
115 mAlgorithm = algorithm; in TextDirectionHeuristicImpl()
154 private TextDirectionHeuristicInternal(TextDirectionAlgorithm algorithm, in TextDirectionHeuristicInternal() argument
156 super(algorithm); in TextDirectionHeuristicInternal()
/frameworks/base/core/java/android/text/
DTextDirectionHeuristics.java138 public TextDirectionHeuristicImpl(TextDirectionAlgorithm algorithm) { in TextDirectionHeuristicImpl() argument
139 mAlgorithm = algorithm; in TextDirectionHeuristicImpl()
178 private TextDirectionHeuristicInternal(TextDirectionAlgorithm algorithm, in TextDirectionHeuristicInternal() argument
180 super(algorithm); in TextDirectionHeuristicInternal()
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/
DMediaDrmSigner.java134 String algorithm, byte[] wrappedKey, byte[] message) { in signRSA() argument
135 return drm.signRSA(sessionId, algorithm, wrappedKey, message); in signRSA()
/frameworks/base/keystore/java/android/security/
DKeyChain.java439 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isKeyAlgorithmSupported()
440 final String algUpper = algorithm.toUpperCase(Locale.US); in isKeyAlgorithmSupported()
466 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isBoundKeyAlgorithm()
467 if (!isKeyAlgorithmSupported(algorithm)) { in isBoundKeyAlgorithm()
471 return KeyStore.getInstance().isHardwareBacked(algorithm); in isBoundKeyAlgorithm()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DSSLSocketFactory.java183 String algorithm, in SSLSocketFactory() argument
192 if (algorithm == null) { in SSLSocketFactory()
193 algorithm = TLS; in SSLSocketFactory()
203 this.sslcontext = SSLContext.getInstance(algorithm); in SSLSocketFactory()
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp518 String8 const &algorithm) in setCipherAlgorithm() argument
523 vectorToString(sessionId).string(), algorithm.string()); in setCipherAlgorithm()
531 if (algorithm == "AES/CBC/NoPadding") { in setCipherAlgorithm()
538 String8 const &algorithm) in setMacAlgorithm() argument
543 vectorToString(sessionId).string(), algorithm.string()); in setMacAlgorithm()
551 if (algorithm == "HmacSHA256") { in setMacAlgorithm()
710 String8 const &algorithm, in signRSA() argument
719 algorithm.string(), in signRSA()
729 mStringProperties.add(String8("mock-algorithm"), algorithm); in signRSA()
DMockDrmCryptoPlugin.h106 String8 const &algorithm);
109 String8 const &algorithm);
135 String8 const &algorithm,
/frameworks/av/include/media/
DIDrm.h91 String8 const &algorithm) = 0;
94 String8 const &algorithm) = 0;
120 String8 const &algorithm,
/frameworks/av/media/libmedia/
DIDrm.cpp409 String8 const &algorithm) { in setCipherAlgorithm()
414 data.writeString8(algorithm); in setCipherAlgorithm()
423 String8 const &algorithm) { in setMacAlgorithm()
428 data.writeString8(algorithm); in setMacAlgorithm()
522 String8 const &algorithm, in signRSA()
530 data.writeString8(algorithm); in signRSA()
851 String8 algorithm = data.readString8(); in onTransact() local
852 reply->writeInt32(setCipherAlgorithm(sessionId, algorithm)); in onTransact()
861 String8 algorithm = data.readString8(); in onTransact() local
862 reply->writeInt32(setMacAlgorithm(sessionId, algorithm)); in onTransact()
[all …]
/frameworks/av/media/libmediaplayerservice/
DDrm.h96 String8 const &algorithm);
99 String8 const &algorithm);
125 String8 const &algorithm,
DDrm.cpp655 String8 const &algorithm) { in setCipherAlgorithm() argument
668 return mPlugin->setCipherAlgorithm(sessionId, algorithm); in setCipherAlgorithm()
672 String8 const &algorithm) { in setMacAlgorithm() argument
685 return mPlugin->setMacAlgorithm(sessionId, algorithm); in setMacAlgorithm()
768 String8 const &algorithm, in signRSA() argument
788 return mPlugin->signRSA(sessionId, algorithm, message, wrappedKey, signature); in signRSA()
/frameworks/base/core/tests/coretests/src/android/net/http/
DDefaultHttpClientTest.java125 private void authenticateDigestAlgorithm(String algorithm) throws Exception { in authenticateDigestAlgorithm() argument
128 + "algorithm=" + algorithm; in authenticateDigestAlgorithm()
/frameworks/native/include/media/drm/
DDrmAPI.h285 String8 const &algorithm) = 0;
294 String8 const &algorithm) = 0;
336 String8 const &algorithm,
/frameworks/base/media/java/android/media/
DMediaDrm.java1037 @NonNull MediaDrm drm, @NonNull byte[] sessionId, @NonNull String algorithm); in setCipherAlgorithmNative() argument
1040 @NonNull MediaDrm drm, @NonNull byte[] sessionId, @NonNull String algorithm); in setMacAlgorithmNative() argument
1295 @NonNull String algorithm, @NonNull byte[] wrappedKey, @NonNull byte[] message); in signRSANative() argument
1310 @NonNull byte[] sessionId, @NonNull String algorithm, in signRSA() argument
1312 return signRSANative(this, sessionId, algorithm, wrappedKey, message); in signRSA()
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java142 String algorithm = mClientPrivateKey.getAlgorithm(); in writeToParcel() local
146 dest.writeString(algorithm); in writeToParcel()
187 String algorithm = in.readString();
188 KeyFactory keyFactory = KeyFactory.getInstance(algorithm);
/frameworks/base/core/java/android/net/http/
DSslCertificate.java265 private static String getDigest(X509Certificate x509Certificate, String algorithm) { in getDigest() argument
271 MessageDigest md = MessageDigest.getInstance(algorithm); in getDigest()
/frameworks/base/docs/html/distribute/analyze/
Dgoogle-services.jd96 algorithm X or algorithm Y better for cross-selling products in your app?

123