/frameworks/base/core/java/android/security/net/config/ |
D | Pin.java | 37 public static boolean isSupportedDigestAlgorithm(String algorithm) { in isSupportedDigestAlgorithm() argument 40 return "SHA-256".equalsIgnoreCase(algorithm); in isSupportedDigestAlgorithm() 46 public static int getDigestLength(String algorithm) { in getDigestLength() argument 47 if ("SHA-256".equalsIgnoreCase(algorithm)) { in getDigestLength() 50 throw new IllegalArgumentException("Unsupported digest algorithm: " + algorithm); in getDigestLength()
|
D | NetworkSecurityTrustManager.java | 131 for (String algorithm : pinAlgorithms) { in checkPins() 132 MessageDigest md = digestMap.get(algorithm); in checkPins() 135 md = MessageDigest.getInstance(algorithm); in checkPins() 139 digestMap.put(algorithm, md); in checkPins() 141 if (pinSet.pins.contains(new Pin(algorithm, md.digest(encodedSPKI)))) { in checkPins()
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreBCWorkaroundProvider.java | 230 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()
|
D | KeyProperties.java | 172 @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()
|
D | AndroidKeyStoreSecretKey.java | 28 public AndroidKeyStoreSecretKey(String alias, int uid, String algorithm) { in AndroidKeyStoreSecretKey() argument 29 super(alias, uid, algorithm); in AndroidKeyStoreSecretKey()
|
D | AndroidKeyStorePrivateKey.java | 28 public AndroidKeyStorePrivateKey(String alias, int uid, String algorithm) { in AndroidKeyStorePrivateKey() argument 29 super(alias, uid, algorithm); in AndroidKeyStorePrivateKey()
|
D | AndroidKeyStorePublicKey.java | 31 … public AndroidKeyStorePublicKey(String alias, int uid, String algorithm, byte[] x509EncodedForm) { in AndroidKeyStorePublicKey() argument 32 super(alias, uid, algorithm); in AndroidKeyStorePublicKey()
|
D | AndroidKeyStoreKey.java | 31 public AndroidKeyStoreKey(String alias, int uid, String algorithm) { in AndroidKeyStoreKey() argument 34 mAlgorithm = algorithm; in AndroidKeyStoreKey()
|
D | AndroidKeyStoreProvider.java | 126 private void putSecretKeyFactoryImpl(String algorithm) { in putSecretKeyFactoryImpl() argument 127 put("SecretKeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreSecretKeyFactorySpi"); in putSecretKeyFactoryImpl() 130 private void putKeyFactoryImpl(String algorithm) { in putKeyFactoryImpl() argument 131 put("KeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreKeyFactorySpi"); in putKeyFactoryImpl()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/ |
D | DrmPlugin.h | 167 const Vector<uint8_t>& sessionId, const String8& algorithm) { in setCipherAlgorithm() argument 168 if (sessionId.size() == 0 || algorithm.size() == 0) { in setCipherAlgorithm() 175 const Vector<uint8_t>& sessionId, const String8& algorithm) { in setMacAlgorithm() argument 176 if (sessionId.size() == 0 || algorithm.size() == 0) { in setMacAlgorithm() 238 const String8& algorithm, in signRSA() argument 242 if (sessionId.size() == 0 || algorithm.size() == 0 || in signRSA()
|
/frameworks/support/compat/java/android/support/v4/text/ |
D | TextDirectionHeuristicsCompat.java | 114 public TextDirectionHeuristicImpl(TextDirectionAlgorithm algorithm) { in TextDirectionHeuristicImpl() argument 115 mAlgorithm = algorithm; in TextDirectionHeuristicImpl() 154 TextDirectionHeuristicInternal(TextDirectionAlgorithm algorithm, in TextDirectionHeuristicInternal() argument 156 super(algorithm); in TextDirectionHeuristicInternal()
|
/frameworks/base/core/java/android/text/ |
D | TextDirectionHeuristics.java | 138 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/wifi/java/android/net/wifi/ |
D | ParcelUtil.java | 72 String algorithm = in.readString(); in readPrivateKey() local 73 if (algorithm == null) { in readPrivateKey() 79 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in readPrivateKey()
|
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/ |
D | MediaDrmSigner.java | 134 String algorithm, byte[] wrappedKey, byte[] message) { in signRSA() argument 135 return drm.signRSA(sessionId, algorithm, wrappedKey, message); in signRSA()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarVerifier.java | 229 final String algorithm = DIGEST_ALGORITHMS[i]; in initEntry() local 230 final String hash = attributes.getValue(algorithm + "-Digest"); in initEntry() 237 return new VerifierEntry(name, MessageDigest.getInstance(algorithm), hashBytes, in initEntry() 471 String algorithm = DIGEST_ALGORITHMS[i]; in verify() local 472 String hash = attributes.getValue(algorithm + entry); in verify() 479 md = MessageDigest.getInstance(algorithm); in verify()
|
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
D | SSLSocketFactory.java | 183 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/base/keystore/java/android/security/ |
D | KeyChain.java | 529 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isKeyAlgorithmSupported() 530 final String algUpper = algorithm.toUpperCase(Locale.US); in isKeyAlgorithmSupported() 556 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) { in isBoundKeyAlgorithm() 557 if (!isKeyAlgorithmSupported(algorithm)) { in isBoundKeyAlgorithm() 561 return KeyStore.getInstance().isHardwareBacked(algorithm); in isBoundKeyAlgorithm()
|
/frameworks/av/media/libmedia/include/media/ |
D | IDrm.h | 90 String8 const &algorithm) = 0; 93 String8 const &algorithm) = 0; 119 String8 const &algorithm,
|
D | Drm.h | 94 String8 const &algorithm); 97 String8 const &algorithm); 123 String8 const &algorithm,
|
/frameworks/av/include/media/ |
D | IDrm.h | 90 String8 const &algorithm) = 0; 93 String8 const &algorithm) = 0; 119 String8 const &algorithm,
|
D | Drm.h | 94 String8 const &algorithm); 97 String8 const &algorithm); 123 String8 const &algorithm,
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
D | MockDrmCryptoPlugin.cpp | 513 String8 const &algorithm) in setCipherAlgorithm() argument 518 vectorToString(sessionId).string(), algorithm.string()); in setCipherAlgorithm() 526 if (algorithm == "AES/CBC/NoPadding") { in setCipherAlgorithm() 533 String8 const &algorithm) in setMacAlgorithm() argument 538 vectorToString(sessionId).string(), algorithm.string()); in setMacAlgorithm() 546 if (algorithm == "HmacSHA256") { in setMacAlgorithm() 705 String8 const &algorithm, in signRSA() argument 714 algorithm.string(), in signRSA() 724 mStringProperties.add(String8("mock-algorithm"), algorithm); in signRSA()
|
D | MockDrmCryptoPlugin.h | 105 String8 const &algorithm); 108 String8 const &algorithm); 134 String8 const &algorithm,
|
/frameworks/base/core/java/android/net/ |
D | IpSecAlgorithm.java | 97 public IpSecAlgorithm(String algorithm, byte[] key) { in IpSecAlgorithm() argument 98 this(algorithm, key, key.length * 8); in IpSecAlgorithm()
|
/frameworks/av/drm/libmediadrm/ |
D | IDrm.cpp | 398 String8 const &algorithm) { in setCipherAlgorithm() 403 data.writeString8(algorithm); in setCipherAlgorithm() 412 String8 const &algorithm) { in setMacAlgorithm() 417 data.writeString8(algorithm); in setMacAlgorithm() 511 String8 const &algorithm, in signRSA() 519 data.writeString8(algorithm); in signRSA() 832 String8 algorithm = data.readString8(); in onTransact() local 833 reply->writeInt32(setCipherAlgorithm(sessionId, algorithm)); in onTransact() 842 String8 algorithm = data.readString8(); in onTransact() local 843 reply->writeInt32(setMacAlgorithm(sessionId, algorithm)); in onTransact() [all …]
|