Home
last modified time | relevance | path

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

123

/frameworks/base/apex/blobstore/framework/java/android/app/blob/
DBlobHandle.java62 @NonNull public final String algorithm; field in BlobHandle
92 private BlobHandle(String algorithm, byte[] digest, CharSequence label, long expiryTimeMillis, in BlobHandle() argument
94 this.algorithm = algorithm; in BlobHandle()
102 this.algorithm = in.readString(); in BlobHandle()
110 public static @NonNull BlobHandle create(@NonNull String algorithm, @NonNull byte[] digest, in create() argument
113 final BlobHandle handle = new BlobHandle(algorithm, digest, label, expiryTimeMillis, tag); in create()
194 dest.writeString(algorithm); in writeToParcel()
210 return this.algorithm.equals(other.algorithm) in equals()
219 return Objects.hash(algorithm, Arrays.hashCode(digest), label, expiryTimeMillis, tag); in hashCode()
225 fout.println("algo: " + algorithm); in dump()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DPasswordUtils.java53 public static SecretKey buildPasswordKey(String algorithm, String pw, byte[] salt, int rounds) { in buildPasswordKey() argument
54 return buildCharArrayKey(algorithm, pw.toCharArray(), salt, rounds); in buildPasswordKey()
67 public static String buildPasswordHash(String algorithm, String pw, byte[] salt, int rounds) { in buildPasswordHash() argument
68 SecretKey key = buildPasswordKey(algorithm, pw, salt, rounds); in buildPasswordHash()
109 public static byte[] makeKeyChecksum(String algorithm, byte[] pwBytes, byte[] salt, in makeKeyChecksum() argument
116 Key checksum = buildCharArrayKey(algorithm, mkAsChar, salt, rounds); in makeKeyChecksum()
120 private static SecretKey buildCharArrayKey(String algorithm, char[] pwArray, byte[] salt, in buildCharArrayKey() argument
123 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey()
/frameworks/base/core/java/android/security/net/config/
DPin.java39 public static boolean isSupportedDigestAlgorithm(String algorithm) { in isSupportedDigestAlgorithm() argument
42 return "SHA-256".equalsIgnoreCase(algorithm); in isSupportedDigestAlgorithm()
48 public static int getDigestLength(String algorithm) { in getDigestLength() argument
49 if ("SHA-256".equalsIgnoreCase(algorithm)) { in getDigestLength()
52 throw new IllegalArgumentException("Unsupported digest algorithm: " + algorithm); in getDigestLength()
DNetworkSecurityTrustManager.java131 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/keystore2/
DAndroidKeyStoreBCWorkaroundProvider.java244 private void putMacImpl(String algorithm, String implClass) { in putMacImpl() argument
245 put("Mac." + algorithm, implClass); in putMacImpl()
246 put("Mac." + algorithm + " SupportedKeyClasses", KEYSTORE_SECRET_KEY_CLASS_NAME); in putMacImpl()
260 private void putSignatureImpl(String algorithm, String implClass) { in putSignatureImpl() argument
261 put("Signature." + algorithm, implClass); in putSignatureImpl()
262 put("Signature." + algorithm + " SupportedKeyClasses", in putSignatureImpl()
DAndroidKeyStoreProvider.java142 private void putSecretKeyFactoryImpl(String algorithm) { in putSecretKeyFactoryImpl() argument
143 put("SecretKeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreSecretKeyFactorySpi"); in putSecretKeyFactoryImpl()
146 private void putKeyFactoryImpl(String algorithm) { in putKeyFactoryImpl() argument
147 put("KeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreKeyFactorySpi"); in putKeyFactoryImpl()
208 @NonNull KeyStoreSecurityLevel iSecurityLevel, int algorithm) in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() argument
295 @NonNull KeyEntryResponse response, int algorithm, int digest) in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse() argument
300 algorithm, digest); in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse()
DAndroidKeyStorePrivateKey.java34 long keyId, @NonNull Authorization[] authorizations, @NonNull String algorithm, in AndroidKeyStorePrivateKey() argument
36 super(descriptor, keyId, authorizations, algorithm, securityLevel); in AndroidKeyStorePrivateKey()
DAndroidKeyStoreSecretKey.java34 @NonNull KeyMetadata metadata, @NonNull String algorithm, in AndroidKeyStoreSecretKey() argument
36 super(descriptor, metadata.key.nspace, metadata.authorizations, algorithm, securityLevel); in AndroidKeyStoreSecretKey()
DAndroidKeyStorePublicKey.java39 @NonNull String algorithm, @NonNull KeyStoreSecurityLevel securityLevel) { in AndroidKeyStorePublicKey() argument
40 super(descriptor, metadata.key.nspace, metadata.authorizations, algorithm, securityLevel); in AndroidKeyStorePublicKey()
DAndroidKeyStoreKey.java52 @NonNull String algorithm, in AndroidKeyStoreKey() argument
57 mAlgorithm = algorithm; in AndroidKeyStoreKey()
/frameworks/base/core/java/android/security/keystore/recovery/
DKeyDerivationParams.java101 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt) { in KeyDerivationParams() argument
102 this(algorithm, salt, /*memoryDifficulty=*/ -1); in KeyDerivationParams()
108 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt, in KeyDerivationParams() argument
110 mAlgorithm = algorithm; in KeyDerivationParams()
/frameworks/base/packages/BackupEncryption/proto/
Dwrapped_key.proto10 // Type of Cipher algorithm the key is used for.
17 // What kind of Cipher algorithm the key is used for. We assume at the moment
20 // change Cipher algorithm.
36 // Cipher algorithm used to wrap the key. We assume at the moment that this
38 // forwards compatibility if at some point we need to change Cipher algorithm.
/frameworks/base/keystore/java/android/security/keystore/
DKeyProperties.java245 @NonNull @KeyAlgorithmEnum String algorithm) { in toKeymasterAsymmetricKeyAlgorithm()
246 if (KEY_ALGORITHM_EC.equalsIgnoreCase(algorithm)) { in toKeymasterAsymmetricKeyAlgorithm()
248 } else if (KEY_ALGORITHM_RSA.equalsIgnoreCase(algorithm)) { in toKeymasterAsymmetricKeyAlgorithm()
251 throw new IllegalArgumentException("Unsupported key algorithm: " + algorithm); in toKeymasterAsymmetricKeyAlgorithm()
270 @NonNull @KeyAlgorithmEnum String algorithm) { in toKeymasterSecretKeyAlgorithm()
271 if (KEY_ALGORITHM_AES.equalsIgnoreCase(algorithm)) { in toKeymasterSecretKeyAlgorithm()
273 } else if (KEY_ALGORITHM_3DES.equalsIgnoreCase(algorithm)) { in toKeymasterSecretKeyAlgorithm()
275 } else if (algorithm.toUpperCase(Locale.US).startsWith("HMAC")) { in toKeymasterSecretKeyAlgorithm()
279 "Unsupported secret key algorithm: " + algorithm); in toKeymasterSecretKeyAlgorithm()
318 public static int toKeymasterDigest(@NonNull @KeyAlgorithmEnum String algorithm) { in toKeymasterDigest() argument
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DDrmPlugin.h178 const Vector<uint8_t>& sessionId, const String8& algorithm) { in setCipherAlgorithm() argument
179 if (sessionId.size() == 0 || algorithm.size() == 0) { in setCipherAlgorithm()
186 const Vector<uint8_t>& sessionId, const String8& algorithm) { in setMacAlgorithm() argument
187 if (sessionId.size() == 0 || algorithm.size() == 0) { in setMacAlgorithm()
249 const String8& algorithm, in signRSA() argument
253 if (sessionId.size() == 0 || algorithm.size() == 0 || in signRSA()
/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/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerShellCommand.java150 args.algorithm = getNextArgRequired(); in parseOptions()
181 public String algorithm = BlobHandle.ALGO_SHA_256; field in BlobStoreManagerShellCommand.ParsedArgs
189 return BlobHandle.create(algorithm, digest, label, expiryTimeMillis, tag); in getBlobHandle()
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java241 final String algorithm = DIGEST_ALGORITHMS[i]; in initEntry() local
242 final String hash = attributes.getValue(algorithm + "-Digest"); in initEntry()
249 return new VerifierEntry(name, MessageDigest.getInstance(algorithm), hashBytes, in initEntry()
494 String algorithm = DIGEST_ALGORITHMS[i]; in verify() local
495 String hash = attributes.getValue(algorithm + entry); in verify()
502 md = MessageDigest.getInstance(algorithm); in verify()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DSSLSocketFactory.java191 String algorithm, in SSLSocketFactory() argument
200 if (algorithm == null) { in SSLSocketFactory()
201 algorithm = TLS; in SSLSocketFactory()
211 this.sslcontext = SSLContext.getInstance(algorithm); in SSLSocketFactory()
/frameworks/base/core/java/android/net/
DIpSecAlgorithm.java260 public IpSecAlgorithm(@NonNull @AlgorithmName String algorithm, @NonNull byte[] key) { in IpSecAlgorithm() argument
261 this(algorithm, key, 0); in IpSecAlgorithm()
277 @NonNull @AlgorithmName String algorithm, @NonNull byte[] key, int truncLenBits) { in IpSecAlgorithm()
278 mName = algorithm; in IpSecAlgorithm()
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp513 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()
DMockDrmCryptoPlugin.h105 String8 const &algorithm);
108 String8 const &algorithm);
134 String8 const &algorithm,
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DDrmPlugin.h218 const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) { in setCipherAlgorithm()
219 if (sessionId.size() == 0 || algorithm.size() == 0) { in setCipherAlgorithm()
226 const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) { in setMacAlgorithm()
227 if (sessionId.size() == 0 || algorithm.size() == 0) { in setMacAlgorithm()
295 const hidl_string& algorithm, in signRSA()
299 if (sessionId.size() == 0 || algorithm.size() == 0 || in signRSA()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceShellCommand.java242 final String algorithm, value1; in getFieldClassificationScore() local
244 algorithm = getNextArgRequired(); in getFieldClassificationScore()
247 algorithm = null; in getFieldClassificationScore()
253 mService.calculateScore(algorithm, value1, value2, new RemoteCallback((result) -> { in getFieldClassificationScore()
/frameworks/av/drm/libmediadrm/include/mediadrm/
DIDrm.h121 String8 const &algorithm) = 0;
124 String8 const &algorithm) = 0;
150 String8 const &algorithm,

123